benilla-re systems structs docs

IsTrainerHeaderCollapsed

function · ui · primitive

Address
0x4d8c30 · 88 bytes, up to 0x4d8c87
Signature
uint32_t __fastcall (uint32_t index)
Meaning
Returns 1 for a header row whose group's expanded bit is clear, else 0
Confidence
verified, proof one
Finding
ui/trainer#index-law
Test
ui::trainer_header_collapsed

Finding: Index law in ui: the trainer window

Every trainer getter accepts any index up to the total length, not the visible count. GetTrainerServiceInfo(i) returns the name, the rank text, the state name and whether the row is expanded; past the total it returns nil, nil, nil, 1. The other getters (GetTrainerServiceIcon, ...Cost, ...LevelReq, ...SkillReq, ...NumAbilityReq, ...AbilityReq, ...StepReq, ...Description, IsTrainerServiceSkillStep, ...LearnSpell, ...TradeSkill, ...StepIncrease) return nil or 0 past it. BuyTrainerService(index) sends the purchase of one row (opcode 0x1b2: the trainer GUID and the row's spell id) when the row exists and its state is 0; any other state is refused silently. An index of 0 or less buys every visible row.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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