benilla-re systems structs docs

CSimpleStatusBar::SetBarTexture

function · ui · orchestration

Address
0x783140 · 174 bytes, up to 0x7831ed
Signature
uint32_t __thiscall (CSimpleStatusBar *this, const char *path, uint32_t layer)
Meaning
Loads the path into the bar texture, creating and installing one, answering 0 when the file fails
Confidence
verified, proof one
Finding
ui/slider#a-status-bars-texture-and-teardown

Finding: A status bar's texture and teardown in ui: Slider and StatusBar

0x783140(path, layer) sets the bar texture from a path: with a texture already at +0x324 it loads the path into it (0x770200) and answers 1; otherwise it creates one in layer 2, loads the path, pins it to every point of the bar and installs it (0x7831f0), or deletes it, answering 0, when the file fails. 0x783110 is the bar's RemoveRegion: it clears +0x324 when it is the removed texture and then removes the region. 0x783250(orientation) stores the orientation +0x328 and sets bit 0 of +0x314. 0x782dd0(colour) passes a colour to the bar texture's vertex colour when there is one. The destructor body 0x782ec0 clears the bar texture, releases the script slot +0x32c and runs the frame destructor.

The derivation is in the doc.

Callers 2

Callees 5

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