DressUpModel:TryOn
Jump to navigation
Jump to search
Previews an item on the model.
result = DressUpModel:TryOn(linkOrItemModifiedAppearanceID [, handSlotName, spellEnchantID])
Arguments
- linkOrItemModifiedAppearanceID
- IDOrLink - The item as
"item:%d"
or the sourceId (second return value from C_TransmogCollection.GetItemInfo). - handSlotName
- string? - GlobalString in InventorySlotId#Equipment for items that could apply to multiple slots (weapon appearances fitting in "MAINHANDSLOT" or "SECONDARYHANDSLOT")
- spellEnchantID
- number? - ID for an enchant illusion to apply (applicable to main and secondary hand slots)
Returns
- result
- Enum.ItemTryOnReason?
Value | Field | Description |
---|---|---|
0 | Success | |
1 | WrongRace | |
2 | NotEquippable | |
3 | DataPending |
Patch changes
Patch 8.0.1 (2018-07-17): Added result
return value.[1]
Patch 7.0.3 (2016-07-19): Arguments changed to sourceID, slotName and illusionID[2]
Patch 2.1.0 (2007-05-22): Argument changed from item to itemLink[3]
Patch 1.7.0 (2005-09-13): Added[4]
References
- ^ 2018-12-07, DressUpFrames.lua, version 8.1.0.28724, near line 32, archived at Townlong-Yak
- ^ 2016-07-19, DressUpFrames.lua, version 7.0.3.22267, archived at Townlong-Yak
- ^ 2007-05-22, DressUpFrame.lua, version 2.1.0.6692, archived at Townlong-Yak
- ^ 2005-09-13, DressUpFrame.lua, version 1.7.0.4671, archived at Townlong-Yak