benilla-re systems structs docs

CSimpleButton::SetState

function · ui · orchestration

Address
0x779790 · 125 bytes, up to 0x77980c
Meaning
Stores the lock and, for a new state, swaps to that state's texture when it has one and refreshes the label
Confidence
verified, proof one
Finding
ui/button#setting-the-state

Finding: Setting the state in ui: Button and CheckButton

Setting the state (slot 0x9c, 0x779790(state, lock)) stores the lock first, then does nothing more when the state is unchanged. Otherwise, when the new state has a texture, it hides the shown texture and shows the new state's; when the new state has none, the old texture stays shown. It refreshes the label for the new state, then stores the state. So a button with no DisabledTexture keeps drawing its normal or pushed texture while disabled, and one with no PushedTexture looks unchanged while pressed.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 3

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