Beispiel #1
0
        static void DrawArrow(Slide slide)
        {
            if (!DrawRObject && !DrawRObject)
            {
                return;
            }

            var color = slide.Type == 1 ? Color.DarkRed : Color.DeepPink;
            var width = 4;

            var circle = new Geometry.Circle2(slide.Position.LSTo2D(), 150f, Game.Time * 300 - slide.StartTime * 300, slide.EndTime * 300 - slide.StartTime * 300).ToPolygon();

            circle.Draw(color, width);

            var startpos = ObjectManager.Player.Position;
            var endpos   = slide.Position;

            if (startpos.LSDistance(endpos) > 100)
            {
                var endpos1 = slide.Position + (startpos - endpos).LSTo2D().LSNormalized().LSRotated(25 * (float)Math.PI / 180).To3D() * 75;
                var endpos2 = slide.Position + (startpos - endpos).LSTo2D().LSNormalized().LSRotated(-25 * (float)Math.PI / 180).To3D() * 75;

                var x1 = new LeagueSharp.Common.Geometry.Polygon.Line(startpos, endpos);
                x1.Draw(color, width - 2);
                var y1 = new LeagueSharp.Common.Geometry.Polygon.Line(endpos, endpos1);
                y1.Draw(color, width - 2);
                var z1 = new LeagueSharp.Common.Geometry.Polygon.Line(endpos, endpos2);
                z1.Draw(color, width - 2);
            }
        }
Beispiel #2
0
        private static void DrawBuffs()
        {
            if (MenuLocal.Item(GetPcModeStringValue + "DrawBuffs").GetValue <bool>())
            {
                foreach (var hero in HeroManager.AllHeroes)
                {
                    var jungleBuffs =
                        (from b in hero.Buffs
                         join b1 in CommonBuffManager.JungleBuffs on b.DisplayName equals b1.BuffName
                         select new { b, b1 }).Distinct();

                    foreach (var buffName in jungleBuffs.ToList())
                    {
                        var circle1 =
                            new CommonGeometry.Circle2(new Vector2(hero.Position.X + 3, hero.Position.Y - 3),
                                                       140 + (buffName.b1.Number * 20),
                                                       Game.Time - buffName.b.StartTime, buffName.b.EndTime - buffName.b.StartTime).ToPolygon();
                        circle1.Draw(Color.Black, 3);

                        var circle =
                            new CommonGeometry.Circle2(hero.Position.To2D(), 140 + (buffName.b1.Number * 20),
                                                       Game.Time - buffName.b.StartTime, buffName.b.EndTime - buffName.b.StartTime).ToPolygon();
                        circle.Draw(buffName.b1.Color, 3);
                    }
                }
            }
        }
Beispiel #3
0
        static void DrawArrow(Slide slide)
        {
            if (!DrawRObject && !DrawRObject)
            {
                return;
            }

            var color = slide.Type == 1 ? Color.DarkRed : Color.DeepPink;
            var width = 4;

            var circle = new Geometry.Circle2(slide.Position.To2D(), 150f, Game.Time * 300 - slide.StartTime * 300, slide.EndTime * 300 - slide.StartTime * 300).ToPolygon();
            circle.Draw(color, width);

            var startpos = ObjectManager.Player.Position;
            var endpos = slide.Position;
            if (startpos.Distance(endpos) > 100)
            {
                var endpos1 = slide.Position + (startpos - endpos).To2D().Normalized().Rotated(25 * (float)Math.PI / 180).To3D() * 75;
                var endpos2 = slide.Position + (startpos - endpos).To2D().Normalized().Rotated(-25 * (float)Math.PI / 180).To3D() * 75;

                var x1 = new LeagueSharp.Common.Geometry.Polygon.Line(startpos, endpos);
                x1.Draw(color, width - 2);
                var y1 = new LeagueSharp.Common.Geometry.Polygon.Line(endpos, endpos1);
                y1.Draw(color, width - 2);
                var z1 = new LeagueSharp.Common.Geometry.Polygon.Line(endpos, endpos2);
                z1.Draw(color, width - 2);
            }
        }
Beispiel #4
0
        private static void DrawingOnOnDraw(EventArgs args)
        {
            if (!Modes.ModeDraw.MenuLocal["Draw.Enable"].Cast <CheckBox>().CurrentValue)
            {
                return;
            }

            if (!DrawRObject && !DrawRObject)
            {
                return;
            }

            foreach (var eObjects in ObjectManager.Get <Obj_AI_Base>().Where(e => e.IsEnemy && !e.IsDead && e.LSIsValidTarget(1500)))
            {
                if (DrawWObject)
                {
                    if (LeblancSoulShackle.EndTime >= Game.Time && eObjects.NetworkId == LeblancSoulShackle.Object.NetworkId)
                    {
                        var circle = new Geometry.Circle2(LeblancSoulShackle.Object.Position.LSTo2D(), LeblancSoulShackle.Object.BoundingRadius - 20, Game.Time * 300 - LeblancSoulShackle.StartTime * 300, LeblancSoulShackle.EndTime * 300 - LeblancSoulShackle.StartTime * 300).ToPolygon();
                        circle.Draw(Color.GreenYellow, 5);
                    }
                }

                if (DrawWObject)
                {
                    if (LeblancSoulShackleM.EndTime >= Game.Time && eObjects.NetworkId == LeblancSoulShackleM.Object.NetworkId)
                    {
                        var circle = new Geometry.Circle2(LeblancSoulShackleM.Object.Position.LSTo2D(), LeblancSoulShackleM.Object.BoundingRadius, Game.Time * 300 - LeblancSoulShackleM.StartTime * 300, LeblancSoulShackleM.EndTime * 300 - LeblancSoulShackleM.StartTime * 300).ToPolygon();
                        circle.Draw(Color.DarkRed, 5);
                    }
                }
            }

            if (DrawWObject)
            {
                var wSlide = ExistingSlide.FirstOrDefault(s => s.Type == 0 && s.EndTime >= Game.Time);
                if (wSlide != null)
                {
                    DrawArrow(wSlide);
                }
            }

            if (DrawRObject)
            {
                var rSlide = ExistingSlide.FirstOrDefault(s => s.Type == 1 && s.EndTime >= Game.Time);
                if (rSlide != null)
                {
                    DrawArrow(rSlide);
                }
            }
        }
Beispiel #5
0
        private static void DrawingOnOnDraw(EventArgs args)
        {
            if (Program.Config.Item("Objects.EStunStatus").GetValue <bool>())
            {
                foreach (var e in ObjectManager.Get <Obj_AI_Base>())
                {
                    if (e.Buffs.Find(buff => buff.DisplayName.Equals("Leblancshacklebeam", StringComparison.InvariantCultureIgnoreCase)) != null)
                    {
                        BuffInstance b = e.Buffs.Find(buff => buff.DisplayName.Equals("Leblancshacklebeam", StringComparison.InvariantCultureIgnoreCase));
                        if (b != null)
                        {
                            var circle1 =
                                new Geometry.Circle2(new Vector2(e.Position.X + 3, e.Position.Y - 3), e.BoundingRadius * 2,
                                                     Game.Time * 300 - b.StartTime * 300, b.EndTime * 300 - b.StartTime * 300).ToPolygon();
                            circle1.Draw(Color.Black, 3);


                            var circle =
                                new Geometry.Circle2(e.Position.To2D(), e.BoundingRadius * 2,
                                                     Game.Time * 300 - b.StartTime * 300, b.EndTime * 300 - b.StartTime * 300).ToPolygon();
                            circle.Draw(Color.DarkRed, 3);
                        }
                    }

                    if (e.Buffs.Find(buff => buff.DisplayName.Equals("Leblancshacklebeamm", StringComparison.InvariantCultureIgnoreCase)) != null)
                    {
                        BuffInstance b = e.Buffs.Find(buff => buff.DisplayName.Equals("Leblancshacklebeamm", StringComparison.InvariantCultureIgnoreCase));
                        if (b != null)
                        {
                            var circle1 =
                                new Geometry.Circle2(new Vector2(e.Position.X + 3, e.Position.Y - 3), e.BoundingRadius * 2,
                                                     Game.Time * 300 - b.StartTime * 300, b.EndTime * 300 - b.StartTime * 300).ToPolygon();
                            circle1.Draw(Color.Black, 3);


                            var circle =
                                new Geometry.Circle2(e.Position.To2D(), e.BoundingRadius * 2,
                                                     Game.Time * 300 - b.StartTime * 300, b.EndTime * 300 - b.StartTime * 300).ToPolygon();
                            circle.Draw(Color.DarkRed, 3);
                        }
                    }
                }
            }

            //foreach (var eObjects in ObjectManager.Get<Obj_AI_Base>().Where(e => e.IsEnemy && !e.IsDead && e.IsValidTarget(1500)))
            //{
            //    if (LeblancSoulShackle.EndTime >= Game.Time && eObjects.NetworkId == LeblancSoulShackle.Object.NetworkId)
            //    {
            //        var circle1 = new Geometry.Circle2(new Vector2(LeblancSoulShackle.Object.Position.X + 3, LeblancSoulShackle.Object.Position.X - 3), 170f, Game.Time * 300 - LeblancSoulShackle.StartTime * 300, LeblancSoulShackle.EndTime * 300 - LeblancSoulShackle.StartTime * 300).ToPolygon();
            //        circle1.Draw(Color.Black, 5);

            //        var circle = new Geometry.Circle2(LeblancSoulShackle.Object.Position.To2D(), 170f, Game.Time * 300 - LeblancSoulShackle.StartTime * 300, LeblancSoulShackle.EndTime * 300 - LeblancSoulShackle.StartTime * 300).ToPolygon();
            //        circle.Draw(Color.GreenYellow, 5);
            //    }

            //    if (LeblancSoulShackleM.EndTime >= Game.Time && eObjects.NetworkId == LeblancSoulShackleM.Object.NetworkId)
            //    {
            //        var circle1 = new Geometry.Circle2(new Vector2(LeblancSoulShackleM.Object.Position.X + 3, LeblancSoulShackleM.Object.Position.X - 3), 170f, Game.Time * 300 - LeblancSoulShackleM.StartTime * 300, LeblancSoulShackleM.EndTime * 300 - LeblancSoulShackleM.StartTime * 300).ToPolygon();
            //        circle1.Draw(Color.Black, 5);

            //        var circle = new Geometry.Circle2(LeblancSoulShackleM.Object.Position.To2D(), 190f, Game.Time * 300 - LeblancSoulShackleM.StartTime * 300, LeblancSoulShackleM.EndTime * 300 - LeblancSoulShackleM.StartTime * 300).ToPolygon();
            //        circle.Draw(Color.DarkRed, 5);
            //    }
            //}

            if (Program.Config.Item("Objects.WPosition").GetValue <bool>())
            {
                foreach (var x in ExistingSlide)
                {
                    if (x.EndTime >= Game.Time)
                    {
                        var color = x.Type == 1 ? Color.DarkRed : Color.DeepPink;
                        var width = 4;

                        var circle1 =
                            new Geometry.Circle2(new Vector2(x.Position.X + 3, x.Position.Y - 3), 150f,
                                                 Game.Time * 300 - x.StartTime * 300, x.EndTime * 300 - x.StartTime * 300).ToPolygon();
                        circle1.Draw(Color.Black, 4);

                        var circle =
                            new Geometry.Circle2(x.Position.To2D(), 150f, Game.Time * 300 - x.StartTime * 300,
                                                 x.EndTime * 300 - x.StartTime * 300).ToPolygon();
                        circle.Draw(color, width);

                        var startpos = ObjectManager.Player.Position;
                        var endpos   = x.Position;
                        if (startpos.Distance(endpos) > 100)
                        {
                            var endpos1 = x.Position +
                                          (startpos - endpos).To2D().Normalized().Rotated(25 * (float)Math.PI / 180).To3D() *
                                          75;
                            var endpos2 = x.Position +
                                          (startpos - endpos).To2D()
                                          .Normalized()
                                          .Rotated(-25 * (float)Math.PI / 180)
                                          .To3D() * 75;

                            var x1 = new LeagueSharp.Common.Geometry.Polygon.Line(startpos, endpos);
                            x1.Draw(color, width - 2);
                            var y1 = new LeagueSharp.Common.Geometry.Polygon.Line(endpos, endpos1);
                            y1.Draw(color, width - 2);
                            var z1 = new LeagueSharp.Common.Geometry.Polygon.Line(endpos, endpos2);
                            z1.Draw(color, width - 2);
                        }
                    }
                }
            }
        }
Beispiel #6
0
        private static void DrawingOnOnDraw(EventArgs args)
        {
            if (!Modes.ModeDraw.MenuLocal.Item("Draw.Enable").GetValue<bool>())
            {
                return;
            }

            if (!DrawRObject && !DrawRObject)
            {
                return;
            }

            foreach (var eObjects in ObjectManager.Get<Obj_AI_Base>().Where(e => e.IsEnemy && !e.IsDead && e.IsValidTarget(1500)))
            {
                if (DrawWObject)
                {
                    if (LeblancSoulShackle.EndTime >= Game.Time && eObjects.NetworkId == LeblancSoulShackle.Object.NetworkId)
                    {
                        var circle = new Geometry.Circle2(LeblancSoulShackle.Object.Position.To2D(), LeblancSoulShackle.Object.BoundingRadius - 20, Game.Time * 300 - LeblancSoulShackle.StartTime * 300, LeblancSoulShackle.EndTime * 300 - LeblancSoulShackle.StartTime * 300).ToPolygon();
                        circle.Draw(Color.GreenYellow, 5);
                    }
                }

                if (DrawWObject)
                {
                    if (LeblancSoulShackleM.EndTime >= Game.Time && eObjects.NetworkId == LeblancSoulShackleM.Object.NetworkId)
                    {
                        var circle = new Geometry.Circle2(LeblancSoulShackleM.Object.Position.To2D(), LeblancSoulShackleM.Object.BoundingRadius, Game.Time * 300 - LeblancSoulShackleM.StartTime * 300, LeblancSoulShackleM.EndTime * 300 - LeblancSoulShackleM.StartTime * 300).ToPolygon();
                        circle.Draw(Color.DarkRed, 5);
                    }
                }
            }

            if (DrawWObject)
            {
                var wSlide = ExistingSlide.FirstOrDefault(s => s.Type == 0 && s.EndTime >= Game.Time);
                if (wSlide != null)
                {
                    DrawArrow(wSlide);
                }
            }

            if (DrawRObject)
            {
                var rSlide = ExistingSlide.FirstOrDefault(s => s.Type == 1 && s.EndTime >= Game.Time);
                if (rSlide != null)
                {
                    DrawArrow(rSlide);
                }
            }
        }
Beispiel #7
0
        private static void DrawBuffs()
        {
            if (MenuLocal["DrawBuffs"].Cast<CheckBox>().CurrentValue)
            {
                foreach (var hero in HeroManager.AllHeroes)
                {
                    var jungleBuffs =
                        (from b in hero.Buffs
                         join b1 in CommonBuffManager.JungleBuffs on b.DisplayName equals b1.BuffName
                         select new { b, b1 }).Distinct();

                    foreach (var buffName in jungleBuffs.ToList())
                    {
                        var circle1 =
                            new CommonGeometry.Circle2(new Vector2(hero.Position.X + 3, hero.Position.Y - 3),
                                140 + (buffName.b1.Number * 20),
                                Game.Time - buffName.b.StartTime, buffName.b.EndTime - buffName.b.StartTime).ToPolygon();
                        circle1.Draw(Color.Black, 3);

                        var circle =
                            new CommonGeometry.Circle2(hero.Position.LSTo2D(), 140 + (buffName.b1.Number * 20),
                                Game.Time - buffName.b.StartTime, buffName.b.EndTime - buffName.b.StartTime).ToPolygon();
                        circle.Draw(buffName.b1.Color, 3);
                    }
                }
            }
        }