示例#1
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            var readyDraw = DrawingsMenu.GetCheckBoxValue("readyDraw");

            if (DrawingsMenu.GetCheckBoxValue("qDraw") && readyDraw
                ? Q.IsReady()
                : DrawingsMenu.GetCheckBoxValue("qDraw"))
            {
                Circle.Draw(QColorSlide.GetSharpColor(), Q.Range, 1f, Player.Instance);
            }

            if (DrawingsMenu.GetCheckBoxValue("wDraw") && readyDraw
                ? W.IsReady()
                : DrawingsMenu.GetCheckBoxValue("wDraw"))
            {
                Circle.Draw(WColorSlide.GetSharpColor(), W.Range, 1f, Player.Instance);
            }

            if (DrawingsMenu.GetCheckBoxValue("eDraw") && readyDraw
                ? E.IsReady()
                : DrawingsMenu.GetCheckBoxValue("eDraw"))
            {
                Circle.Draw(EColorSlide.GetSharpColor(), E.Range, 1f, Player.Instance);
            }

            if (DrawingsMenu.GetCheckBoxValue("rDraw") && readyDraw
                ? R.IsReady()
                : DrawingsMenu.GetCheckBoxValue("rDraw"))
            {
                Circle.Draw(RColorSlide.GetSharpColor(), R.Range, 1f, Player.Instance);
            }
        }
示例#2
0
        /// <summary>
        /// Normal Drawings will not ovewrite any of LOL Sprites
        /// </summary>
        /// <param name="args"></param>
        private static void Drawing_OnDraw(EventArgs args)
        {
            var readyDraw = DrawingsMenu.GetCheckBoxValue("readyDraw");

            if (DrawingsMenu.GetCheckBoxValue("qDraw") && readyDraw ? Q.IsReady() : Q.IsLearned)
            {
                Circle.Draw(QColorSlide.GetSharpColor(), Q.Range, 1f, Player.Instance);
            }

            if (DrawingsMenu.GetCheckBoxValue("wDraw") && readyDraw ? W.IsReady() : W.IsLearned)
            {
                Circle.Draw(WColorSlide.GetSharpColor(), W.Range, 1f, Player.Instance);
            }

            if (DrawingsMenu.GetCheckBoxValue("eDraw") && readyDraw ? E.IsReady() : E.IsLearned)
            {
                Circle.Draw(EColorSlide.GetSharpColor(), E.Range, 1f, Player.Instance);
            }

            if (DrawingsMenu.GetCheckBoxValue("rDraw") && readyDraw ? R.IsReady() : R.IsLearned)
            {
                Circle.Draw(RColorSlide.GetSharpColor(), R.Range, 1f, Player.Instance);
            }

            if (GetE != null)
            {
                var pos = new Vector3(GetE.Position.To2D(), GetE.Position.Z - 100);
                Circle.Draw(EColorSlide.GetSharpColor(), 350, pos);
            }
        }
示例#3
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            var qtarget   = TargetSelector.GetTarget(Q.Range, DamageType.Magical);
            var readyDraw = DrawingsMenu.GetCheckBoxValue("readyDraw");

            if (DrawingsMenu.GetCheckBoxValue("qDraw") && readyDraw
                ? Q.IsReady()
                : DrawingsMenu.GetCheckBoxValue("qDraw"))
            {
                Circle.Draw(QColorSlide.GetSharpColor(), Q.Range, 1f, Player.Instance);
            }

            if (DrawingsMenu.GetCheckBoxValue("wDraw") && readyDraw
                ? W.IsReady()
                : DrawingsMenu.GetCheckBoxValue("wDraw"))
            {
                Circle.Draw(WColorSlide.GetSharpColor(), W.Range, 1f, Player.Instance);
            }

            if (DrawingsMenu.GetCheckBoxValue("eDraw") && readyDraw
                ? E.IsReady()
                : DrawingsMenu.GetCheckBoxValue("eDraw"))
            {
                Circle.Draw(EColorSlide.GetSharpColor(), E.Range, 1f, Player.Instance);
            }

            if (DrawingsMenu.GetCheckBoxValue("rDraw") && readyDraw
                ? R.IsReady()
                : DrawingsMenu.GetCheckBoxValue("rDraw"))
            {
                Circle.Draw(RColorSlide.GetSharpColor(), R.Range, 1f, Player.Instance);
            }

            if (DrawingsMenu.GetCheckBoxValue("QPredictionDraw") && readyDraw
                ? Q.IsReady()
                : DrawingsMenu.GetCheckBoxValue("QPredictionDraw"))
            {
                if (qtarget != null && qtarget.IsValidTarget(Q.Range))
                {
                    var pred = Q.GetPrediction(qtarget);
                    var rect = new Geometry.Polygon.Rectangle(ObjectManager.Player.Position, pred.CastPosition, Q.Width);
                    rect.Draw((Q.GetPrediction(qtarget).HitChance >= HitChance.High && Q.IsReady()) ? Color.Blue : Color.Brown);
                    Drawing.DrawText(pred.CastPosition.WorldToScreen(), Color.Wheat, Q.GetPrediction(qtarget).HitChance.ToString(), 2);
                }
            }
        }
示例#4
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            var readyDraw = DrawingsMenu["readyDraw"].Cast <CheckBox>().CurrentValue;
            var target    = TargetSelector.GetTarget(Q.Range + 20000, DamageType.Magical);

            //Drawings
            if (DrawingsMenu["qDraw"].Cast <CheckBox>().CurrentValue&& readyDraw
            ? Q.IsReady()
            : DrawingsMenu["qDraw"].Cast <CheckBox>().CurrentValue)
            {
                Circle.Draw(QColorSlide.GetSharpColor(), SpellsManager.Q.Range, 1f, Player.Instance);
            }

            if (DrawingsMenu["wDraw"].Cast <CheckBox>().CurrentValue&& readyDraw
             ? W.IsReady()
             : DrawingsMenu["wDraw"].Cast <CheckBox>().CurrentValue)
            {
                Circle.Draw(WColorSlide.GetSharpColor(), SpellsManager.W.Range, 1f, Player.Instance);
            }

            if (DrawingsMenu["eDraw"].Cast <CheckBox>().CurrentValue&& readyDraw
            ? E.IsReady()
            : DrawingsMenu["eDraw"].Cast <CheckBox>().CurrentValue)
            {
                Circle.Draw(EColorSlide.GetSharpColor(), SpellsManager.E.Range, 1f, Player.Instance);
            }

            if (DrawingsMenu["rDraw"].Cast <CheckBox>().CurrentValue&& readyDraw
            ? R.IsReady()
            : DrawingsMenu["rDraw"].Cast <CheckBox>().CurrentValue)
            {
                Circle.Draw(RColorSlide.GetSharpColor(), SpellsManager.R.Range, 1f, Player.Instance);
            }


            if (target.Health >
                target.GetRealDamage() || target == null)
            {
                return;
            }
            Drawing.DrawText(Drawing.WorldToScreen(target.Position).X - 60,
                             Drawing.WorldToScreen(target.Position).Y + 10,
                             Color.Gold, "Killable with Combo");
        }
示例#5
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            var readyDraw = DrawingsMenu["readyDraw"].Cast <CheckBox>().CurrentValue;
            var target    = TargetSelector.GetTarget(E.Range + 20000, DamageType.Magical);

            foreach (var jungleMonsters in EntityManager.MinionsAndMonsters.GetJungleMonsters().Where(x => x.Health < x.GetRealDamage(SpellSlot.Q) && x.BaseSkinName.Contains("SRU") && !x.BaseSkinName.Contains("Mini")))
            {
                if (jungleMonsters == null)
                {
                    return;
                }

                if (DrawingsMenu["qMinion"].Cast <CheckBox>().CurrentValue)
                {
                    Drawing.DrawText(jungleMonsters.Position.WorldToScreen(), Color.Gold, "Stealable (Q)", 30);
                }
            }

            //Drawings
            if (DrawingsMenu["qDraw"].Cast <CheckBox>().CurrentValue&& readyDraw
            ? Q.IsReady()
            : DrawingsMenu["qDraw"].Cast <CheckBox>().CurrentValue)
            {
                Circle.Draw(QColorSlide.GetSharpColor(), SpellsManager.Q.Range, 1f, Player.Instance);
            }

            if (DrawingsMenu["rDraw"].Cast <CheckBox>().CurrentValue&& readyDraw
            ? Q.IsReady()
            : DrawingsMenu["rDraw"].Cast <CheckBox>().CurrentValue)
            {
                Circle.Draw(RColorSlide.GetSharpColor(), SpellsManager.R.Range, 1f, Player.Instance);
            }


            if (target.Health >
                target.GetRealDamage() || target == null)
            {
                return;
            }
            Drawing.DrawText(Drawing.WorldToScreen(target.Position).X - 60,
                             Drawing.WorldToScreen(target.Position).Y + 10,
                             Color.Gold, "Killable with Combo");
        }
示例#6
0
        /// <summary>
        /// Normal drawings
        /// </summary>
        /// <param name="args"></param>
        private static void Drawing_OnDraw(EventArgs args)
        {
            var newTarget = InsecMenu.GetCheckBoxValue("insecMode") ? TargetSelector.SelectedTarget : TargetSelector.GetTarget(Q.Range, DamageType.Physical);


            if (Extensions.ClicksecEnabled && InsecMenu.GetCheckBoxValue("clickInsec"))
            {
                Drawing.DrawCircle(Extensions.InsecClickPos, 100, Color.DeepSkyBlue);
            }

            var playerPos = Drawing.WorldToScreen(ObjectManager.Player.Position);

            if (InsecMenu.GetKeyBindValue("insecflash"))
            {
                Drawing.DrawText(playerPos.X - 55, playerPos.Y + 40, Color.Yellow, "Flash Insec enabled");
            }

            if (DrawingsMenu.GetCheckBoxValue("drawinseclines") && R.IsReady())
            {
                if (newTarget != null && newTarget.IsVisible && newTarget.IsValidTarget() && !newTarget.IsDead && myHero.Distance(newTarget) < 3000)
                {
                    Vector2 targetPos = Drawing.WorldToScreen(newTarget.Position);
                    Drawing.DrawLine(
                        Extensions.InsecLinePos.X,
                        Extensions.InsecLinePos.Y,
                        targetPos.X,
                        targetPos.Y,
                        3,
                        Color.Gold);

                    Drawing.DrawText(
                        Drawing.WorldToScreen(newTarget.Position).X - 40,
                        Drawing.WorldToScreen(newTarget.Position).Y + 10,
                        Color.White,
                        "Selected Target");

                    Drawing.DrawCircle(Extensions.GetInsecPos(newTarget), 100, Color.DeepSkyBlue);
                }
            }

            if (!DrawingsMenu.GetCheckBoxValue("drawsenabled"))
            {
                return;
            }



            if (WardJumpMenu.GetKeyBindValue("wardjump") && DrawingsMenu.GetCheckBoxValue("drawwardjump"))
            {
                Drawing.DrawCircle(Extensions.JumpPos.To3D(), 20, Color.Red);
                Drawing.DrawCircle(myHero.Position, 600, Color.Red);
            }
            var readyDraw = DrawingsMenu.GetCheckBoxValue("readyDraw");

            if (DrawingsMenu.GetCheckBoxValue("qDraw") && readyDraw ? Q.IsReady() : DrawingsMenu.GetCheckBoxValue("qDraw"))
            {
                Circle.Draw(QColorSlide.GetSharpColor(), Q.Range, 1f, Player.Instance);
            }

            if (DrawingsMenu.GetCheckBoxValue("wDraw") && readyDraw ? W.IsReady() : DrawingsMenu.GetCheckBoxValue("wDraw"))
            {
                Circle.Draw(WColorSlide.GetSharpColor(), W.Range, 1f, Player.Instance);
            }

            if (DrawingsMenu.GetCheckBoxValue("eDraw") && readyDraw ? E.IsReady() : DrawingsMenu.GetCheckBoxValue("eDraw"))
            {
                Circle.Draw(EColorSlide.GetSharpColor(), E.Range, 1f, Player.Instance);
            }

            if (DrawingsMenu.GetCheckBoxValue("rDraw") && readyDraw ? R.IsReady() : DrawingsMenu.GetCheckBoxValue("rDraw"))
            {
                Circle.Draw(RColorSlide.GetSharpColor(), R.Range, 1f, Player.Instance);
            }
        }