benilla-re systems structs docs

CSimpleFrame::AddRegionToLayer

function · ui · orchestration

Address
0x76a860 · 173 bytes, up to 0x76a90c
Meaning
Gives a region the frame's scale and links it at the head of a draw layer's list, marking the layer dirty
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.

Callers 1

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.