Example #1
0
        public override void Draw()
        {
            if (DrawMenu.CheckBoxValue("LV"))
            {
                foreach (var enemy in StalkedEnemies.Where(e => Core.GameTickCount - e.LastVisibleTime > 100 && Core.GameTickCount - e.LastVisibleTime < 3750))
                {
                    Circle.Draw(SharpDX.Color.Red, 250, enemy.PredictedPosition);
                    Drawing.DrawText(enemy.PredictedPosition.WorldToScreen(), Color.Red, enemy.Target.Name() + ": LastVisiblePosition", 10);
                }
            }

            foreach (var spell in SpellList.Where(s => DrawMenu.CheckBoxValue(s.Slot)))
            {
                Circle.Draw(spell.IsReady() ? SharpDX.Color.Chartreuse : SharpDX.Color.OrangeRed, spell.Range, user);
            }

            if (IsCastingR && LastRPosition != null)
            {
                if (AutoMenu.CheckBoxValue("Rmouse"))
                {
                    Circle.Draw(SharpDX.Color.Goldenrod, AutoMenu.SliderValue("MouseRange"), Game.CursorPos);
                }
                if (DrawMenu.CheckBoxValue("RSector"))
                {
                    JhinRSector(LastRPosition).Draw(Color.AliceBlue, 2);
                }
            }

            if (DrawMenu.CheckBoxValue("Notifications") && R.IsReady())
            {
                var i = 0f;
                foreach (var t in EntityManager.Heroes.Enemies.Where(e => e.IsKillable()))
                {
                    if (t != null && t.IsKillable(R.Range + R.Radius))
                    {
                        var totalRDamage = TotalRDamage(t);

                        if (totalRDamage >= t.TotalShieldHealth())
                        {
                            i += 0.02f;
                            Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * (0.4f + i), Color.YellowGreen, (int)(t.TotalShieldHealth() / (totalRDamage / 4)) + " x Ult can kill: " + t.ChampionName + " have: " + (int)t.TotalShieldHealth() + "HP / TotalRDamage: " + (int)TotalRDamage(t));
                            Extentions.DrawLine(t.Position, user.Position, 6, Color.Yellow);
                        }
                    }
                }
            }
        }