TransmogLocationMixin
Jump to navigation
Jump to search
Source: FrameXML/TransmogUtil.lua
API
- TransmogUtil.GetInfoForEquippedSlot(transmogLocation) : appliedSourceID, appliedVisualID, selectedSourceID, selectedVisualID, itemSubclass
- TransmogUtil.CanEnchantSource(sourceID) : boolean
- TransmogUtil.GetWeaponInfoForEnchant(transmogLocation) : sourceID, visualID
- TransmogUtil.GetBestWeaponInfoForIllusionDressup() : weaponSlotName, weaponSourceID
- TransmogUtil.GetSlotID(slotName) : slotID
- TransmogUtil.GetSlotName(slotID) : slotName
- TransmogUtil.CreateTransmogLocation(slotDescriptor, transmogType, modification) : transmogLocation - Creates an object from a inventorySlotName, Enum.TransmogType and Enum.TransmogModification.
- TransmogUtil.GetTransmogLocation(slotDescriptor, transmogType, modification) : transmogLocation
- TransmogUtil.GetCorrespondingHandTransmogLocation(transmogLocation) : transmogLocation
- TransmogUtil.GetTransmogLocationLookupKey(slotID, transmogType, modification) : lookupKey
- TransmogUtil.GetSetIcon(setID) : setIcon
- TransmogUtil.CreateTransmogPendingInfo(pendingType [, transmogID, category, secondaryTransmogID]) : TransmogPendingInfoMixin - Creates a
TransmogPendingInfo
object from an Enum.TransmogPendingType. - TransmogUtil.IsSecondaryTransmoggedForItemLocation(itemLocation) : boolean
- TransmogUtil.GetItemLocationFromTransmogLocation(transmogLocation) : itemLocation - Returns an ItemLocation object.
- TransmogUtil.GetRelevantTransmogID(itemTransmogInfo, transmogLocation) : number
- TransmogUtil.IsCategoryLegionArtifact(categoryID) : boolean
- TransmogUtil.IsCategoryRangedWeapon(categoryID) : boolean
- TransmogUtil.IsValidTransmogSlotID(slotID) : boolean
Methods
- TransmogLocationMixin:Set(slotID, transmogType, modification)
- TransmogLocationMixin:IsAppearance() : boolean
- TransmogLocationMixin:IsIllusion() : boolean
- TransmogLocationMixin:GetSlotID() : slotID
- TransmogLocationMixin:GetSlotName() : slotName
- TransmogLocationMixin:IsEitherHand() : boolean
- TransmogLocationMixin:IsMainHand() : boolean
- TransmogLocationMixin:IsOffHand() : boolean
- TransmogLocationMixin:IsEqual(transmogLocation) : boolean
- TransmogLocationMixin:GetArmorCategoryID() : armorCategoryID
- TransmogLocationMixin:GetLookupKey() : lookupKey
- TransmogLocationMixin:IsSecondary() : boolean
Example
Prints transmog info for the player's head slot. The internal lookup key used in TRANSMOG_SLOTS is 100, from 1*100 + 0*10 + 0
local transmogLoc = TransmogUtil.CreateTransmogLocation("HEADSLOT", Enum.TransmogType.Appearance, Enum.TransmogModification.None)
print(C_Transmog.GetSlotInfo(transmogLoc)) -- true, false, false, true, 0, false, false, 133195
local slotID = transmogLoc:GetSlotID()
local slotName = transmogLoc:GetSlotName()
local isAppearance = transmogLoc:IsAppearance()
local lookupKey = transmogLoc:GetLookupKey()
print(slotID, slotName, isAppearance, lookupKey) -- 1, "HEADSLOT", true, 100
The minimal representation is a table with slotID
, type
and modification
fields.
/dump C_Transmog.GetSlotInfo({slotID=1, type=0, modification=0})
Used by
Patch changes
Patch 9.1.0 (2021-06-29): Added TransmogPendingInfoMixin
Patch 9.0.1 (2020-10-13): Added.