Skip to main content

Module ui

Module ui 

Source
Expand description

UI:: resources: dialogs, element descriptions, fonts, sprite sheets and string tables.

Every class level of Serialize is its own block and derived classes serialize their base first. Field meanings come from ElementDescription defaults, Element::Element and the per-class ComputeSize/ComputeLayout code; names marked “unknown” have not been traced to behaviour yet.

Modules§

flags
The bits of an element’s flags.

Structs§

Button
A button’s description.
Cursor
A mouse pointer: the sprite sheet whose image is the pointer, and its hot spot.
Dialog
Original: UI::Dialog, Runtime 0x180115950.
DialogBinding
A controller attached to a dialog’s element.
DocumentText
Rich text configuration (DocumentTextDescription::Serialize).
Element
An element description: its class, the fields every element has, and its class’s fields.
ElementBase
Shared by every element.
Font
UI::Font, block version 2.
Label
A label’s description: text with an optional icon.
LayoutItem
A child of a layout element, with its anchors.
Sprite
A sprite of a sprite sheet.
SpriteSheet
Original: UI::SpriteSheet, Runtime 0x18011ffc0.
TableCell
A cell of a table element.
Text
A text element’s description.

Enums§

ElementKind
What an element description is, with the fields of its class.

Constants§

ELEMENT_CLASSES
The class names of every element description.

Functions§

cursor
Read a Cursor from the bytes of its resource.
dialog
Read a Dialog from the bytes of its resource.
element
Decode a resource if it is any element description.
font
Read a Font from the bytes of its resource.
is_element
Whether a type id is one of the element classes.
sprite_sheet
Read a SpriteSheet from the bytes of its resource.
string_table
Key -> display string.

Type Aliases§

Alignment
Alignment within the space a parent offers: 0..8 = rows top/middle/bottom x columns left/centre/right.