PHP Code:
Hud.GetPlugin<Styckz.AttributeLabels>().StyckzLabelList.LabelDecorators.Clear();
Hud.RunOnPlugin<Styckz.AttributeLabels>(plugin =>
{
plugin.StyckzLabelList.LabelDecorators.Add(new StyckzTopLabelDecorator(Hud)
{
TextFont = Hud.Render.CreateFont("tahoma", 6.5f, 255, 255, 255, 255, true, false, 100, 0, 0, 0, true),
BackgroundBrush = Hud.Render.CreateBrush(128, 82, 141, 161, 0),
//BorderBrush = Hud.Render.CreateBrush(96, 0, 0, 0, -2),
BackgroundTexture1 = Hud.Texture.ButtonTextureGray,
BackgroundTexture2 = Hud.Texture.BackgroundTextureBlue,
BackgroundTextureOpacity1 = 1.0f,
BackgroundTextureOpacity2 = 0.75f,
TextFunc = () => "Text",
HintFunc = () => "Time to Next Level",
});
plugin.StyckzLabelList.LabelDecorators.Add(new StyckzTopLabelDecorator(Hud)
{
TextFont = Hud.Render.CreateFont("tahoma", 6.5f, 255, 255, 255, 255, true, false, 100, 0, 0, 0, true),
BackgroundBrush = Hud.Render.CreateBrush(128, 150, 122, 63, 0),
//BorderBrush = Hud.Render.CreateBrush(96, 0, 0, 0, -2),
BackgroundTexture1 = Hud.Texture.ButtonTextureGray,
BackgroundTexture2 = Hud.Texture.BackgroundTextureOrange,
BackgroundTextureOpacity1 = 1.0f,
BackgroundTextureOpacity2 = 0.75f,
TextFunc = () => ValueToString(Hud.Game.CurrentHeroToday.DropLegendary, ValueFormat.NormalNumberNoDecimal),
HintFunc = () => "Legendary Count",
});
});