Advertisement
Guest User

Untitled

a guest
Aug 1st, 2017
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.38 KB | None | 0 0
  1. //################################################################################
  2. //# ..:: created with TCT Version 5.1 for THUD v7.2 (17.3.26.1) ::.. by RealGsus #
  3. //################################################################################
  4.  
  5. using Turbo.Plugins.Default;
  6.  
  7. namespace Turbo.Plugins.BM
  8. {
  9.  
  10. public class OtherPlayersNameColorByClassPlugin : BasePlugin, ICustomizer
  11. {
  12.  
  13. public OtherPlayersNameColorByClassPlugin()
  14. {
  15. Enabled = true;
  16. }
  17.  
  18. public override void Load(IController hud)
  19. {
  20. base.Load(hud);
  21. }
  22.  
  23.  
  24. public void Customize()
  25. {
  26. Hud.RunOnPlugin<OtherPlayersPlugin>(plugin =>
  27. {
  28. plugin.DecoratorByClass[HeroClass.Barbarian].GetDecorators<MapLabelDecorator>().ForEach(d =>
  29. {
  30. d.LabelFont = Hud.Render.CreateFont("tahoma", 7f, 255, 247, 150, 70, false, false, 128, 0, 0, 0, true);
  31. d.Up = true;
  32. });
  33. plugin.DecoratorByClass[HeroClass.Barbarian].GetDecorators<GroundLabelDecorator>().ForEach(d =>
  34. {
  35. d.BorderBrush = Hud.Render.CreateBrush(255, 247, 150, 70, 1);
  36. d.TextFont = Hud.Render.CreateFont("tahoma", 9f, 255, 247, 150, 70, false, false, 128, 0, 0, 0, true);
  37. });
  38.  
  39. plugin.DecoratorByClass[HeroClass.Crusader].GetDecorators<MapLabelDecorator>().ForEach(d =>
  40. {
  41. d.LabelFont = Hud.Render.CreateFont("tahoma", 7f, 255, 255, 255, 255, false, false, 128, 0, 0, 0, true);
  42. d.Up = true;
  43. });
  44. plugin.DecoratorByClass[HeroClass.Crusader].GetDecorators<GroundLabelDecorator>().ForEach(d =>
  45. {
  46. d.BorderBrush = Hud.Render.CreateBrush(255, 255, 255, 255, 1);
  47. d.TextFont = Hud.Render.CreateFont("tahoma", 9f, 255, 255, 255, 255, false, false, 128, 0, 0, 0, true);
  48. });
  49.  
  50. plugin.DecoratorByClass[HeroClass.DemonHunter].GetDecorators<MapLabelDecorator>().ForEach(d =>
  51. {
  52. d.LabelFont = Hud.Render.CreateFont("tahoma", 7f, 255, 255, 0, 0, false, false, 128, 0, 0, 0, true);
  53. d.Up = true;
  54. });
  55. plugin.DecoratorByClass[HeroClass.DemonHunter].GetDecorators<GroundLabelDecorator>().ForEach(d =>
  56. {
  57. d.BorderBrush = Hud.Render.CreateBrush(255, 255, 0, 0, 1);
  58. d.TextFont = Hud.Render.CreateFont("tahoma", 9f, 255, 255, 0, 0, false, false, 128, 0, 0, 0, true);
  59. });
  60.  
  61. plugin.DecoratorByClass[HeroClass.Monk].GetDecorators<MapLabelDecorator>().ForEach(d =>
  62. {
  63. d.LabelFont = Hud.Render.CreateFont("tahoma", 7f, 255, 255, 255, 0, true, false, 128, 0, 0, 0, true);
  64. d.Up = true;
  65. });
  66. plugin.DecoratorByClass[HeroClass.Monk].GetDecorators<GroundLabelDecorator>().ForEach(d =>
  67. {
  68. d.BorderBrush = Hud.Render.CreateBrush(255, 255, 255, 0, 1);
  69. d.TextFont = Hud.Render.CreateFont("tahoma", 9f, 255, 255, 255, 0, true, false, 128, 0, 0, 0, true);
  70. });
  71.  
  72. plugin.DecoratorByClass[HeroClass.Necromancer].GetDecorators<MapLabelDecorator>().ForEach(d =>
  73. {
  74. d.LabelFont = Hud.Render.CreateFont("tahoma", 7f, 255, 33, 106, 99, false, false, 128, 0, 0, 0, true);
  75. d.Up = true;
  76. });
  77. plugin.DecoratorByClass[HeroClass.Necromancer].GetDecorators<GroundLabelDecorator>().ForEach(d =>
  78. {
  79. d.BorderBrush = Hud.Render.CreateBrush(255, 33, 106, 99, 1);
  80. d.TextFont = Hud.Render.CreateFont("tahoma", 9f, 255, 33, 106, 99, false, false, 128, 0, 0, 0, true);
  81. });
  82.  
  83. plugin.DecoratorByClass[HeroClass.WitchDoctor].GetDecorators<MapLabelDecorator>().ForEach(d =>
  84. {
  85. d.LabelFont = Hud.Render.CreateFont("tahoma", 7f, 255, 0, 176, 80, true, false, 128, 0, 0, 0, true);
  86. d.Up = true;
  87. });
  88. plugin.DecoratorByClass[HeroClass.WitchDoctor].GetDecorators<GroundLabelDecorator>().ForEach(d =>
  89. {
  90. d.BorderBrush = Hud.Render.CreateBrush(255, 0, 176, 80, 1);
  91. d.TextFont = Hud.Render.CreateFont("tahoma", 9f, 255, 0, 176, 80, true, false, 128, 0, 0, 0, true);
  92. });
  93.  
  94. plugin.DecoratorByClass[HeroClass.Wizard].GetDecorators<MapLabelDecorator>().ForEach(d =>
  95. {
  96. d.LabelFont = Hud.Render.CreateFont("tahoma", 7f, 255, 153, 0, 153, true, false, 128, 0, 0, 0, true);
  97. d.Up = true;
  98. });
  99. plugin.DecoratorByClass[HeroClass.Wizard].GetDecorators<GroundLabelDecorator>().ForEach(d =>
  100. {
  101. d.BorderBrush = Hud.Render.CreateBrush(255, 153, 0, 153, 1);
  102. d.TextFont = Hud.Render.CreateFont("tahoma", 9f, 255, 153, 0, 153, true, false, 128, 0, 0, 0, true);
  103. });
  104.  
  105. });
  106. }
  107.  
  108. }
  109.  
  110. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement