psychopyro212

Untitled

Feb 12th, 2017
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.77 KB | None | 0 0
  1. namespace Turbo.Plugins.PsychosPlugins
  2. {
  3.     using Turbo.Plugins.Default;
  4.  
  5.        public class InnerSanctuaryCustomizePlugin : BasePlugin
  6.     {
  7.         public WorldDecoratorCollection InnerSanctuaryDecorator {get; set;}
  8.  
  9.         public InnerSanctuaryCustomizePlugin()
  10.         {
  11.             Enabled = true;
  12.  
  13.         }
  14.         public override void Load(IController hud)
  15.         {
  16.             base.Load(hud);
  17.  
  18.             InnerSanctuaryDecorator = new WorldDecoratorCollection(
  19.                 new GroundCircleDecorator(Hud)
  20.                 {
  21.                     Brush = Hud.Render.CreateBrush(245, 120, 0, 200, 4),
  22.                     Radius = 15,
  23.                 },
  24.                 new GroundLabelDecorator(Hud)
  25.                 {
  26.                     CountDownFrom = 6,
  27.                     TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 255, 150, true, false, 128, 0, 0, 0, true),
  28.                 },
  29.                 new GroundTimerDecorator(Hud)
  30.                 {
  31.                     CountDownFrom = 6,
  32.                     BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
  33.                     BackgroundBrushFill = Hud.Render.CreateBrush(245, 120, 0, 200, 0),
  34.                     Radius = 35,
  35.                 }
  36.             );
  37.  
  38.         }
  39.         public override void Customize()
  40.         {
  41.             Hud.RunOnPlugin<PlayerSkillPlugin>(plugin =>
  42.             {
  43.                 plugin.InnerSanctuaryDefaultDecorator = InnerSanctuaryDecorator;
  44.                 plugin.InnerSanctuarySafeHavenDecorator = InnerSanctuaryDecorator;
  45.                 plugin.InnerSanctuarySanctifiedGroundDecorator = InnerSanctuaryDecorator;
  46.                 plugin.InnerSanctuaryTempleOfProtecteionDecorator = InnerSanctuaryDecorator;
  47.             });
  48.         }
  49.     }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment