benilla-re systems structs docs

s_craftSelection

global · ui

Address
0xbdcfbc · 4 bytes, up to 0xbdcfbf
Type
uint32_t
Meaning
Holds the spell id selected in the craft window, or 0
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.