benilla-re systems structs docs

ToggleTradeSkill

function · ui · orchestration

Address
0x4fc910 · 150 bytes, up to 0x4fc9a5
Signature
void __fastcall (uint32_t skillLine)
Meaning
Closes the window of the open skill line, or opens one for another and raises TRADE_SKILL_SHOW
Confidence
verified, proof one
Finding
tradeskill/recipes#open-close-and-selection

Finding: Open, close and selection in tradeskill: recipes

0x4fc910 opens a window for a skill line. It cancels the pending requests first. The line that is already open closes the window with TRADE_SKILL_CLOSE. A line with a SkillLine row is stored; when it differs from the last built line, the three masks, the slot bits and the selection reset. The build runs with flag 1 and TRADE_SKILL_SHOW follows when the full count is above 0. 0x4fc870 closes: it stores 0 in the line, clears the repeat latch and raises TRADE_SKILL_CLOSE. Selecting a row (0x4fc9b0) stores its spell id, or 0 for a header row or an index out of range; 0x4fc9e0 returns the index of the selected spell among all rows, or -1.

The derivation is in the doc.

Callers 1

Callees 3

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