Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Turbo.Plugins.Default;
- namespace Turbo.Plugins.Psycho
- {
- public class CursorMarkerCustomizePlugin : BasePlugin , ICustomizer
- {
- public WorldDecoratorCollection CursorDecorator {get; set;}
- public CursorMarkerCustomizePlugin()
- {
- Enabled = true;
- }
- public GroundCircleDecorator CreateDecorators(int a = 255, int r = 255, int g = 255, int b = 255, int t = 5, float radius = 5f)
- {
- return new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(a, r, g, b, t),
- Radius = radius
- };
- }
- public override void Load(IController hud)
- {
- base.Load(hud);
- }
- public void Customize()
- {
- Hud.RunOnPlugin<Psycho.CursorMarkerPlugin>(plugin =>
- {
- plugin.CursorDecorator.Add(CreateDecorators());
- });
- }
- }
- }
Add Comment
Please, Sign In to add comment