Class UnityHudLabelRepresentation
A standalone, translatable piece of text that reads no value — a heading over the ammo block, a "WAVE" tag beside a counter.
Implements
Inherited Members
Namespace: Serenity.GameUi.Infrastructure.Representations
Assembly: Serenity.UnityGameUi.Infrastructure.dll
Syntax
public sealed class UnityHudLabelRepresentation : UnityHudRepresentation, IHudRepresentation
Remarks
This representation draws nothing of its own, on purpose: the element's caption already is a translatable text with the theme's lettering, so the label kind simply lets an element exist as caption alone. A text field of its own here would be a second copy of that machinery — same rendering, same translation flag — that could drift from the first.
The text goes in the element's Caption, and Translate caption makes it a localization key.
Constructors
UnityHudLabelRepresentation()
Declaration
public UnityHudLabelRepresentation()
Properties
Kind
Declaration
public override HudRepresentationKind Kind { get; }
Property Value
| Type | Description |
|---|---|
| HudRepresentationKind |
Overrides
Methods
CreateRenderer()
Creates the object that builds and drives this representation's visuals.
Declaration
public override IHudRepresentationRenderer CreateRenderer()
Returns
| Type | Description |
|---|---|
| IHudRepresentationRenderer | A renderer bound to this configuration. |