Exemple #1
0
        public static void OnDraw(EventArgs args)
        {
            if (EntryPoint.Menu.Item("l33t.stds.drawing.enabledraw").GetValue <bool>())
            {
                if (EntryPoint.Menu.Item("l33t.stds.drawing.drawDebug").GetValue <bool>())
                {
                    DrawDebug();
                }

                var classic        = EntryPoint.Menu.Item("l33t.stds.drawing.classic").GetValue <bool>();
                var playerPosition = EntryPoint.Player.Position;

                foreach (var spell in
                         Mechanics.Spells.Where(
                             spell =>
                             EntryPoint.Menu.Item("l33t.stds.drawing.draw" + spell.Key) != null &&
                             EntryPoint.Menu.Item("l33t.stds.drawing.draw" + spell.Key).GetValue <Circle>().Active))
                {
                    if (classic)
                    {
                        Drawing.DrawCircle(
                            playerPosition, spell.Value.Range,
                            EntryPoint.Menu.Item("l33t.stds.drawing.draw" + spell.Key).GetValue <Circle>().Color);
                    }
                    else
                    {
                        Render.Circle.DrawCircle(
                            playerPosition, spell.Value.Range,
                            EntryPoint.Menu.Item("l33t.stds.drawing.draw" + spell.Key).GetValue <Circle>().Color);
                    }
                }

                foreach (var enemy in ObjectCache.GetHeroes().Where(e => e.IsVisible && !e.IsDead))
                {
                    DrawEnemyInfo(enemy);
                }

                if (EntryPoint.Menu.Item("l33t.stds.drawing.drawQEC").GetValue <Circle>().Active&&
                    EntryPoint.Menu.Item("l33t.stds.qesettings.qetocursor").GetValue <KeyBind>().Active&&
                    Mechanics.Spells[SpellSlot.Q].IsReady())
                {
                    DrawSphereEToCursor(classic);
                }

                if (EntryPoint.Menu.Item("l33t.stds.drawing.drawHUD").GetValue <bool>())
                {
                    DrawHud();
                }

                // Draw QE MAP
                if (EntryPoint.Menu.Item("l33t.stds.drawing.drawQEMAP").GetValue <bool>())
                {
                    DrawSphereEMap(classic);
                }
                if (EntryPoint.Menu.Item("l33t.stds.drawing.drawWMAP").GetValue <bool>() &&
                    Mechanics.Spells[SpellSlot.W].Level > 0)
                {
                    DrawForceOfWillMap(classic);
                }
            }
        }