示例#1
0
        public void OnDraw(EventArgs args)
        {
            if (Misc.IsChecked(DrawMenu, "drawDisable"))
            {
                return;
            }

            if (Misc.IsChecked(DrawMenu, "drawReady") ? Q.IsReady() : Misc.IsChecked(DrawMenu, "drawQ"))
            {
                new Circle {
                    Color = DrawMenu.GetColor("colorQ"), BorderWidth = DrawMenu.GetWidth("widthQ"), Radius = Q.Range
                }.Draw(Player.Instance.Position);
            }

            if (Misc.IsChecked(DrawMenu, "drawReady") ? W.IsReady() : Misc.IsChecked(DrawMenu, "drawW"))
            {
                new Circle {
                    Color = DrawMenu.GetColor("colorW"), BorderWidth = DrawMenu.GetWidth("widthW"), Radius = W.Range
                }.Draw(Player.Instance.Position);
            }

            if (Misc.IsChecked(DrawMenu, "drawReady") ? E.IsReady() : Misc.IsChecked(DrawMenu, "drawE"))
            {
                new Circle {
                    Color = DrawMenu.GetColor("colorE"), BorderWidth = DrawMenu.GetWidth("widthE"), Radius = E.Range
                }.Draw(Player.Instance.Position);
            }

            if (Misc.IsChecked(DrawMenu, "drawReady") ? R.IsReady() : Misc.IsChecked(DrawMenu, "drawR"))
            {
                new Circle {
                    Color = DrawMenu.GetColor("colorR"), BorderWidth = DrawMenu.GetWidth("widthR"), Radius = R.Range
                }.Draw(Player.Instance.Position);
            }
        }