Talos docs

HudLayout

Since 0.6
Plain text

Fields

FieldTypeRequiredDefaultAllowed valuesDescription
anchorHudAnchoryestop-left, top-center, top-right, center-left, center, center-right, bottom-left, bottom-center, bottom-right
offsetVec2no[0,0]Pixels from the anchor point, x right and y down whichever anchor this is. A right- or bottom-anchored element therefore moves inward with NEGATIVE numbers. Default [0, 0].
sizenumberno18Font size in pixels, 1..512. Default 18, the engine's label size.
colorstringnowhiteHex colour, the spelling meta.environment.skyColor uses: "#5C7A99" or "#5A9". Default white.
formatHudFormatnonumbernumber, timeHow a number reads. Default "number". Ignored by a text value.
decimalsnumbernoFractional digits, a whole number 0..6. Absent leaves a "number" at its shortest exact spelling and a "time" at whole seconds.
prefixstringnoLiteral text before the value.
suffixstringnoLiteral text after the value, e.g. " MPH".
ordernumberno0Draw order, low first; ties break on the field name. Default 0. This is the only thing that decides which of two overlapping elements wins.

See also