Script::SetTrainerServiceTypeFilter
function · ui · primitive
- Address
0x4da260· 295 bytes, up to0x4da386- Signature
int __fastcall (lua_State *L)- Meaning
- Sets, clears or isolates a state bit of the trainer filter, or all
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/trainerlist#filters
Finding: Filters in ui: trainer states, filters and order
The state filter 0xb73a1c holds a bit per state (bit n for state n). Every list packet sets it to 3, available and
unavailable, or to 5, available and used, for a type 1 trainer; so a red row shows by default and the known rows are hidden.
SetTrainerServiceTypeFilter("type", on [, exclusive]) names available (bit 0), unavailable (1) or used (2), or all,
which sets 7 and needs no second argument. A zero clears the bit, a nonzero third argument makes it the only bit, otherwise it
is added. The skill-line filter and the expanded mask are reset to all ones by every packet. Each change runs the
finalizer and signals TRAINER_UPDATE (0x136).
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 9
- __ftol crt
- SetTrainerStateFilter ui
- TrainerFilterBit ui
- SStrCmpI storm
- lua_isnumber lua
- lua_isstring lua
- lua_tonumber lua
- lua_tostring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.