public RenderNameTag(Actor self, RenderNameTagInfo info) { font = Game.Renderer.Fonts[info.Font]; color = self.Owner.Color.RGB; if (self.Owner.PlayerName.Length > info.MaxLength) name = self.Owner.PlayerName.Substring(0, info.MaxLength); else name = self.Owner.PlayerName; }
public RenderNameTag(Actor self, RenderNameTagInfo info) { font = Game.Renderer.Fonts[info.Font]; color = self.Owner.Color.RGB; if (self.Owner.PlayerName.Length > info.MaxLength) { name = self.Owner.PlayerName.Substring(0, info.MaxLength); } else { name = self.Owner.PlayerName; } }