benilla-re systems structs docs

GetCraftSelectionRow

function · ui · primitive

Address
0x4f6080 · 54 bytes, up to 0x4f60b5
Meaning
Returns the row of the selected craft spell, or -1
Confidence
verified, proof one
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 1

Callees 0

None by a direct call or jump.

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