# C_TransmogOutfitInfo: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_TransmogOutfitInfo

## Functions

### C_TransmogOutfitInfo.AddNewOutfit

```lua
C_TransmogOutfitInfo.AddNewOutfit(name, icon)
```

Arguments:
- `name`: cstring
- `icon`: fileID

### C_TransmogOutfitInfo.CanPlayerTransmogSlot

```lua
valid = C_TransmogOutfitInfo.CanPlayerTransmogSlot(slot)
```

Arguments:
- `slot`: TransmogOutfitSlot

Returns:
- `valid`: bool

### C_TransmogOutfitInfo.ChangeDisplayedOutfit

```lua
C_TransmogOutfitInfo.ChangeDisplayedOutfit(outfitID, trigger, toggleLock, allowRemoveOutfit)
```

Arguments:
- `outfitID`: number
- `trigger`: TransmogSituationTrigger
- `toggleLock`: bool
- `allowRemoveOutfit`: bool

### C_TransmogOutfitInfo.ChangeToOutfit

```lua
C_TransmogOutfitInfo.ChangeToOutfit(playerFacingOutfitIndex, allowRemoveOutfit)
```

Arguments:
- `playerFacingOutfitIndex`: number
- `allowRemoveOutfit`: bool

### C_TransmogOutfitInfo.ChangeViewedOutfit

```lua
C_TransmogOutfitInfo.ChangeViewedOutfit(outfitID)
```

Arguments:
- `outfitID`: number

### C_TransmogOutfitInfo.ClearAllPendingSituations

```lua
C_TransmogOutfitInfo.ClearAllPendingSituations()
```

### C_TransmogOutfitInfo.ClearAllPendingTransmogs

```lua
C_TransmogOutfitInfo.ClearAllPendingTransmogs()
```

### C_TransmogOutfitInfo.ClearDisplayedOutfit

```lua
C_TransmogOutfitInfo.ClearDisplayedOutfit(trigger, toggleLock)
```

Arguments:
- `trigger`: TransmogSituationTrigger
- `toggleLock`: bool

### C_TransmogOutfitInfo.ClearOutfit

```lua
C_TransmogOutfitInfo.ClearOutfit()
```

### C_TransmogOutfitInfo.CommitAndApplyAllPending

```lua
C_TransmogOutfitInfo.CommitAndApplyAllPending(useAvailableDiscount)
```

Arguments:
- `useAvailableDiscount`: bool

### C_TransmogOutfitInfo.CommitOutfitInfo

```lua
C_TransmogOutfitInfo.CommitOutfitInfo(outfitID, name, icon)
```

Arguments:
- `outfitID`: number
- `name`: cstring
- `icon`: fileID

### C_TransmogOutfitInfo.CommitPendingSituations

```lua
C_TransmogOutfitInfo.CommitPendingSituations()
```

### C_TransmogOutfitInfo.GetActiveOutfitID

```lua
outfitID = C_TransmogOutfitInfo.GetActiveOutfitID()
```

Returns:
- `outfitID`: number

### C_TransmogOutfitInfo.GetAllSlotLocationInfo

```lua
appearanceSlotInfo, illusionSlotInfo = C_TransmogOutfitInfo.GetAllSlotLocationInfo()
```

May return nothing.

Returns:
- `appearanceSlotInfo`: TransmogOutfitSlotInfo[]
- `illusionSlotInfo`: TransmogOutfitSlotInfo[]

### C_TransmogOutfitInfo.GetAllTransmogOutfitOptionSheatheCategoryInfo

```lua
categoryInfo = C_TransmogOutfitInfo.GetAllTransmogOutfitOptionSheatheCategoryInfo(imaID)
```

May return nothing.

Arguments:
- `imaID`: number

Returns:
- `categoryInfo`: TransmogOutfitOptionSheatheCategoryInfo[]

### C_TransmogOutfitInfo.GetCollectionInfoForSlotAndOption

```lua
collectionInfo = C_TransmogOutfitInfo.GetCollectionInfoForSlotAndOption(slot, option, collectionType)
```

May return nothing.

Arguments:
- `slot`: TransmogOutfitSlot
- `option`: TransmogOutfitSlotOption
- `collectionType`: TransmogCollectionType

Returns:
- `collectionInfo`: TransmogOutfitCollectionInfo

### C_TransmogOutfitInfo.GetCurrentlyViewedOutfitID

```lua
outfitID = C_TransmogOutfitInfo.GetCurrentlyViewedOutfitID()
```

Returns:
- `outfitID`: number

### C_TransmogOutfitInfo.GetEquippedSlotOptionFromTransmogSlot

```lua
option = C_TransmogOutfitInfo.GetEquippedSlotOptionFromTransmogSlot(slot)
```

May return nothing.

Arguments:
- `slot`: TransmogOutfitSlot

Returns:
- `option`: TransmogOutfitSlotOption

### C_TransmogOutfitInfo.GetIllusionDefaultIMAIDForCollectionType

```lua
imaID = C_TransmogOutfitInfo.GetIllusionDefaultIMAIDForCollectionType(collectionType)
```

May return nothing.

Arguments:
- `collectionType`: TransmogCollectionType

Returns:
- `imaID`: number

### C_TransmogOutfitInfo.GetItemModifiedAppearanceEffectiveCategory

```lua
categoryID = C_TransmogOutfitInfo.GetItemModifiedAppearanceEffectiveCategory(imaID)
```

Arguments:
- `imaID`: number

Returns:
- `categoryID`: TransmogCollectionType

### C_TransmogOutfitInfo.GetLinkedSlotInfo

```lua
linkedSlotInfo = C_TransmogOutfitInfo.GetLinkedSlotInfo(slot)
```

May return nothing.

Arguments:
- `slot`: TransmogOutfitSlot

Returns:
- `linkedSlotInfo`: TransmogOutfitLinkedSlotInfo

### C_TransmogOutfitInfo.GetMaxNumberOfTotalOutfitsForSource

```lua
maxOutfitCount = C_TransmogOutfitInfo.GetMaxNumberOfTotalOutfitsForSource(source)
```

Arguments:
- `source`: TransmogOutfitEntrySource

Returns:
- `maxOutfitCount`: number

### C_TransmogOutfitInfo.GetMaxNumberOfUsableOutfits

```lua
maxOutfitCount = C_TransmogOutfitInfo.GetMaxNumberOfUsableOutfits()
```

Returns:
- `maxOutfitCount`: number

### C_TransmogOutfitInfo.GetNextOutfitCost

```lua
outfitCost = C_TransmogOutfitInfo.GetNextOutfitCost()
```

Returns:
- `outfitCost`: BigUInteger

### C_TransmogOutfitInfo.GetNumberOfOutfitsUnlockedForSource

```lua
unlockedOutfitCount = C_TransmogOutfitInfo.GetNumberOfOutfitsUnlockedForSource(source)
```

Arguments:
- `source`: TransmogOutfitEntrySource

Returns:
- `unlockedOutfitCount`: number

### C_TransmogOutfitInfo.GetOptionsForSlot

```lua
options, artifactOptions = C_TransmogOutfitInfo.GetOptionsForSlot(slot)
```

May return nothing.

Arguments:
- `slot`: TransmogOutfitSlot

Returns:
- `options`: TransmogOutfitOptionInfo[]
- `artifactOptions`: TransmogOutfitOptionInfo[], may be nil

### C_TransmogOutfitInfo.GetOutfitInfo

```lua
outfitInfo = C_TransmogOutfitInfo.GetOutfitInfo(outfitID)
```

May return nothing.

Arguments:
- `outfitID`: number

Returns:
- `outfitInfo`: TransmogOutfitEntryInfo

### C_TransmogOutfitInfo.GetOutfitInfoByName

```lua
outfitInfo = C_TransmogOutfitInfo.GetOutfitInfoByName(name)
```

May return nothing.

Arguments:
- `name`: cstring. Case-insensitive outfit name to search for. If multiple exist with the same name, it is unspecified which outfit will be returned.

Returns:
- `outfitInfo`: TransmogOutfitEntryInfo

### C_TransmogOutfitInfo.GetOutfitInfoByPlayerFacingIndex

```lua
outfitInfo = C_TransmogOutfitInfo.GetOutfitInfoByPlayerFacingIndex(playerFacingOutfitIndex)
```

May return nothing.

Arguments:
- `playerFacingOutfitIndex`: number

Returns:
- `outfitInfo`: TransmogOutfitEntryInfo

### C_TransmogOutfitInfo.GetOutfitSituation

```lua
value = C_TransmogOutfitInfo.GetOutfitSituation(option)
```

Arguments:
- `option`: TransmogSituationOption

Returns:
- `value`: bool

### C_TransmogOutfitInfo.GetOutfitSituationsEnabled

```lua
enabled = C_TransmogOutfitInfo.GetOutfitSituationsEnabled()
```

Returns:
- `enabled`: bool

### C_TransmogOutfitInfo.GetOutfitsInfo

```lua
outfitsInfo = C_TransmogOutfitInfo.GetOutfitsInfo()
```

May return nothing.

Returns:
- `outfitsInfo`: TransmogOutfitEntryInfo[]

### C_TransmogOutfitInfo.GetPendingTransmogCost

```lua
cost, modifierFlags = C_TransmogOutfitInfo.GetPendingTransmogCost()
```

May return nothing.

Returns:
- `cost`: BigUInteger
- `modifierFlags`: number

### C_TransmogOutfitInfo.GetSecondarySlotState

```lua
state = C_TransmogOutfitInfo.GetSecondarySlotState(slot, option)
```

Arguments:
- `slot`: TransmogOutfitSlot
- `option`: TransmogOutfitSlotOption

Returns:
- `state`: bool

### C_TransmogOutfitInfo.GetSetSourcesForSlot

```lua
sources = C_TransmogOutfitInfo.GetSetSourcesForSlot(transmogSetID, slot)
```

May return nothing.

Arguments:
- `transmogSetID`: number
- `slot`: TransmogOutfitSlot

Returns:
- `sources`: AppearanceSourceInfo[]

### C_TransmogOutfitInfo.GetSlotGroupInfo

```lua
slotGroups = C_TransmogOutfitInfo.GetSlotGroupInfo()
```

May return nothing.

Returns:
- `slotGroups`: TransmogOutfitSlotGroup[]

### C_TransmogOutfitInfo.GetSourceIDsForSlot

```lua
sources = C_TransmogOutfitInfo.GetSourceIDsForSlot(transmogSetID, slot)
```

May return nothing.

Arguments:
- `transmogSetID`: number
- `slot`: TransmogOutfitSlot

Returns:
- `sources`: number[]

### C_TransmogOutfitInfo.GetTransmogOutfitSlotForInventoryType

```lua
slot = C_TransmogOutfitInfo.GetTransmogOutfitSlotForInventoryType(inventoryType)
```

May return nothing.

Arguments:
- `inventoryType`: luaIndex

Returns:
- `slot`: TransmogOutfitSlot

### C_TransmogOutfitInfo.GetTransmogOutfitSlotFromInventorySlot

```lua
slot = C_TransmogOutfitInfo.GetTransmogOutfitSlotFromInventorySlot(inventorySlot)
```

May return nothing.

Arguments:
- `inventorySlot`: InventorySlots

Returns:
- `slot`: TransmogOutfitSlot

### C_TransmogOutfitInfo.GetUISituationCategoriesAndOptions

```lua
categoryData = C_TransmogOutfitInfo.GetUISituationCategoriesAndOptions()
```

May return nothing.

Returns:
- `categoryData`: TransmogSituationCategory[]

### C_TransmogOutfitInfo.GetUnassignedAtlasForSlot

```lua
atlas = C_TransmogOutfitInfo.GetUnassignedAtlasForSlot(slot)
```

May return nothing.

Arguments:
- `slot`: TransmogOutfitSlot

Returns:
- `atlas`: textureAtlas

### C_TransmogOutfitInfo.GetUnassignedDisplayAtlasForSlot

```lua
atlas = C_TransmogOutfitInfo.GetUnassignedDisplayAtlasForSlot(slot)
```

May return nothing.

Arguments:
- `slot`: TransmogOutfitSlot

Returns:
- `atlas`: textureAtlas

### C_TransmogOutfitInfo.GetViewedOutfitSlotInfo

```lua
slotInfo = C_TransmogOutfitInfo.GetViewedOutfitSlotInfo(slot, type, option)
```

May return nothing.

Arguments:
- `slot`: TransmogOutfitSlot
- `type`: TransmogType
- `option`: TransmogOutfitSlotOption

Returns:
- `slotInfo`: ViewedTransmogOutfitSlotInfo

### C_TransmogOutfitInfo.HasPendingOutfitSituations

```lua
hasPending = C_TransmogOutfitInfo.HasPendingOutfitSituations()
```

Returns:
- `hasPending`: bool

### C_TransmogOutfitInfo.HasPendingOutfitTransmogs

```lua
hasPending = C_TransmogOutfitInfo.HasPendingOutfitTransmogs()
```

Returns:
- `hasPending`: bool

### C_TransmogOutfitInfo.InTransmogEvent

```lua
inTransmogEvent = C_TransmogOutfitInfo.InTransmogEvent()
```

Returns:
- `inTransmogEvent`: bool

### C_TransmogOutfitInfo.IsEquippedGearOutfitDisplayed

```lua
isDisplayed = C_TransmogOutfitInfo.IsEquippedGearOutfitDisplayed()
```

Returns:
- `isDisplayed`: bool

### C_TransmogOutfitInfo.IsEquippedGearOutfitLocked

```lua
isLocked = C_TransmogOutfitInfo.IsEquippedGearOutfitLocked()
```

Returns:
- `isLocked`: bool

### C_TransmogOutfitInfo.IsLockedOutfit

```lua
isLocked = C_TransmogOutfitInfo.IsLockedOutfit(outfitID)
```

Arguments:
- `outfitID`: number

Returns:
- `isLocked`: bool

### C_TransmogOutfitInfo.IsSlotWeaponSlot

```lua
isWeaponSlot = C_TransmogOutfitInfo.IsSlotWeaponSlot(slot)
```

Arguments:
- `slot`: TransmogOutfitSlot

Returns:
- `isWeaponSlot`: bool

### C_TransmogOutfitInfo.IsTransmogEnabled

```lua
enabled = C_TransmogOutfitInfo.IsTransmogEnabled()
```

Returns:
- `enabled`: bool

### C_TransmogOutfitInfo.IsUsableDiscountAvailable

```lua
isAvailable = C_TransmogOutfitInfo.IsUsableDiscountAvailable()
```

Returns:
- `isAvailable`: bool

### C_TransmogOutfitInfo.IsValidTransmogOutfitName

```lua
isApproved = C_TransmogOutfitInfo.IsValidTransmogOutfitName(name)
```

Arguments:
- `name`: cstring

Returns:
- `isApproved`: bool

### C_TransmogOutfitInfo.PickupOutfit

```lua
C_TransmogOutfitInfo.PickupOutfit(outfitID)
```

Arguments:
- `outfitID`: number

### C_TransmogOutfitInfo.ResetOutfitSituations

```lua
C_TransmogOutfitInfo.ResetOutfitSituations()
```

### C_TransmogOutfitInfo.RevertPendingTransmog

```lua
C_TransmogOutfitInfo.RevertPendingTransmog(slot, type, option)
```

Arguments:
- `slot`: TransmogOutfitSlot
- `type`: TransmogType
- `option`: TransmogOutfitSlotOption

### C_TransmogOutfitInfo.SetOutfitSituationsEnabled

```lua
C_TransmogOutfitInfo.SetOutfitSituationsEnabled(enabled)
```

Arguments:
- `enabled`: bool

### C_TransmogOutfitInfo.SetOutfitToCustomSet

```lua
C_TransmogOutfitInfo.SetOutfitToCustomSet(transmogCustomSetID)
```

Arguments:
- `transmogCustomSetID`: number

### C_TransmogOutfitInfo.SetOutfitToOutfit

```lua
C_TransmogOutfitInfo.SetOutfitToOutfit(outfitID)
```

Arguments:
- `outfitID`: number

### C_TransmogOutfitInfo.SetOutfitToSet

```lua
C_TransmogOutfitInfo.SetOutfitToSet(transmogSetID)
```

Arguments:
- `transmogSetID`: number

### C_TransmogOutfitInfo.SetPendingTransmog

```lua
C_TransmogOutfitInfo.SetPendingTransmog(slot, type, option, transmogID, displayType)
```

Arguments:
- `slot`: TransmogOutfitSlot
- `type`: TransmogType
- `option`: TransmogOutfitSlotOption
- `transmogID`: number
- `displayType`: TransmogOutfitDisplayType

### C_TransmogOutfitInfo.SetPendingTransmogSheatheCategory

```lua
C_TransmogOutfitInfo.SetPendingTransmogSheatheCategory(slot, option, category)
```

Arguments:
- `slot`: TransmogOutfitSlot
- `option`: TransmogOutfitSlotOption
- `category`: TransmogOutfitSlotOptionSheatheCategory

### C_TransmogOutfitInfo.SetSecondarySlotState

```lua
C_TransmogOutfitInfo.SetSecondarySlotState(slot, option, state)
```

May return nothing.

Arguments:
- `slot`: TransmogOutfitSlot
- `option`: TransmogOutfitSlotOption
- `state`: bool

### C_TransmogOutfitInfo.SetViewedOptionForSlot

```lua
C_TransmogOutfitInfo.SetViewedOptionForSlot(slot, option)
```

Arguments:
- `slot`: TransmogOutfitSlot
- `option`: TransmogOutfitSlotOption

### C_TransmogOutfitInfo.SlotHasSecondary

```lua
hasSecondary = C_TransmogOutfitInfo.SlotHasSecondary(slot)
```

Arguments:
- `slot`: TransmogOutfitSlot

Returns:
- `hasSecondary`: bool

### C_TransmogOutfitInfo.TransmogEventActive

```lua
transmogEventActive = C_TransmogOutfitInfo.TransmogEventActive()
```

Returns:
- `transmogEventActive`: bool

### C_TransmogOutfitInfo.UpdatePendingSituation

```lua
C_TransmogOutfitInfo.UpdatePendingSituation(option, value)
```

May return nothing.

Arguments:
- `option`: TransmogSituationOption
- `value`: bool

## Events

### TRANSMOG_DISPLAYED_OUTFIT_CHANGED

No payload.

### TRANSMOG_OUTFITS_CHANGED

Payload, after the event's name:
- `newOutfitID`: number, may be nil

### VIEWED_TRANSMOG_OUTFIT_CHANGED

No payload.

### VIEWED_TRANSMOG_OUTFIT_SECONDARY_SLOTS_CHANGED

No payload.

### VIEWED_TRANSMOG_OUTFIT_SITUATIONS_CHANGED

No payload.

### VIEWED_TRANSMOG_OUTFIT_SLOT_OPTION_CHANGED

Payload, after the event's name:
- `slot`: TransmogOutfitSlot
- `option`: TransmogOutfitSlotOption

### VIEWED_TRANSMOG_OUTFIT_SLOT_REFRESH

No payload.

### VIEWED_TRANSMOG_OUTFIT_SLOT_SAVE_SUCCESS

Payload, after the event's name:
- `slot`: TransmogOutfitSlot
- `type`: TransmogType
- `option`: TransmogOutfitSlotOption

## Tables

### TransmogOutfitCollectionInfo (structure)

- `name`: cstring
- `isWeapon`: bool
- `canHaveIllusions`: bool

### TransmogOutfitEntryInfo (structure)

- `outfitID`: number
- `name`: string
- `situationCategories`: cstring[]
- `icon`: fileID
- `isEventOutfit`: bool
- `isDisabled`: bool
- `playerFacingOutfitIndex`: number

### TransmogOutfitLinkedSlotInfo (structure)

- `primarySlotInfo`: TransmogOutfitSlotInfo
- `secondarySlotInfo`: TransmogOutfitSlotInfo

### TransmogOutfitOptionInfo (structure)

- `type`: TransmogOutfitSlotOption
- `name`: cstring
- `enabled`: bool

### TransmogOutfitOptionSheatheCategoryInfo (structure)

- `sheatheCategory`: TransmogOutfitSlotOptionSheatheCategory
- `categoryName`: cstring

### TransmogOutfitSlotGroup (structure)

- `position`: TransmogOutfitSlotPosition
- `appearanceSlotInfo`: TransmogOutfitSlotInfo[]
- `illusionSlotInfo`: TransmogOutfitSlotInfo[]

### TransmogOutfitSlotInfo (structure)

- `slot`: TransmogOutfitSlot
- `type`: TransmogType
- `collectionType`: TransmogCollectionType
- `slotName`: cstring
- `isSecondary`: bool

### TransmogSituationCategory (structure)

- `triggerID`: number
- `name`: cstring
- `description`: cstring
- `isRadioButton`: bool
- `groupData`: TransmogSituationGroup[]

### TransmogSituationGroup (structure)

- `groupID`: number
- `secondaryID`: number
- `optionData`: TransmogSituationOptionData[]

### TransmogSituationOption (structure)

- `situationID`: number
- `specID`: number
- `loadoutID`: number
- `equipmentSetID`: number

### TransmogSituationOptionData (structure)

- `name`: cstring
- `value`: bool
- `option`: TransmogSituationOption

### ViewedTransmogOutfitSlotInfo (structure)

- `transmogID`: number
- `displayType`: TransmogOutfitDisplayType
- `isTransmogrified`: bool
- `hasPending`: bool
- `isPendingCollected`: bool
- `canTransmogrify`: bool
- `warning`: TransmogOutfitSlotWarning
- `warningText`: cstring
- `error`: TransmogOutfitSlotError
- `errorText`: cstring
- `texture`: fileID, may be nil
- `sheatheCategory`: TransmogOutfitSlotOptionSheatheCategory

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
