Advertisement
Guest User

OtherPlayersNameColorByClassPlugin

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