コード例 #1
0
ファイル: LeeSinSharp.cs プロジェクト: MadScripts/LeagueSharp
 private static void onDraw(EventArgs args)
 {
     if (Config.Item("DrawQ").GetValue <bool>())
     {
         Utility.DrawCircle(ObjectManager.Player.Position, 1000, System.Drawing.Color.Gray,
                            Config.Item("CircleThickness").GetValue <Slider>().Value,
                            Config.Item("CircleQuality").GetValue <Slider>().Value);
     }
     if (Config.Item("DrawW").GetValue <bool>())
     {
         Utility.DrawCircle(ObjectManager.Player.Position, 700, System.Drawing.Color.Gray,
                            Config.Item("CircleThickness").GetValue <Slider>().Value,
                            Config.Item("CircleQuality").GetValue <Slider>().Value);
     }
     if (Config.Item("DrawE").GetValue <bool>())
     {
         Utility.DrawCircle(ObjectManager.Player.Position, 350, System.Drawing.Color.Gray,
                            Config.Item("CircleThickness").GetValue <Slider>().Value,
                            Config.Item("CircleQuality").GetValue <Slider>().Value);
     }
     if (Config.Item("DrawR").GetValue <bool>())
     {
         Utility.DrawCircle(ObjectManager.Player.Position, 375, System.Drawing.Color.Gray,
                            Config.Item("CircleThickness").GetValue <Slider>().Value,
                            Config.Item("CircleQuality").GetValue <Slider>().Value);
     }
     if (Config.Item("DrawInsec").GetValue <bool>() && LeeSin.R.IsReady())
     {
         if (!LeeSin.loaidraw())
         {
             Vector2 heroPos = Drawing.WorldToScreen(LeeSin.LockedTarget.Position);
             Vector2 diempos = Drawing.WorldToScreen(LeeSin.getward1(LeeSin.LockedTarget));
             Drawing.DrawLine(heroPos[0], heroPos[1], diempos[0], diempos[1], 1, System.Drawing.Color.White);
         }
         else
         {
             Vector2 heroPos = Drawing.WorldToScreen(LeeSin.LockedTarget.Position);
             Vector2 diempos = Drawing.WorldToScreen(LeeSin.getward3(LeeSin.LockedTarget));
             Drawing.DrawLine(heroPos[0], heroPos[1], diempos[0], diempos[1], 1, System.Drawing.Color.White);
         }
     }
 }