psychopyro212

Untitled

Feb 21st, 2017
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.92 KB | None | 0 0
  1. using Turbo.Plugins.Default;
  2. namespace Turbo.Plugins.Psycho
  3. {
  4.     public class CursorMarkerPlugin : BasePlugin , IInGameWorldPainter
  5.     {
  6.         public WorldDecoratorCollection CursorDecorator { get; set; }
  7.         public IScreenCoordinate CursorLocation { get { return Hud.Window.CreateScreenCoordinate(Hud.Window.CursorX,Hud.Window.CursorY); } }
  8.         public bool DisableInTown { get; set; }
  9.  
  10.         public CursorMarkerPlugin()
  11.         {
  12.             Enabled = true;
  13.             DisableInTown = false;
  14.         }
  15.  
  16.         public override void Load(IController hud)
  17.         {
  18.             base.Load(hud);
  19.  
  20.             CursorDecorator = new WorldDecoratorCollection();
  21.         }
  22.  
  23.         public void PaintWorld(WorldLayer layer)
  24.         {
  25.             if (Hud.Game.IsInTown && DisableInTown) return;
  26.             CursorDecorator.Paint(layer,null,CursorLocation.ToWorldCoordinate(),string.Empty);
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment