benilla-re systems structs docs

Script::CloseTradeSkill

function · ui · orchestration

Address
0x4fd7f0 · 8 bytes, up to 0x4fd7f7
Signature
int __fastcall (lua_State *L)
Meaning
Closes the profession window
Confidence
verified, proof one
Name from
the community database (idb)
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 0

None by a direct call or jump.

Callees 1

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