Advertisement
Litespeed0

InnerSanctuaryCustomizePlugin.cs

Oct 1st, 2017
527
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. namespace Turbo.Plugins.Ls
  2. {
  3. using Turbo.Plugins.Default;
  4.  
  5. public class InnerSanctuaryCustomizePlugin : BasePlugin, ICustomizer
  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, 255, 0, 127, 9f),
  22. Radius = 13.0f,
  23. },
  24. new GroundCircleDecorator(Hud)
  25. {
  26. Brush = Hud.Render.CreateBrush(245, 255, 255, 255, 2),
  27. Radius = 13.0f,
  28. },
  29. new GroundLabelDecorator(Hud)
  30. {
  31. CountDownFrom = 6,
  32. TextFont = Hud.Render.CreateFont("tahoma", 14, 255, 0, 255, 0, true, false, 128, 0, 0, 0, true),
  33. },
  34. new GroundTimerDecorator(Hud)
  35. {
  36. CountDownFrom = 6,
  37. BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
  38. BackgroundBrushFill = Hud.Render.CreateBrush(245, 255, 0, 0, 0),
  39. Radius = 35,
  40. }
  41. );
  42.  
  43. }
  44. public void Customize()
  45. {
  46. Hud.RunOnPlugin<PlayerSkillPlugin>(plugin =>
  47. {
  48. plugin.InnerSanctuaryDefaultDecorator = InnerSanctuaryDecorator;
  49. plugin.InnerSanctuarySafeHavenDecorator = InnerSanctuaryDecorator;
  50. plugin.InnerSanctuarySanctifiedGroundDecorator = InnerSanctuaryDecorator;
  51. plugin.InnerSanctuaryTempleOfProtecteionDecorator = InnerSanctuaryDecorator;
  52. });
  53. }
  54. }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement