TransmogLocationMixin

From Warcraft Wiki
Jump to navigation Jump to search

Source: FrameXML/TransmogUtil.lua

API

Methods

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

Note
Note: This list is up to date as of Patch 10.0.2 (46879) Nov 29 2022
Function arguments
C_TooltipInfo.GetTransmogrifyItem
C_Transmog.ClearPending
C_Transmog.GetPending
C_Transmog.GetSlotEffectiveCategory
C_Transmog.GetSlotInfo
C_Transmog.GetSlotUseError
C_Transmog.GetSlotVisualInfo
C_Transmog.IsSlotBeingCollapsed
C_TransmogCollection.GetAppearanceSources
C_TransmogCollection.GetCategoryAppearances
Events
TRANSMOGRIFY_SUCCESS
TRANSMOGRIFY_UPDATE

Patch changes

Shadowlands Patch 9.1.0 (2021-06-29): Added TransmogPendingInfoMixin
Shadowlands Patch 9.0.1 (2020-10-13): Added.

External links

 GitHub Octocat.png Search FrameXML