Main Menu |
---|
|
→ DressUpModel
Links |
---|
Previews an item on a DressUpModel.
result = myDressUpModel:TryOn(itemID or sourceID [, slotName, illusionID])
Arguments
- itemID
- string - In
"item:%d"
format - sourceID
- number - Second return value from C_TransmogCollection.GetItemInfo()
- slotName
- string? - GlobalString in InventorySlotId#Equipment for items that could apply to multiple slots (weapon appearances fitting in "MAINHANDSLOT" or "SECONDARYHANDSLOT")
- illusionID
- number? - ID for an enchant illusion to apply (applicable to main and secondary hand slots)
Returns
- result
Value Enum.ItemTryOnReason 0 Success 1 WrongRace 2 NotEquippable 3 DataPending
Patch changes
Patch 8.0.1 (2018-07-17): Return value added.[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