예제 #1
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            /*
             * if (xSelectedTarget != null && xSelectedTarget.IsValidTarget())
             * {
             *   Render.Circle.DrawCircle(xSelectedTarget.Position, xSelectedTarget.BoundingRadius * 1.5f, System.Drawing.Color.Red);
             * }
             */
            var drawJunglePosition = CClass.Config.SubMenu("Drawings").Item("drawJunglePosition").GetValue <bool>();
            {
                if (drawJunglePosition)
                {
                    Utils.Jungle.DrawJunglePosition();
                }
            }

            var drawMinionLastHit  = CClass.Config.SubMenu("Drawings").Item("drawMinionLastHit").GetValue <Circle>();
            var drawMinionNearKill = CClass.Config.SubMenu("Drawings").Item("drawMinionNearKill").GetValue <Circle>();

            if (drawMinionLastHit.Active || drawMinionNearKill.Active)
            {
                var xMinions =
                    MinionManager.GetMinions(ObjectManager.Player.Position,
                                             ObjectManager.Player.AttackRange + ObjectManager.Player.BoundingRadius + 300, MinionTypes.All,
                                             MinionTeam.Enemy, MinionOrderTypes.MaxHealth);

                foreach (var xMinion in xMinions)
                {
                    if (drawMinionLastHit.Active && ObjectManager.Player.GetAutoAttackDamage(xMinion, true) >=
                        xMinion.Health)
                    {
                        Render.Circle.DrawCircle(xMinion.Position, xMinion.BoundingRadius, drawMinionLastHit.Color);
                    }
                    else if (drawMinionNearKill.Active &&
                             ObjectManager.Player.GetAutoAttackDamage(xMinion, true) * 2 >= xMinion.Health)
                    {
                        Render.Circle.DrawCircle(xMinion.Position, xMinion.BoundingRadius, drawMinionNearKill.Color);
                    }
                }
            }

            if (CClass != null)
            {
                CClass.Drawing_OnDraw(args);
            }
            return;

            var y = 10;

            foreach (
                var t in
                ObjectManager.Player.Buffs.Select(
                    b => b.DisplayName + " - " + b.IsActive + " - " + (b.EndTime > Game.Time) + " - " + b.IsPositive)
                )
            {
                Drawing.DrawText(0, y, System.Drawing.Color.Wheat, t);
                y = y + 16;
            }
        }
예제 #2
0
        private static void Drawing_OnDraw(EventArgs args)
        {
/*
 *                  var t = TargetSelector.SelectedTarget;
 *          if (!t.IsValidTarget())
 *          {
 *              t = TargetSelector.GetTarget(1100, TargetSelector.DamageType.Physical);
 *              TargetSelector.SetTarget(t);
 *          }
 *
 *          if (t.IsValidTarget() && ObjectManager.Player.Distance(t) < 1110)
 *          {
 *              Render.Circle.DrawCircle(t.Position, 150, Color.Yellow);
 *          }
 */

            var drawJunglePosition = CClass.Config.SubMenu("Drawings").Item("drawJunglePosition").GetValue <bool>();
            {
                if (drawJunglePosition)
                {
                    Utils.Utils.Jungle.DrawJunglePosition();
                }
            }

            var drawMinionLastHit  = CClass.Config.SubMenu("Drawings").Item("drawMinionLastHit").GetValue <Circle>();
            var drawMinionNearKill = CClass.Config.SubMenu("Drawings").Item("drawMinionNearKill").GetValue <Circle>();

            if (drawMinionLastHit.Active || drawMinionNearKill.Active)
            {
                var xMinions =
                    MinionManager.GetMinions(ObjectManager.Player.Position,
                                             ObjectManager.Player.AttackRange + ObjectManager.Player.BoundingRadius + 300, MinionTypes.All,
                                             MinionTeam.Enemy, MinionOrderTypes.MaxHealth);

                foreach (var xMinion in xMinions)
                {
                    if (drawMinionLastHit.Active && ObjectManager.Player.GetAutoAttackDamage(xMinion, true) >=
                        xMinion.Health)
                    {
                        Render.Circle.DrawCircle(xMinion.Position, xMinion.BoundingRadius, drawMinionLastHit.Color);
                    }
                    else if (drawMinionNearKill.Active &&
                             ObjectManager.Player.GetAutoAttackDamage(xMinion, true) * 2 >= xMinion.Health)
                    {
                        Render.Circle.DrawCircle(xMinion.Position, xMinion.BoundingRadius, drawMinionNearKill.Color);
                    }
                }
            }

            if (CClass != null)
            {
                CClass.Drawing_OnDraw(args);
            }
        }
예제 #3
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            var turnOffDrawings = Config.Item("Draw.TurnOff").GetValue <StringList>().SelectedIndex;

            if (turnOffDrawings == 0)
            {
                return;
            }

            if ((turnOffDrawings == 2 || turnOffDrawings == 4) &&
                ChampionClass.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                return;
            }

            if ((turnOffDrawings == 3 || turnOffDrawings == 4) &&
                (ChampionClass.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LastHit ||
                 ChampionClass.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear))
            {
                return;
            }

            var drawMinionLastHit = Config.Item("Draw.MinionLastHit").GetValue <StringList>().SelectedIndex;

            if (drawMinionLastHit != 0)
            {
                var mx =
                    ObjectManager.Get <Obj_AI_Minion>()
                    .Where(m => !m.IsDead && m.IsEnemy)
                    .Where(m => m.Health <= ObjectManager.Player.TotalAttackDamage);

                if (drawMinionLastHit == 1)
                {
                    mx = mx.Where(m => m.IsValidTarget(Orbwalking.GetRealAutoAttackRange(null) + 65));
                }
                mx =
                    mx.Where(
                        m =>
                        m.IsValidTarget(Orbwalking.GetRealAutoAttackRange(null) + 65 + 300) &&
                        m.Distance(ObjectManager.Player.Position) > Orbwalking.GetRealAutoAttackRange(null) + 65);

                foreach (var minion in mx)
                {
                    Render.Circle.DrawCircle(minion.Position, minion.BoundingRadius, Color.GreenYellow, 1);
                }
            }

            ChampionClass?.Drawing_OnDraw(args);
        }
예제 #4
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            CClass.Drawing_OnDraw(args);
            return;

            var y = 10;

            foreach (
                var t in
                ObjectManager.Player.Buffs.Select(
                    b => b.DisplayName + " - " + b.IsActive + " - " + (b.EndTime > Game.Time) + " - " + b.IsPositive)
                )
            {
                Drawing.DrawText(0, y, System.Drawing.Color.Wheat, t);
                y = y + 16;
            }
        }
예제 #5
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            var drawMinionLastHit  = CClass.Config.SubMenu("Drawings").Item("drawMinionLastHit").GetValue <Circle>();
            var drawMinionNearKill = CClass.Config.SubMenu("Drawings").Item("drawMinionNearKill").GetValue <Circle>();

            if (drawMinionLastHit.Active || drawMinionNearKill.Active)
            {
                var xMinions =
                    MinionManager.GetMinions(ObjectManager.Player.Position,
                                             ObjectManager.Player.AttackRange + ObjectManager.Player.BoundingRadius + 300, MinionTypes.All,
                                             MinionTeam.Enemy, MinionOrderTypes.MaxHealth);

                foreach (var xMinion in xMinions)
                {
                    if (drawMinionLastHit.Active && ObjectManager.Player.GetAutoAttackDamage(xMinion, true) >=
                        xMinion.Health)
                    {
                        Utility.DrawCircle(xMinion.Position, xMinion.BoundingRadius, drawMinionLastHit.Color);
                    }
                    else if (drawMinionNearKill.Active &&
                             ObjectManager.Player.GetAutoAttackDamage(xMinion, true) * 2 >= xMinion.Health)
                    {
                        Utility.DrawCircle(xMinion.Position, xMinion.BoundingRadius, drawMinionNearKill.Color);
                    }
                }
            }

            CClass.Drawing_OnDraw(args);
            return;

            var y = 10;

            foreach (
                var t in
                ObjectManager.Player.Buffs.Select(
                    b => b.DisplayName + " - " + b.IsActive + " - " + (b.EndTime > Game.Time) + " - " + b.IsPositive)
                )
            {
                Drawing.DrawText(0, y, System.Drawing.Color.Wheat, t);
                y = y + 16;
            }
        }
예제 #6
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            //if (CClass.Config.SubMenu("Drawings").Item("Draw.Ping").GetValue<bool>())
            //    Drawing.DrawText(Drawing.Width*0.94f, Drawing.Height*0.05f, Color.GreenYellow, "Ping: " + Game.Ping);

            var toD = CClass.Config.SubMenu("Drawings").Item("Draw.ToD").GetValue <bool>();

            if (toD)
            {
                var enemyCount =
                    CClass.Config.SubMenu("Drawings").Item("Draw.ToDMinEnemy").GetValue <Slider>().Value;
                var controlRange =
                    CClass.Config.SubMenu("Drawings").Item("Draw.ToDControlRange").GetValue <Slider>().Value;

                var xEnemies = HeroManager.Enemies.Count(enemies => enemies.IsValidTarget(controlRange));
                if (xEnemies >= enemyCount)
                {
                    return;
                }

                var toDRangeColor =
                    CClass.Config.SubMenu("Drawings").Item("Draw.ToDControlRangeColor").GetValue <Circle>();
                if (toDRangeColor.Active)
                {
                    Render.Circle.DrawCircle(ObjectManager.Player.Position, controlRange, toDRangeColor.Color);
                }
            }

            /*
             * var t = TargetSelector.SelectedTarget;
             * if (!t.IsValidTarget())
             * {
             *  t = TargetSelector.GetTarget(1100, TargetSelector.DamageType.Physical);
             *  TargetSelector.SetTarget(t);
             * }
             *
             * if (t.IsValidTarget() && ObjectManager.Player.Distance(t) < 1110)
             * {
             *  Render.Circle.DrawCircle(t.Position, 150, Color.Yellow);
             * }
             */
            var drawJunglePosition = CClass.Config.SubMenu("Drawings").Item("drawJunglePosition").GetValue <bool>();
            {
                if (drawJunglePosition)
                {
                    Utils.Utils.Jungle.DrawJunglePosition();
                }
            }

            var drawMinionLastHit  = CClass.Config.SubMenu("Drawings").Item("drawMinionLastHit").GetValue <Circle>();
            var drawMinionNearKill = CClass.Config.SubMenu("Drawings").Item("drawMinionNearKill").GetValue <Circle>();

            if (drawMinionLastHit.Active || drawMinionNearKill.Active)
            {
                var xMinions =
                    MinionManager.GetMinions(ObjectManager.Player.Position,
                                             ObjectManager.Player.AttackRange + ObjectManager.Player.BoundingRadius + 300, MinionTypes.All,
                                             MinionTeam.Enemy, MinionOrderTypes.MaxHealth);

                foreach (var xMinion in xMinions)
                {
                    if (drawMinionLastHit.Active && ObjectManager.Player.GetAutoAttackDamage(xMinion, true) >=
                        xMinion.Health)
                    {
                        Render.Circle.DrawCircle(xMinion.Position, xMinion.BoundingRadius, drawMinionLastHit.Color);
                    }
                    else if (drawMinionNearKill.Active &&
                             ObjectManager.Player.GetAutoAttackDamage(xMinion, true) * 2 >= xMinion.Health)
                    {
                        Render.Circle.DrawCircle(xMinion.Position, xMinion.BoundingRadius, drawMinionNearKill.Color);
                    }
                }
            }

            if (CClass != null)
            {
                CClass.Drawing_OnDraw(args);
            }
        }
예제 #7
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            var turnOffDrawings = Config.Item("Draw.TurnOff").GetValue <StringList>().SelectedIndex;

            if (turnOffDrawings == 0)
            {
                return;
            }

            if ((turnOffDrawings == 2 || turnOffDrawings == 4) && CClass.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                return;
            }

            if ((turnOffDrawings == 3 || turnOffDrawings == 4) && (CClass.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LastHit || CClass.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear))
            {
                return;
            }

            if (Config.Item("Draw.KillableEnemy").GetValue <bool>())
            {
                var t = KillableEnemyAa;
                if (t.Key != null && t.Key.IsValidTarget(Marksman.Utils.Orbwalking.GetRealAutoAttackRange(null) + 1000) && t.Value > 0)
                {
                    Utils.Utils.DrawText(Utils.Utils.Text, string.Format("{0}: {1} x AA Damage = Kill", t.Key.ChampionName, t.Value), (int)t.Key.HPBarPosition.X + 145, (int)t.Key.HPBarPosition.Y + 5, SharpDX.Color.White);
                }
            }


            var myChampionKilled = ObjectManager.Player.ChampionsKilled;
            var myAssists        = ObjectManager.Player.Assists;
            var myDeaths         = ObjectManager.Player.Deaths;
            var myMinionsKilled  = ObjectManager.Player.MinionsKilled;

            if (Config.Item("Marksman.Compare.Set").GetValue <StringList>().SelectedIndex == 1)
            {
                if (Config.Item("Marksman.Compare").GetValue <StringList>().SelectedIndex != 0)
                {
                    Obj_AI_Hero compChampion = null;
                    foreach (
                        Obj_AI_Hero e in
                        HeroManager.Enemies.Where(
                            e =>
                            e.ChampionName ==
                            Config.Item("Marksman.Compare").GetValue <StringList>().SelectedValue))
                    {
                        compChampion = e;
                    }

                    var compChampionKilled = compChampion.ChampionsKilled;
                    var compAssists        = compChampion.Assists;
                    var compDeaths         = compChampion.Deaths;
                    var compMinionsKilled  = compChampion.MinionsKilled;
                    var xText = "You: " + myChampionKilled + " / " + myDeaths + " / " + myAssists + " | " +
                                myMinionsKilled +
                                "      vs      " +
                                compChampion.ChampionName + " : " + compChampionKilled + " / " + compDeaths + " | " +
                                compAssists + " | " + compMinionsKilled;

                    DrawBox(new Vector2(Drawing.Width * 0.400f, Drawing.Height * 0.132f), 350, 26,
                            System.Drawing.Color.FromArgb(100, 255, 200, 37), 1, System.Drawing.Color.Black);
                    Utils.Utils.DrawText(Utils.Utils.Text, xText, Drawing.Width * 0.422f, Drawing.Height * 0.140f,
                                         SharpDX.Color.Wheat);

                    if (Game.Time - AsmLoadingTime < 15)
                    {
                        var timer   = string.Format("0:{0:D2}", (int)15 - (int)(Game.Time - AsmLoadingTime));
                        var notText =
                            "You can turn on/off this option. Go to 'Marksman -> Global Drawings -> Compare With Me'";
                        Utils.Utils.DrawText(Utils.Utils.Text, notText, Drawing.Width * 0.291f, Drawing.Height * 0.166f,
                                             SharpDX.Color.Black);
                        Utils.Utils.DrawText(Utils.Utils.Text, notText, Drawing.Width * 0.290f, Drawing.Height * 0.165f,
                                             SharpDX.Color.White);
                        Utils.Utils.DrawText(Utils.Utils.Text, "This message will self destruct in " + timer,
                                             Drawing.Width * 0.400f, Drawing.Height * 0.195f, SharpDX.Color.Aqua);
                    }
                }
            }

            /*            var toD = CClass.Config.Item("Draw.ToD").GetValue<bool>();
             *          if (toD)
             *          {
             *              var enemyCount =
             *                  CClass.Config.Item("Draw.ToDMinEnemy").GetValue<Slider>().Value;
             *              var controlRange =
             *                  CClass.Config.Item("Draw.ToDControlRange").GetValue<Slider>().Value;
             *
             *              var xEnemies = HeroManager.Enemies.Count(enemies => enemies.IsValidTarget(controlRange));
             *              if (xEnemies >= enemyCount)
             *                  return;
             *
             *              var toDRangeColor =
             *                  CClass.Config.Item("Draw.ToDControlRangeColor").GetValue<Circle>();
             *              if (toDRangeColor.Active)
             *                  Render.Circle.DrawCircle(ObjectManager.Player.Position, controlRange, toDRangeColor.Color);
             *
             *          }
             */
            /*
             * var t = TargetSelector.SelectedTarget;
             * if (!t.IsValidTarget())
             * {
             *  t = TargetSelector.GetTarget(1100, TargetSelector.DamageType.Physical);
             *  TargetSelector.SetTarget(t);
             * }
             *
             * if (t.IsValidTarget() && ObjectManager.Player.Distance(t) < 1110)
             * {
             *  Render.Circle.DrawCircle(t.Position, 150, Color.Yellow);
             * }
             */
            //Utils.Jungle.DrawJunglePosition(Config.Item("Draw.JunglePosition").GetValue<StringList>().SelectedIndex);


            var drawMinionLastHit = Config.Item("Draw.MinionLastHit").GetValue <StringList>().SelectedIndex;

            if (drawMinionLastHit != 0)
            {
                var mx = ObjectManager.Get <Obj_AI_Minion>().Where(m => !m.IsDead && m.IsEnemy).Where(m => m.Health <= ObjectManager.Player.TotalAttackDamage);

                if (drawMinionLastHit == 1)
                {
                    mx = mx.Where(m => m.IsValidTarget(Marksman.Utils.Orbwalking.GetRealAutoAttackRange(null) + 65));
                }
                else
                {
                    mx = mx.Where(m => m.IsValidTarget(Marksman.Utils.Orbwalking.GetRealAutoAttackRange(null) + 65 + 300) && m.Distance(ObjectManager.Player.Position) > Marksman.Utils.Orbwalking.GetRealAutoAttackRange(null) + 65);
                }

                foreach (var minion in mx)
                {
                    Render.Circle.DrawCircle(minion.Position, minion.BoundingRadius, System.Drawing.Color.GreenYellow, 1);
                }
            }

            if (CClass != null)
            {
                CClass.Drawing_OnDraw(args);
            }
        }