Script::GetActionBarToggles
function · ui · orchestration
- Address
0x4e7660· 116 bytes, up to0x4e76d3- Signature
int __fastcall (lua_State *L)- Meaning
- Returns four 1-or-nil values from the active player's bar toggle byte
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/actionuse#bar-toggles
Finding: Bar toggles in ui: placing, picking up and using actions
SetActionBarToggles (0x4e76e0) reads Lua arguments 1 to 4 with 0x6f1c10 (default false) into bits
0 to 3 of one byte and sends CMSG_SET_ACTIONBAR_TOGGLES: u32 703, u8 byte. A fifth argument is
never read. It changes no local state and adds no check of its own. GetActionBarToggles (0x4e7660)
returns four values, 1 or nil for bits 0 to 3 of the active player's PLAYER_FIELD_BYTES byte 2
([player+0xe68]+0x102a), and four nils without a player, so a missing player and a zero byte look
alike. Nothing in the client writes that byte; only the server's field update does, and no event
follows.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- lua_checkstack lua
- lua_pushnil lua
- lua_pushnumber lua
Calls and jumps by a bare address, from tables/calls.tsv.