示例#1
0
        public static void GameOnDraw(EventArgs args)
        {
            if (KzKarthusMenu.nodraw())
            {
                return;
            }

            if (!KzKarthusMenu.onlyReady())
            {
                if (KzKarthusMenu.drawingsQ())
                {
                    new Circle()
                    {
                        Color = Color.AliceBlue, Radius = Q.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (KzKarthusMenu.drawingsW())
                {
                    new Circle()
                    {
                        Color = Color.OrangeRed, Radius = W.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (KzKarthusMenu.drawingsE())
                {
                    new Circle()
                    {
                        Color = Color.Cyan, Radius = E.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (KzKarthusMenu.drawingsR())
                {
                    new Circle()
                    {
                        Color = Color.SkyBlue, Radius = R.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
            }
            else
            {
                if (!Q.IsOnCooldown && KzKarthusMenu.drawingsQ())
                {
                    new Circle()
                    {
                        Color = Color.AliceBlue, Radius = 340, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!W.IsOnCooldown && KzKarthusMenu.drawingsW())
                {
                    new Circle()
                    {
                        Color = Color.OrangeRed, Radius = 800, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!E.IsOnCooldown && KzKarthusMenu.drawingsE())
                {
                    new Circle()
                    {
                        Color = Color.Cyan, Radius = 500, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!R.IsOnCooldown && KzKarthusMenu.drawingsR())
                {
                    new Circle()
                    {
                        Color = Color.SkyBlue, Radius = 500, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                var EnemiesTxt = "";

                var     enemies = EntityManager.Heroes.Enemies.Where(a => a.IsEnemy && a.IsValid);
                Vector2 WTS     = Drawing.WorldToScreen(Player.Position);

                foreach (var enemy in enemies)
                {
                    if ((GetTargetHealth(enemy) - Player.GetSpellDamage(enemy, SpellSlot.R, DamageLibrary.SpellStages.Default)) <= 0)
                    {
                        if (!enemy.IsDead)
                        {
                            EnemiesTxt = enemy.BaseSkinName + " | ";
                        }
                    }
                }

                if (EnemiesTxt != "")
                {
                    if (KzKarthusMenu.alertR() && R.IsReady())
                    {
                        DrawFontTextScreen(Tahoma16B, "R Alert : " + EnemiesTxt + "Killable", (float)(WTS[0] - 150), (float)(WTS[1] + 80), SharpDX.Color.Red);
                    }
                }
            }
        }