コード例 #1
0
        private static void DrawPlayerBuffs()
        {
            var drawBuffs = MenuLocal.Item(GetPcModeStringValue + "DrawPlayerBuffs").GetValue <StringList>().SelectedIndex;

            if ((drawBuffs == 1 | drawBuffs == 3) && ObjectManager.Player.HasBlueBuff())
            {
                if (BlueBuff.EndTime >= Game.Time)
                {
                    var circle1 = new CommonGeometry.Circle2(new Vector2(ObjectManager.Player.Position.X + 3, ObjectManager.Player.Position.Y - 3), 170f, Game.Time - BlueBuff.StartTime, BlueBuff.EndTime - BlueBuff.StartTime).ToPolygon();
                    circle1.Draw(Color.Black, 4);

                    var circle = new CommonGeometry.Circle2(ObjectManager.Player.Position.To2D(), 170f, Game.Time - BlueBuff.StartTime, BlueBuff.EndTime - BlueBuff.StartTime).ToPolygon();
                    circle.Draw(Color.Blue, 4);
                }
            }

            if ((drawBuffs == 2 || drawBuffs == 3) && ObjectManager.Player.HasRedBuff())
            {
                if (RedBuff.EndTime >= Game.Time)
                {
                    var circle1 = new CommonGeometry.Circle2(new Vector2(ObjectManager.Player.Position.X + 3, ObjectManager.Player.Position.Y - 3), 150f, Game.Time - RedBuff.StartTime, RedBuff.EndTime - RedBuff.StartTime).ToPolygon();
                    circle1.Draw(Color.Black, 4);

                    var circle = new CommonGeometry.Circle2(ObjectManager.Player.Position.To2D(), 150f, Game.Time - RedBuff.StartTime, RedBuff.EndTime - RedBuff.StartTime).ToPolygon();
                    circle.Draw(Color.Red, 4);
                }
            }
        }
コード例 #2
0
        private static void DrawSpells()
        {
            var t = TargetSelector.GetTarget(Q.Range + 500, TargetSelector.DamageType.Physical);

            if (t.IsValidTarget())
            {
                var targetBehind = t.Position + Vector3.Normalize(t.ServerPosition - ObjectManager.Player.Position) * 80;
                Render.Circle.DrawCircle(targetBehind, 75f, Color.Red, 2);
            }

            var drawQ = MenuLocal.Item(GetPcModeStringValue + "Draw.Q").GetValue <Circle>();

            if (drawQ.Active && Q.Level > 0)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, Q.Range, Q.IsReady() ? drawQ.Color: Color.LightGray, Q.IsReady() ? 5 : 1);
            }

            if (!Q.IsReady())
            {
                var StartTime = Game.Time - (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Cooldown - Q.Cooldown);
                var EndTime   = StartTime + ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Cooldown;
                if (W.Cooldown >= 0)
                {
                    var circle1 = new CommonGeometry.Circle2(new Vector2(ObjectManager.Player.Position.X + 3, ObjectManager.Player.Position.Y - 3), Q.Range + 5,
                                                             Game.Time * 5 - StartTime * 5, EndTime * 5 - StartTime * 5
                                                             ).ToPolygon();
                    circle1.Draw(Color.Black, 5);

                    var circle = new CommonGeometry.Circle2(ObjectManager.Player.Position.To2D(), 170f, Game.Time - BlueBuff.StartTime, BlueBuff.EndTime - BlueBuff.StartTime).ToPolygon();
                    circle.Draw(Color.Blue, 4);
                }
            }

            if (!W.IsReady())
            {
                var StartTime = Game.Time - (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Cooldown - W.Cooldown);
                var EndTime   = StartTime + ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Cooldown;
                if (W.Cooldown >= 0)
                {
                    var circle1 = new CommonGeometry.Circle2(new Vector2(ObjectManager.Player.Position.X + 3, ObjectManager.Player.Position.Y - 3), W.Range,
                                                             Game.Time * 5 - StartTime * 5, EndTime * 5 - StartTime * 5
                                                             ).ToPolygon();
                    circle1.Draw(Color.Black, 4);

                    var circle = new CommonGeometry.Circle2(ObjectManager.Player.Position.To2D(), 170f, Game.Time - BlueBuff.StartTime, BlueBuff.EndTime - BlueBuff.StartTime).ToPolygon();
                    circle.Draw(Color.Blue, 4);
                }
            }
            var drawW = MenuLocal.Item(GetPcModeStringValue + "Draw.W").GetValue <Circle>();

            if (drawW.Active && E.Level > 0)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, W.Range, E.IsReady() ? drawW.Color: Color.LightGray, W.IsReady() ? 5 : 1);
            }

            var drawR = MenuLocal.Item(GetPcModeStringValue + "Draw.R").GetValue <Circle>();

            if (drawR.Active && R.Level > 0)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, R.Range, E.IsReady() ? drawR.Color : Color.LightGray, E.IsReady() ? 5 : 1);
            }
        }
コード例 #3
0
ファイル: ModeDraw.cs プロジェクト: mirinsharp/Leaguesharp
        private static void DrawSpells()
        {
            var t = TargetSelector.GetTarget(Q.Range + 500, TargetSelector.DamageType.Physical);
            if (t.IsValidTarget())
            {
                var targetBehind = t.Position + Vector3.Normalize(t.ServerPosition - ObjectManager.Player.Position)*80;
                Render.Circle.DrawCircle(targetBehind, 75f, Color.Red, 2);
            }

            var drawQ = MenuLocal.Item(GetPcModeStringValue + "Draw.Q").GetValue<Circle>();
            if (drawQ.Active && Q.Level > 0)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, Q.Range, Q.IsReady() ? drawQ.Color: Color.LightGray, Q.IsReady() ? 5 : 1);
            }

            if (!Q.IsReady())
            {
                var StartTime = Game.Time - (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Cooldown - Q.Cooldown);
                var EndTime = StartTime + ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Cooldown;
                if (W.Cooldown >= 0)
                {
                    var circle1 = new CommonGeometry.Circle2(new Vector2(ObjectManager.Player.Position.X + 3, ObjectManager.Player.Position.Y - 3), Q.Range+ 5,
                       Game.Time * 5 - StartTime * 5, EndTime * 5 - StartTime * 5
                        ).ToPolygon();
                    circle1.Draw(Color.Black, 5);

                    var circle = new CommonGeometry.Circle2(ObjectManager.Player.Position.To2D(), 170f, Game.Time - BlueBuff.StartTime, BlueBuff.EndTime - BlueBuff.StartTime).ToPolygon();
                    circle.Draw(Color.Blue, 4);
                }
            }

            if (!W.IsReady())
            {
                var StartTime = Game.Time - (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Cooldown - W.Cooldown);
                var EndTime = StartTime + ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Cooldown;
                if (W.Cooldown >= 0)
                {
                    var circle1 = new CommonGeometry.Circle2(new Vector2(ObjectManager.Player.Position.X + 3, ObjectManager.Player.Position.Y - 3), W.Range,
                       Game.Time * 5 - StartTime * 5, EndTime * 5 - StartTime * 5
                        ).ToPolygon();
                    circle1.Draw(Color.Black, 4);

                    var circle = new CommonGeometry.Circle2(ObjectManager.Player.Position.To2D(), 170f, Game.Time - BlueBuff.StartTime, BlueBuff.EndTime - BlueBuff.StartTime).ToPolygon();
                    circle.Draw(Color.Blue, 4);
                }

            }
            var drawW = MenuLocal.Item(GetPcModeStringValue + "Draw.W").GetValue<Circle>();
            if (drawW.Active && E.Level > 0)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, W.Range, E.IsReady() ? drawW.Color: Color.LightGray, W.IsReady() ? 5 : 1);
            }

            var drawR = MenuLocal.Item(GetPcModeStringValue + "Draw.R").GetValue<Circle>();
            if (drawR.Active && R.Level > 0)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, R.Range, E.IsReady() ? drawR.Color : Color.LightGray, E.IsReady() ? 5 : 1);
            }
        }
コード例 #4
0
ファイル: ModeDraw.cs プロジェクト: mirinsharp/Leaguesharp
        private static void DrawPlayerBuffs()
        {
            var drawBuffs = MenuLocal.Item(GetPcModeStringValue + "DrawPlayerBuffs").GetValue<StringList>().SelectedIndex;

            if ((drawBuffs == 1 | drawBuffs == 3) && ObjectManager.Player.HasBlueBuff() )
            {
                if (BlueBuff.EndTime >= Game.Time)
                {
                    var circle1 = new CommonGeometry.Circle2(new Vector2(ObjectManager.Player.Position.X + 3, ObjectManager.Player.Position.Y - 3), 170f, Game.Time - BlueBuff.StartTime, BlueBuff.EndTime - BlueBuff.StartTime).ToPolygon();
                    circle1.Draw(Color.Black, 4);

                    var circle = new CommonGeometry.Circle2(ObjectManager.Player.Position.To2D(), 170f, Game.Time - BlueBuff.StartTime, BlueBuff.EndTime - BlueBuff.StartTime ).ToPolygon();
                    circle.Draw(Color.Blue, 4);
                }
            }

            if ((drawBuffs == 2 || drawBuffs == 3) && ObjectManager.Player.HasRedBuff())
            {
                if (RedBuff.EndTime >= Game.Time)
                {
                    var circle1 = new CommonGeometry.Circle2(new Vector2(ObjectManager.Player.Position.X + 3, ObjectManager.Player.Position.Y - 3), 150f, Game.Time - RedBuff.StartTime, RedBuff.EndTime - RedBuff.StartTime).ToPolygon();
                    circle1.Draw(Color.Black, 4);

                    var circle = new CommonGeometry.Circle2(ObjectManager.Player.Position.To2D(), 150f, Game.Time - RedBuff.StartTime, RedBuff.EndTime - RedBuff.StartTime).ToPolygon();
                    circle.Draw(Color.Red, 4);
                }
            }
        }