Button::RegisterForClicks
function · ui · primitive
- Address
0x782490· 545 bytes, up to0x7826b0- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the Button method RegisterForClicks, its pair in the table 0x879d00
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/button#registerforclicks-and-click
Finding: RegisterForClicks and Click in ui: Button and CheckButton
RegisterForClicks replaces the mask with the union of its arguments: LeftButtonDown 0x1,
MiddleButtonDown 0x2, RightButtonDown 0x4, Button4Down 0x8, Button5Down 0x10, and the Up
names the same bits shifted left by 8, ignoring case. An unknown name adds nothing, and no
argument registers nothing. Click(name) runs slot 0x94 for LeftButton, MiddleButton or
RightButton, ignoring case; no argument or a value neither a string nor a number means
LeftButton, and any other string 0, which the click names UNKNOWN. A number counts as a
string, so Click(1) compares "1" and runs as UNKNOWN. It does not test the state itself.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 9
- SStrCmpI storm
- lua_settop lua
- lua_type lua
- lua_isstring lua
- lua_tostring lua
- lua_touserdata lua
- lua_rawgeti lua
- luaL_error lua
- CSimpleButton::RegisterForClicks ui
Calls and jumps by a bare address, from tables/calls.tsv.