FinalizeTrainerList
function · ui · primitive
- Address
0x4d8410· 431 bytes, up to0x4d85be- Signature
void __cdecl ()- Meaning
- Marks each trainer row visible or hidden by the filters and sorts the whole array
- Confidence
- verified, proof one
- Finding
- ui/trainerlist#hiding-rows
- Test
ui::listorder_trainer_filter_hides_header_e2e,ui::listorder_trainer_mounts_e2e,ui::listorder_trainer_tradeskill_e2e,ui::listorder_trainer_tradeskill_filter_e2e
Finding: Hiding rows in ui: trainer states, filters and order
The finalizer marks every row visible (+0x34 is 1) and then hides some, each hide lowering the visible count. A service
row is hidden when its state bit is clear in the state filter. Any row of a group is hidden when the group has no
visible content, which a header counts as the group's per-state member counts seen through the live state mask and the
skill-line filter. A service row, but not a header, is also hidden when its group is collapsed. So a filter that empties a
group hides its header, and collapsing keeps it. The rows stay in the array behind the visible ones.
The derivation is in the doc.
Callers 5
- BuildTrainerList ui
- ReevaluateTrainerStates ui
- SetTrainerStateFilter ui
- SetTrainerSkillLineFilter ui
- SetTrainerExpandedMask ui
Callees 1
- _qsort crt
Calls and jumps by a bare address, from tables/calls.tsv.