BuildCraftList
function · ui · primitive
- Address
0x4f60c0· 1381 bytes, up to0x4f6624- Signature
void __cdecl ()- Meaning
- Builds the craft window rows and headers from the craft list of the current type
- Confidence
- verified, proof one
- Finding
- ui/craft#craft-lists
Finding: Craft lists in ui: the craft window list
A learned spell enters craft list N when its attribute word has bit 0x20 clear and its cast-UI field (+0xc of the spell
record) is N above 0; the lists are four vectors in the player object at +0x1cd0, 16 bytes apiece. Learning one appends
it and rebuilds the window list. The window's craft type is the misc value of the first effect of the opener spell whose
first effect is 47; 1 is Beast Training, 2 Disguise and 3 Enscribe or Enchanting, while a misc value of 0 opens the
profession window.
The derivation is in the doc.
Callers 12
- OnPetSpells ui
- ToggleCraftWindow ui
- OnCraftItemRecord ui
- OnBackpackSlotChanged ui
- OnBagSlotChanged ui
- OnContainerSlotChanged ui
- CGItem_C::ApplyRecord objectlayer
- CGItem_C::Deactivate objectlayer
- OnItemStackCountChanged objectlayer
- CGPlayer_C::OnVisibleItemChanged objectlayer
- CGPlayer_C::LearnSpell objectlayer
- CGPlayer_C::UnlearnSpell objectlayer
Callees 15
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- SortCraftList ui
- GrowArrayBy4f7e90 ui
- SetArrayCapacity4f82a0 ui
- RoundUp4f8330 ui
- SetArrayCapacity4f8350 ui
- CGPlayer_C::GetTabSpells objectlayer
- CGPlayer_C::GetSkillTotal objectlayer
- CGUnit_C::KnowsSpell objectlayer
- CGUnit_C::FindSkillLineAbility objectlayer
- CGUnit_C::KnowsHigherRank objectlayer
- CountInventoryItemsByEntry objectlayer
- SMemAlloc storm
- FrameScript_SignalEvent ui
Calls and jumps by a bare address, from tables/calls.tsv.