Пример #1
0
        private static void OnDraw(EventArgs args)
        {
            if (!menuIni.Get <CheckBox>("Drawings").CurrentValue)
            {
                return;
            }

            if (DrawMenu.Get <CheckBox>("Q").CurrentValue&& Q.IsLearned)
            {
                Circle.Draw(Q.IsReady() ? Color.OrangeRed : Color.DarkRed, Q.Range, ObjectManager.Player.Position);
            }

            if (DrawMenu.Get <CheckBox>("W").CurrentValue&& W.IsLearned)
            {
                Circle.Draw(W.IsReady() ? Color.OrangeRed : Color.DarkRed, W.Range, ObjectManager.Player.Position);
            }

            if (DrawMenu.Get <CheckBox>("E").CurrentValue&& E.IsLearned)
            {
                Circle.Draw(E.IsReady() ? Color.OrangeRed : Color.DarkRed, E.Range, ObjectManager.Player.Position);
            }

            if (DrawMenu.Get <CheckBox>("R").CurrentValue&& R.IsLearned)
            {
                Circle.Draw(R.IsReady() ? Color.OrangeRed : Color.DarkRed, R.Range, ObjectManager.Player.Position);
            }
        }
Пример #2
0
        private static void OnDraw(EventArgs args)
        {
            if (Player.IsDead)
            {
                return;
            }


            if (DrawMenu.Get <CheckBox>("drawoff").CurrentValue)
            {
                return;
            }

            if (DrawMenu.Get <CheckBox>("drawq").CurrentValue)
            {
                if (Q.Level > 0)
                {
                    Circle.Draw(Color.Blue, Q.Range, ObjectManager.Player.Position);
                }
            }

            if (DrawMenu.Get <CheckBox>("draww").CurrentValue)
            {
                if (W.Level > 0)
                {
                    Circle.Draw(Color.Blue, W.Range, ObjectManager.Player.Position);
                }
            }

            if (DrawMenu.Get <CheckBox>("drawe").CurrentValue)
            {
                if (E.Level > 0)
                {
                    Circle.Draw(Color.Blue, E.Range, ObjectManager.Player.Position);
                }
            }
        }