benilla-re systems structs docs

Script::GetNumCrafts

function · ui · orchestration

Address
0x4f6e70 · 23 bytes, up to 0x4f6e86
Signature
int __fastcall (lua_State *L)
Meaning
Returns the number of visible craft rows
Confidence
verified, proof one
Name from
the community database (idb)
Finding
tradeskill/craft#open-close-and-selection

Finding: Open, close and selection in tradeskill: craft

0x4f6000 toggles the window for a craft type: the type that is open closes it, and any other type is stored, the selection and the collapse mask reset, the list is built (0x4f60c0) and CRAFT_SHOW is raised. CloseCraft (0x4f6c00) sets the type to 0 and raises CRAFT_CLOSE through 0x4f5fe0. SelectCraft (0x4f70f0) stores the spell id of the row, or 0 for a header or an index out of range, and raises nothing. GetCraftSelectionIndex (0x4f7130) returns the position of the selected spell plus 1, so 0 for none. GetNumCrafts (0x4f6e70) returns the displayed count.

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.