mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
DressUpModel:GetItemTransmogInfo(slot), GetItemTransmogInfoList() and SetItemTransmogInfo(info [, slot, ignoreChildItems]), the same contract as the ModelSceneActor's: appearanceID is the item ID, illusionID the enchant whose glow a weapon shows, 19 slots in the list. The pane keeps its own Outfit::Worn. SetModelInstance reads the unit's visible items into it after the original clones the unit. Then the engine's TryOnItem worker (0x00504540) fills it from its own arms: the armor slot of the component slot it set, the hand that TryOnAttach hangs (with the enchant only when a glow shows), and nothing for the lane that TryOnEvict detaches, because the worker leaves that lane's bytes in place. A read trims every slot the pane no longer shows, which also covers the engine's Undress (ClearModel 0x00504490). SetItemTransmogInfo is TryOn without ERR_NOT_EQUIPPABLE. The worker shows it only in its default arm (DisplayError 0x13), after the record is cached, so a quiet try-on skips the worker for that arm. An uncached item is remembered per pane and skipped the same way when the worker's cache callback runs it again. The ItemTransmogInfo argument reader and the ItemUtil.CreateItemTransmogInfo pushers move from SceneActor.cpp to Model::TryOn, so both frame types share them. Outfit gains InvSlotOfComponent for the armor arm's slot.