-
Member
Change size of player labels
Sorry if this is a noob question but could someone please explain how I can change the size of player labels that are displayed when in parties.
Thanks in advance for the help
Last edited by nickd3; 04-22-2017 at 01:25 AM.
-
Contributor
Hi,
the Font is defined in \plugins\Default\Players\OtherPlayersPlugin.cs
you have to change the font.
PHP Code:
Hud.RunOnPlugin<OtherPlayersPlugin>( plugin => {
//playername map text
((plugin.DecoratorByClass[HeroClass.Barbarian]).Decorators[0] as MapLabelDecorator).LabelFont = Hud.Render.CreateFont(string fontFamily, float size, int a, int r, int g, int b, bool bold, bool italic, bool standardShadow);
//playername labels text
((plugin.DecoratorByClass[HeroClass.Barbarian]).Decorators[1] as GroundLabelDecorator).TextFont = Hud.Render.CreateFont(string fontFamily, float size, int a, int r, int g, int b, bool bold, bool italic, bool standardShadow);
});
greetz gjuz
-
Post Thanks / Like - 1 Thanks
AlexisAlexis (1 members gave Thanks to gjuz for this useful post)
-
Member
Hi thanks for the reply
Do I actually change the contents of OtherPlayerPlugin.cs or does this code snippet go some where else?
I can see the font defined in OtherPlayerPlugin.cs, but the syntax doesnt quite match what you have posted.