Code:
Hud.RunOnPlugin<AttributeLabelListPlugin>(plugin =>
{
plugin.LabelList.LabelDecorators.RemoveAt(0);
plugin.LabelList.LabelDecorators[0].TextFunc = () => ValueToString(Hud.Game.Me.Defense.EhpCur, ValueFormat.ShortNumber);
plugin.LabelList.LabelDecorators[0].HintFunc = () => "EHP current";
plugin.LabelList.LabelDecorators[0].BackgroundTextureOpacity2 = 0.7f;
plugin.LabelList.LabelDecorators[0].ExpandUpLabels.Insert(0, new TopLabelDecorator(Hud)
{
TextFont = Hud.Render.CreateFont("tahoma", 7, 180, 255, 255, 255, true, false, true),
ExpandedHintFont = Hud.Render.CreateFont("tahoma", 7, 255, 200, 200, 200, false, false, true),
ExpandedHintWidthMultiplier = 3,
BackgroundTexture1 = Hud.Texture.ButtonTextureGray,
BackgroundTexture2 = Hud.Texture.BackgroundTextureGreen,
BackgroundTextureOpacity2 = 0.7f,
TextFunc = () => ValueToString(Hud.Game.Me.Defense.EhpMax, ValueFormat.ShortNumber),
HintFunc = () => "EHP max",
});
plugin.LabelList.LabelDecorators.Insert(8, new TopLabelDecorator(Hud)
{
TextFont = Hud.Render.CreateFont("tahoma", 7, 120, 255, 200, 200, false, false, true),
BackgroundTexture1 = Hud.Texture.ButtonTextureBlue,
BackgroundTexture2 = Hud.Texture.BackgroundTextureGreen,
BackgroundTextureOpacity2 = 0.75f,
TextFunc = () => (Hud.Game.Me.Stats.MoveSpeed).ToString("F0") + "%",
HintFunc = () => "movement speed",
});
});