psychopyro212

Untitled

Feb 11th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.88 KB | None | 0 0
  1. namespace Turbo.Plugins.PsychosPlugins
  2. {
  3.     using Turbo.Plugins.Default;
  4.  
  5.     public class DebugMySpecialArea : BasePlugin
  6.     {
  7.         public WorldDecoratorCollection DebugDecorator {get; set;}
  8.  
  9.         public DebugMySpecialArea()
  10.         {
  11.             Enabled = true;
  12.         }
  13.  
  14.         public override void Load(IController hud)
  15.         {
  16.             base.Load(hud);
  17.  
  18.             DebugDecorator = new WorldDecoratorCollection(new GroundLabelDecorator(hud)
  19.             {
  20.                 TextFont = Hud.Render.CreateFont("tahoma", 20, 250, 250, 0, 0, true, false, false)
  21.             });
  22.         }
  23.  
  24.     public override void PaintWorld(WorldLayer layer)
  25.         {
  26.             var Offset = -30.0f;          
  27.             DebugDecorator.Paint(layer, null, Hud.Game.Me.FloorCoordinate.Offset(0,0,Offset), Hud.Game.SpecialArea.ToString());        
  28.         }    
  29.     }
  30. }
Add Comment
Please, Sign In to add comment