Ejemplo n.º 1
0
        internal static void OnDraw(EventArgs args)
        {
            var draw  = Config.Item("Draw").GetValue <bool>();
            var useq  = Config.Item("qDraw").GetValue <bool>();
            var usew  = Config.Item("wDraw").GetValue <bool>();
            var user  = Config.Item("rDraw").GetValue <bool>();
            var userf = Config.Item("rfDraw").GetValue <bool>();

            if (!draw)
            {
                return;
            }

            if (useq && Q.IsReady() && Q.Level > 0)
            {
                Drawing.DrawCircle(Player.Position, Q.Range, System.Drawing.Color.CadetBlue);
            }

            if (usew && W.IsReady() && W.Level > 0)
            {
                Drawing.DrawCircle(Player.Position, W.Range, System.Drawing.Color.DarkGoldenrod);
            }

            if (user && R.IsReady() && R.Level > 0)
            {
                Drawing.DrawCircle(Player.Position, R.Range, System.Drawing.Color.Red);
            }

            if (userf && R.IsReady() && R.Level > 0 && FlashSlot.IsReady())
            {
                var heroPosition = Drawing.WorldToScreen(Player.Position);
                Drawing.DrawText(heroPosition.X, heroPosition.Y,
                                 System.Drawing.Color.Blue, "Can Flash Q!");
                Drawing.DrawCircle(Player.Position, R.Range + FlashRange, System.Drawing.Color.Blue);
            }
        }
Ejemplo n.º 2
0
        internal static void OnDraw(EventArgs args)
        {
            var draw  = GlobalManager.getCheckBoxItem(drawMenu, "Draw");
            var useq  = GlobalManager.getCheckBoxItem(drawMenu, "qDraw");
            var usew  = GlobalManager.getCheckBoxItem(drawMenu, "wDraw");
            var user  = GlobalManager.getCheckBoxItem(drawMenu, "rDraw");
            var userf = GlobalManager.getCheckBoxItem(drawMenu, "rfDraw");

            if (!draw)
            {
                return;
            }

            if (useq && Q.IsReady() && Q.Level > 0)
            {
                Drawing.DrawCircle(Player.Position, Q.Range, System.Drawing.Color.CadetBlue);
            }

            if (usew && W.IsReady() && W.Level > 0)
            {
                Drawing.DrawCircle(Player.Position, W.Range, System.Drawing.Color.DarkGoldenrod);
            }

            if (user && R.IsReady() && R.Level > 0)
            {
                Drawing.DrawCircle(Player.Position, R.Range, System.Drawing.Color.Red);
            }

            if (userf && R.IsReady() && R.Level > 0 && FlashSlot.IsReady())
            {
                var heroPosition = Drawing.WorldToScreen(Player.Position);
                Drawing.DrawText(heroPosition.X, heroPosition.Y,
                                 System.Drawing.Color.Blue, "Can Flash Q!");
                Drawing.DrawCircle(Player.Position, R.Range + FlashRange, System.Drawing.Color.Blue);
            }
        }