psychopyro212

Untitled

Feb 16th, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.03 KB | None | 0 0
  1. namespace Turbo.Plugins.PsychosPlugins
  2. {
  3.     using Turbo.Plugins.Default;
  4.     using Turbo.Plugins;
  5. public class CursorMarkerPlugin : BasePlugin
  6.     {
  7.         public WorldDecoratorCollection CursorDecorator { get; set; }
  8.         public IScreenCoordinate CursorLocation {get;set;}
  9.         public CursorMarkerPlugin()
  10.         {
  11.             Enabled = true;
  12.         }
  13.  
  14.         public override void Load(IController hud)
  15.         {
  16.             base.Load(hud);
  17.  
  18.             CursorDecorator = new WorldDecoratorCollection(
  19.                 new GroundCircleDecorator(Hud)
  20.                 {
  21.                     Brush = Hud.Render.CreateBrush(255, 255, 255, 255, 5),
  22.                     Radius = 2f
  23.                 }
  24.                 );
  25.         }
  26.  
  27.         public override void PaintWorld(WorldLayer layer)
  28.         {
  29.            CursorLocation = Hud.Window.CreateScreenCoordinate(Hud.Window.CursorX,Hud.Window.CursorY);
  30.            CursorDecorator.Paint(layer,null,CursorLocation.ToWorldCoordinate(),string.Empty);
  31.  
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment