Class NameplateSlots
Per-slot presentation defaults.
public static class NameplateSlots
- Inheritance
-
NameplateSlots
- Inherited Members
Remarks
Kept beside the enum rather than in the renderer so a developer reading the slot list can see how each row is drawn, and so both the runtime and the tests answer the question from the same table.
Methods
DefaultScale(NameplateSlot)
The font scale a slot is drawn at, relative to the plate's own font size.
public static float DefaultScale(NameplateSlot slot)
Parameters
slotNameplateSlotThe slot being drawn.
Returns
- float
A multiplier on the plate's resolved font size.
Remarks
The name carries the plate, so it is drawn at full size and everything under it is drawn smaller — that difference is what makes the stack read as a name with detail beneath it rather than as four lines of equal weight.
UsesNameColor(NameplateSlot)
Whether a slot takes the plate's name colour rather than its secondary colour.
public static bool UsesNameColor(NameplateSlot slot)
Parameters
slotNameplateSlotThe slot being drawn.
Returns
- bool
True when the slot is drawn in the name colour.