示例#1
0
文件: Zed.cs 项目: lolscripts/Otros
 public override void OnDraw()
 {
     if (DrawingsMenu.CheckBox("Passive"))
     {
         foreach (
             var enemy in
             UnitManager.ValidEnemyHeroes.Where(
                 h => h.HealthPercent <= 50f && h.VisibleOnScreen && !h.TargetHaveBuff("zedpassivecd")))
         {
             Drawing.DrawText(enemy.ServerPosition.WorldToScreen(), System.Drawing.Color.White, "Passive Ready",
                              6);
         }
     }
     base.OnDraw();
 }
示例#2
0
 public override void OnDraw()
 {
     if (DrawingsMenu.CheckBox("Passive"))
     {
         foreach (
             var enemy in
             UnitManager.ValidEnemyHeroes.Where(
                 h => h.HealthPercent <= 50f && h.VisibleOnScreen && !h.TargetHaveBuff("zedpassivecd")))
         {
             Drawing.DrawText(enemy.ServerPosition.WorldToScreen(), Color.White,
                              "Passive".GetTranslationFromId() + " " + "Available".GetTranslationFromId().ToLower(),
                              6);
         }
     }
     base.OnDraw();
 }
示例#3
0
 public override void OnEndScene()
 {
     if (DrawingsMenu.CheckBox("IsDead"))
     {
         if (EnemyIsDead)
         {
             var enemyDead = UnitManager.ValidEnemyHeroes.FirstOrDefault(IsDead);
             if (enemyDead != null)
             {
                 IsDeadText.TextValue = enemyDead.ChampionName + " " + "IsDead".GetTranslationFromId().ToLower();
                 IsDeadText.Draw();
             }
         }
     }
     base.OnEndScene();
 }
示例#4
0
文件: Zed.cs 项目: lolscripts/Otros
 public override void OnEndScene()
 {
     if (DrawingsMenu.CheckBox("IsDead"))
     {
         if (IsDeadObject != null)
         {
             var enemyDead = UnitManager.ValidEnemyHeroes.FirstOrDefault(IsDead);
             if (enemyDead != null)
             {
                 IsDeadText.TextValue = enemyDead.ChampionName + " is dead";
                 IsDeadText.Draw();
             }
         }
     }
     base.OnEndScene();
 }
示例#5
0
 public override void OnDraw()
 {
     if (UltimateMenu.CheckBox("NearMouse.Enabled") && UltimateMenu.CheckBox("NearMouse.Draw") && IsCastingR)
     {
         EloBuddy.SDK.Rendering.Circle.Draw(SharpDX.Color.Blue, UltimateMenu.Slider("NearMouse.Radius"), 1, MousePos);
     }
     if (DrawingsMenu.CheckBox("R.LastPredictedPosition") && (R.IsReady || IsCastingR))
     {
         foreach (var enemy in EntityManager.Heroes.Enemies.Where(h => !h.IsValidTarget() && !h.IsDead && h.Health > 0 && LastPredictedPosition.ContainsKey(h.NetworkId)))
         {
             var tuple = LastPredictedPosition[enemy.NetworkId];
             if (tuple.Item1.IsOnScreen() && tuple.Item2)
             {
                 LastPredictedPositionText[enemy.NetworkId].Position = tuple.Item1.WorldToScreen() + new Vector2(-LastPredictedPositionText[enemy.NetworkId].Bounding.Width / 2f, 50f);
                 LastPredictedPositionText[enemy.NetworkId].Draw();
                 EloBuddy.SDK.Rendering.Circle.Draw(SharpDX.Color.Red, 120, 1, tuple.Item1);
             }
         }
     }
     base.OnDraw();
 }
示例#6
0
 public override void OnEndScene()
 {
     if (DrawingsMenu.CheckBox("R.Killable") && R.IsReady && MyHero.Mana >= R.Mana)
     {
         var count = 0;
         foreach (var enemy in R.EnemyHeroes.Where(h => R.GetDamage(h) * Stacks >= h.TotalShieldHealth()))
         {
             if (enemy.VisibleOnScreen && IsKillableOnEnemyPosition.ContainsKey(enemy.NetworkId))
             {
                 IsKillableOnEnemyPosition[enemy.NetworkId].Position = enemy.Position.WorldToScreen();
                 IsKillableOnEnemyPosition[enemy.NetworkId].Draw();
             }
             if (IsKillableOnScreen.ContainsKey(enemy.NetworkId))
             {
                 IsKillableOnScreen[enemy.NetworkId].Position = BaseScreenPoint + new Vector2(0, 50 * count);
                 IsKillableOnScreen[enemy.NetworkId].Draw();
                 count++;
             }
         }
     }
     base.OnEndScene();
 }