Ejemplo n.º 1
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            var readyDraw = DrawingsMenu["readyDraw"].Cast <CheckBox>().CurrentValue;
            var target    = TargetSelector.GetTarget(SpellsManager.E.Range + 20000, DamageType.Mixed);

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

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

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

            if (DrawingsMenu["rDraw"].Cast <CheckBox>().CurrentValue&& readyDraw
                ? R.IsReady()
                : DrawingsMenu["rDraw"].Cast <CheckBox>().CurrentValue)
            {
                Circle.Draw(EColorSlide.GetSharpColor(), R.Range, 1f, Player.Instance);
            }
        }
Ejemplo n.º 2
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);
            }
        }
Ejemplo n.º 3
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);
            }
        }
Ejemplo n.º 4
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            var readyDraw = DrawingsMenu["readyDraw"].Cast <CheckBox>().CurrentValue;
            var target    = TargetSelector.GetTarget(SpellsManager.E.Range + 20000, DamageType.Mixed);

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

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

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

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

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

            if (target == null)
            {
                return;
            }
            if (!(target.Health <=
                  target.GetTotalDamage()))
            {
                return;
            }
            Drawing.DrawText(Drawing.WorldToScreen(target.Position).X - 60,
                             Drawing.WorldToScreen(target.Position).Y + 10,
                             Color.Gold, "Killable with Combo");
        }
Ejemplo n.º 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.GetRDamage(SpellSlot.R) && x.BaseSkinName.Contains("SRU") && !x.BaseSkinName.Contains("Mini")))
            {
                if (jungleMonsters == null)
                {
                    return;
                }

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

            foreach (var Enemy in EntityManager.Heroes.Enemies.Where(e => e.Health < e.GetRDamage(SpellSlot.R) && e.IsValidTarget(30000) && !e.IsDead))
            {
                if (Enemy == null)
                {
                    return;
                }
                Drawing.DrawText(Drawing.WorldToScreen(Enemy.Position).X - 60,
                                 Drawing.WorldToScreen(target.Position).Y + 10,
                                 Color.Gold, "Biteable");
            }
            //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(), W.Range, 1f, Player.Instance);
            }


            if (target.Health <= target.GetRealDamage() && target.Health > target.GetRDamage(SpellSlot.R))
            {
                Drawing.DrawText(Drawing.WorldToScreen(target.Position).X - 60,
                                 Drawing.WorldToScreen(target.Position).Y + 10,
                                 Color.Gold, "Killable with Combo");
            }
        }
Ejemplo n.º 6
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);
                }
            }
        }
Ejemplo n.º 7
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            var sdl       = EntityManager.Heroes.Allies.Where(hero => !hero.IsMe && !hero.IsInShopRange() && !hero.IsZombie);
            var readyDraw = DrawingsMenu["readyDraw"].Cast <CheckBox>().CurrentValue;
            var target    = TargetSelector.GetTarget(R.Range, DamageType.Mixed);

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


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

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

            foreach (var ally in sdl)
            {
                if (ally.HealthPercent < HealMenu["RAllyHealth"].Cast <Slider>().CurrentValue&& HealMenu["Rtext"].Cast <CheckBox>().CurrentValue&& R.IsReady() && ally.CountEnemyChampionsInRange(HealMenu["REnemyInRange"].Cast <Slider>().CurrentValue) >= 1)
                {
                    Drawing.DrawText(Drawing.WorldToScreen(myhero.Position).X - 60,
                                     Drawing.WorldToScreen(myhero.Position).Y + 10,
                                     Color.Gold, "Ally need R");
                }
            }
        }
Ejemplo n.º 8
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);
            }
        }