benilla-re systems structs docs

s_drawLayerNames

global · ui

Address
0x811a80 · 40 bytes, up to 0x811aa7
Type
uint32_t[10]
Meaning
Holds five pairs of a draw layer index and its name, BACKGROUND 0 to HIGHLIGHT 4
Confidence
verified, proof two
Finding
ui/draworder#regions-within-a-frame

Finding: Regions within a frame in ui: draw order

A frame keeps a list of regions for each draw layer. A region is linked at the head when it is registered and drawn from the tail, so regions of one layer come out in the order of their last registration, oldest first, not the order of declaration. Hiding and showing a texture or font string, or giving it a new draw layer, unregisters and registers it, so it moves to the end of its layer and draws last. There is no finer sort. A frame's layers are enabled by five switches, set for layers 0 to 3 by the constructor and clear for HIGHLIGHT; a region on a disabled layer is not drawn.

The derivation is in the doc.