Пример #1
0
        private void OnDraw(EventArgs args)
        {
            if (!Game.IsInGame)
            {
                return;
            }

            if (KaanHero.Living.IsDead)
            {
                return;
            }

            if (DrawMenu.GetBoolean("draw.disableAll"))
            {
                return;
            }

            if (_debugMode)
            {
                DebugDraw();
            }

            Drawing.DrawString(new Vector2(1920f / 2f, 1080f / 2f - 5f),
                               "Targeting mode: " + (KeysMenu.GetKeybind("keys.changeTargeting") ? "LowestHealth" : "NearMouse"), UnityEngine.Color.yellow, ViewSpace.ScreenSpacePixels);

            var myPos = KaanHero.MapObject.Position;

            if (DrawMenu.GetBoolean("draw.rangeM2"))
            {
                Drawing.DrawCircle(myPos, M2Range, RangeColor);
            }

            if (DrawMenu.GetBoolean("draw.rangeM2.safeRange"))
            {
                Drawing.DrawCircle(myPos, ComboMenu.GetSlider("combo.useM2.safeRange"), SafeRangeColor);
            }

            if (DrawMenu.GetBoolean("draw.rangeE"))
            {
                Drawing.DrawCircle(myPos, TrueERange, RangeColor);
            }

            if (DrawMenu.GetBoolean("draw.rangeE.minRange"))
            {
                Drawing.DrawCircle(myPos, ComboMenu.GetSlider("combo.useE.minRange"), MinRangeColor);
            }

            if (DrawMenu.GetBoolean("draw.ultiMode.rangeM2"))
            {
                Drawing.DrawCircle(myPos, F_M2Range, RangeColor);
            }

            if (DrawMenu.GetBoolean("draw.ultiMode.rangeM2.minRange"))
            {
                Drawing.DrawCircle(myPos, ComboMenu.GetSlider("combo.ultiMode.useM2.minRange"), MinRangeColor);
            }
        }