Skip to content

Sign override struct

skzk edited this page Aug 13, 2023 · 8 revisions

Structure

Field(s) Description
u32 id The ID of the sign item being changed, as defined by its sign_board_template.
token area_name The name of the sign area that is being changed (e.g. ml7), as defined by its sign_template_board_binding.
u32 attribute_count
array_struct attributes

Overridden attributes of this sign item.

For each attribute:

Field(s) Description
u16 type

Data type.
    1: sbyte
    2: int32
    3: uint32
    4: float
    5: string
    6: uint64

u32 index Index of the overridden attribute in the sign item's sign_template_* definition.
[?] [?]value The new value of the attribute, with the type specified above.

Sign text can be formatted with a subset of HTML tags.

The following tags are currently found in the defs, though other supported tags may exist:

<br> - For line breaks.

<font> - Does nothing on its own, but allows for scaling the text with xscale and yscale attributes.

<sub> and <sup> - Subscript and superscript.
This tag has the optional attribute scale for setting the relative scale of the text, where 1 means no change, values less than 1 are smaller, and values greater than 1 are bigger than regular text.

Clone this wiki locally