psychopyro212

Untitled

Feb 21st, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.98 KB | None | 0 0
  1. using Turbo.Plugins.Default;
  2. namespace Turbo.Plugins.Psycho
  3. {
  4.     public class CursorMarkerCustomizePlugin : BasePlugin , ICustomizer
  5.     {
  6.         public WorldDecoratorCollection CursorDecorator {get; set;}
  7.  
  8.         public CursorMarkerCustomizePlugin()
  9.         {
  10.             Enabled = true;
  11.         }
  12.  
  13.         public GroundCircleDecorator CreateDecorators(int a = 255, int r = 255, int g = 255, int b = 255, int t = 5, float radius = 5f)
  14.         {
  15.             return new GroundCircleDecorator(Hud)
  16.                 {
  17.                     Brush = Hud.Render.CreateBrush(a, r, g, b, t),
  18.                     Radius = radius
  19.                 };
  20.         }
  21.  
  22.         public override void Load(IController hud)
  23.         {
  24.             base.Load(hud);
  25.         }
  26.  
  27.         public void Customize()
  28.         {
  29.             Hud.RunOnPlugin<Psycho.CursorMarkerPlugin>(plugin =>
  30.             {
  31.                 plugin.CursorDecorator.Add(CreateDecorators());
  32.             });
  33.         }
  34.     }
  35. }
Add Comment
Please, Sign In to add comment