Script::SetBinding
function · ui · orchestration
- Address
0x4b8000· 149 bytes, up to0x4b8094- Signature
int __fastcall (lua_State *L)- Meaning
- Binds a key to a command in the live set; 1 on success, nil on refusal
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/keybindings#setting-a-binding
Finding: Setting a binding in ui: key bindings
SetBinding(key[, command]) raises unless argument 1 is a string or number. It calls 0x4b7490(3, key, command)
on the live set, a missing or non-string command meaning unbind, and returns the number 1 and signals
UPDATE_BINDINGS (386) on success, nil and no event on a refusal. The engine first replaces the whole-string
aliases LEFTBRACKET, RIGHTBRACKET, SLASH, BACKSLASH, SEMICOLON, APOSTROPHE, COMMA, PERIOD,
TILDE, PLUS and MINUS (compared without case) by [, ], /, \, ;, ', ,, ., a backquote, =
and -. Then 0x4b7890 is the only thing that can refuse. The command name is never checked.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- SetKeyBinding ui
- lua_isstring lua
- lua_tostring lua
- lua_pushnil lua
- lua_pushnumber lua
- luaL_error lua
- FrameScript_SignalEvent ui
Calls and jumps by a bare address, from tables/calls.tsv.