Exemple #1
0
        public static void Drawing_OnDraw(EventArgs args)
        {
            if (Spells.Q.IsLearned && Extension.GetCheckBoxValue(Meniu.Drawing, "draw.q"))
            {
                Circle.Draw(Color.MediumAquamarine, Spells.Q.Range, ObjectManager.Player.ServerPosition);
            }
            if (Spells.E.IsLearned && Extension.GetCheckBoxValue(Meniu.Drawing, "draw.e"))
            {
                Circle.Draw(Color.GreenYellow, Spells.E.Range, ObjectManager.Player.ServerPosition);
            }
            if (Extension.GetCheckBoxValue(Meniu.Drawing, "draw.r.a"))
            {
                foreach (var enemy in EntityManager.Heroes.Enemies.Where(x => x.IsHPBarRendered && Prediction.Health.GetPrediction(x, Spells.R.CastDelay + Game.Ping) <= Spells.GetDamage(x, SpellSlot.R)))
                {
                    Text = new Text("", new System.Drawing.Font("calibri", 16, System.Drawing.FontStyle.Regular));
                    string txt = enemy.ChampionName + " " + "Is Killable with R";
                    Text.X = 950;
                    Text.Y = 650;
                    Text.TextValue = txt;
                    Text.Draw();
                }
            }
            DamageIndicator.HealthbarEnabled = Extension.GetCheckBoxValue(Meniu.Drawing, "indicator");
            DamageIndicator.PercentEnabled = Extension.GetCheckBoxValue(Meniu.Drawing, "percent.indicator");

        }