benilla-re systems structs docs

SetTrainerExpandedMask

function · ui · orchestration

Address
0x4d8cd0 · 21 bytes, up to 0x4d8ce4
Signature
void __fastcall (uint32_t mask)
Meaning
Stores the expanded mask, runs the finalizer and signals TRAINER_UPDATE
Confidence
verified, proof one
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 2

Callees 2

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