WowAddons

World of Warcraft Forever API · C_HousingCustomizeMode.md, for your AI

C_HousingCustomizeMode

32 functions, 6 events, 4 tables, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an 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. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

C_HousingCustomizeMode.ApplyDyeToSelectedDecor

C_HousingCustomizeMode.ApplyDyeToSelectedDecor(dyeSlotID, [dyeColorID])

If a dyeable decor is selected, applies a specific dye color in a specific slot as a preview; See CommitDyesForSelectedDecor to actually save applied dye changes

Arguments

dyeSlotIDnumber
dyeColorIDnumber may be nilIf not provided, clears the dye from the specified dye slot, returning that part of the decor asset to its default color

C_HousingCustomizeMode.ApplyPetToSelectedDecor

C_HousingCustomizeMode.ApplyPetToSelectedDecor([petID], petBehavior)

If a decor is selected that supports pets, applies a specific petID to be shown on that decor

Arguments

petIDWOWGUID may be nil
petBehaviorHousingPetBehaviorType

C_HousingCustomizeMode.ApplyThemeToRoom

C_HousingCustomizeMode.ApplyThemeToRoom(themeSetID)

Attempt to apply a specific theme set (aka style) to all applicable room components in the current room

Arguments

themeSetIDnumber

C_HousingCustomizeMode.ApplyThemeToSelectedRoomComponent

C_HousingCustomizeMode.ApplyThemeToSelectedRoomComponent(themeSetID)

Attempt to apply a specific theme set (aka style) to the currently selected room component only

Arguments

themeSetIDnumber

C_HousingCustomizeMode.ApplyWallpaperToAllWalls

C_HousingCustomizeMode.ApplyWallpaperToAllWalls(roomComponentTextureRecID)

Attempt to apply a specific wallpaper (aka material/texture) to all applicable room components in the current room

Arguments

roomComponentTextureRecIDnumber

C_HousingCustomizeMode.ApplyWallpaperToSelectedRoomComponent

C_HousingCustomizeMode.ApplyWallpaperToSelectedRoomComponent(roomComponentTextureRecID)

Attempt to apply a specific wallpaper (aka material/texture) to the currently selected room component only

Arguments

roomComponentTextureRecIDnumber

C_HousingCustomizeMode.CancelActiveEditing

C_HousingCustomizeMode.CancelActiveEditing()

Cancels all in-progress editing of the selected target, which will reset any unapplied customization changes and deselect the active target

C_HousingCustomizeMode.ClearDyesForSelectedDecor

C_HousingCustomizeMode.ClearDyesForSelectedDecor()

Clears all previewed dye changes on the selected decor; Does not clear any already saved dyes that were previously applied

C_HousingCustomizeMode.ClearTargetRoomComponent

C_HousingCustomizeMode.ClearTargetRoomComponent()

Deselect the currently selected room component, if there is one

C_HousingCustomizeMode.CommitDyesForSelectedDecor

hasChanges = C_HousingCustomizeMode.CommitDyesForSelectedDecor()

Attempt to save all previewed dye changes made to the selected decor

Returns

hasChangesboolTrue if there were any changes to save

C_HousingCustomizeMode.GetHoveredDecorInfo

info = C_HousingCustomizeMode.GetHoveredDecorInfo()

Returns info for the placed decor instance currently being hovered, if there is one

Returns

infoHousingDecorInstanceInfo may be nil

C_HousingCustomizeMode.GetHoveredRoomComponentInfo

info = C_HousingCustomizeMode.GetHoveredRoomComponentInfo()

Returns info for the room component currently being hovered, if there is one

Returns

infoHousingRoomComponentInstanceInfo may be nil

C_HousingCustomizeMode.GetNumDyesToRemoveOnSelectedDecor

numDyesToRemove = C_HousingCustomizeMode.GetNumDyesToRemoveOnSelectedDecor()

If a dyeable decor instance is selected, returns how many dye slots would be cleared on applying all currently previewed dye changes

Returns

numDyesToRemovenumber

C_HousingCustomizeMode.GetNumDyesToSpendOnSelectedDecor

numDyesToSpend = C_HousingCustomizeMode.GetNumDyesToSpendOnSelectedDecor()

If a dyeable decor instance is selected, returns how many dye items would be spent on applying all currently previewed dye changes

Returns

numDyesToSpendnumber

C_HousingCustomizeMode.GetPreviewDyesOnSelectedDecor

previewDyes = C_HousingCustomizeMode.GetPreviewDyesOnSelectedDecor()

If a dyeable decor instance is selected, returns info structs for each new/changed dye currently being previewed

Returns

previewDyesPreviewDyeSlotInfo[]

C_HousingCustomizeMode.GetRecentlyUsedDyes

recentDyes = C_HousingCustomizeMode.GetRecentlyUsedDyes()

Returns a list of ids for the dyes most recently applied by the player, if any

Returns

recentDyesnumber[]

C_HousingCustomizeMode.GetRecentlyUsedThemeSets

recentThemeSets = C_HousingCustomizeMode.GetRecentlyUsedThemeSets()

Returns a list of ids for the theme sets (aka styles) most recently applied by the player, if any

Returns

recentThemeSetsnumber[]

C_HousingCustomizeMode.GetRecentlyUsedWallpapers

recentWallpapers = C_HousingCustomizeMode.GetRecentlyUsedWallpapers()

Returns a list of ids for the wallpapers most recently applied by the player, if any

Returns

recentWallpapersnumber[]

C_HousingCustomizeMode.GetSelectedDecorInfo

info = C_HousingCustomizeMode.GetSelectedDecorInfo()

Returns info for the decor instance that's currently selected, if there is one

Returns

infoHousingDecorInstanceInfo may be nil

C_HousingCustomizeMode.GetSelectedDecorPetInfo

petID, petBehavior = C_HousingCustomizeMode.GetSelectedDecorPetInfo()

If a decor is selected that supports pets, gets petID and behavior type from decor

Returns

petIDWOWGUID may be nil
petBehaviorHousingPetBehaviorType

C_HousingCustomizeMode.GetSelectedRoomComponentInfo

info = C_HousingCustomizeMode.GetSelectedRoomComponentInfo()

Returns info for the currently selected room component, if there is one

Returns

infoHousingRoomComponentInstanceInfo may be nil

C_HousingCustomizeMode.GetThemeSetInfo

name = C_HousingCustomizeMode.GetThemeSetInfo(themeSetID)

Returns the name of the specified theme set (aka style) if it exists

Arguments

themeSetIDnumber

Returns

namestring may be nil

C_HousingCustomizeMode.GetWallpapersForRoomComponentType

availableWallpapers = C_HousingCustomizeMode.GetWallpapersForRoomComponentType(type)

Get all wallpapers (aka materials/textures) available for the selected room component type, if any

Arguments

typeHousingRoomComponentType

Returns

availableWallpapersRoomComponentWallpaper[]

C_HousingCustomizeMode.IsDecorSelected

hasSelectedDecor = C_HousingCustomizeMode.IsDecorSelected()

Returns true if a decor instance is currently selected for customization

Returns

hasSelectedDecorbool

C_HousingCustomizeMode.IsHouseExteriorDoorHovered

isHouseExteriorDoorHovered = C_HousingCustomizeMode.IsHouseExteriorDoorHovered()

Returns true if the entry door of the house's exterior is currently being hovered

Returns

isHouseExteriorDoorHoveredbool

C_HousingCustomizeMode.IsHoveringDecor

isHoveringDecor = C_HousingCustomizeMode.IsHoveringDecor()

Returns true if a placed decor instance is currently being hovered

Returns

isHoveringDecorbool

C_HousingCustomizeMode.IsHoveringRoomComponent

isHovering = C_HousingCustomizeMode.IsHoveringRoomComponent()

Returns true if a room component is currently being hovered

Returns

isHoveringbool

C_HousingCustomizeMode.IsRoomComponentSelected

hasSelectedComponent = C_HousingCustomizeMode.IsRoomComponentSelected()

Returns true if a room component is currently selected for customization

Returns

hasSelectedComponentbool

C_HousingCustomizeMode.RoomComponentSupportsVariant

variantSupported = C_HousingCustomizeMode.RoomComponentSupportsVariant(componentID, variant)

Check whether a specific room component supports a particular variant; What kind of id or enum 'variant' equates to is complicated, as it depends on the component type

Arguments

componentIDnumber
variantnumber

Returns

variantSupportedbool

C_HousingCustomizeMode.RoomConnectionSupportsDoorType

doorTypeSupported = C_HousingCustomizeMode.RoomConnectionSupportsDoorType(roomGUID, componentID, newDoortype)

Check whether a specific room component, within a specific room, supports a particular doorType

Arguments

roomGUIDWOWGUID
componentIDnumber
newDoortypeHousingRoomComponentDoorType

Returns

doorTypeSupportedbool

C_HousingCustomizeMode.SetRoomComponentCeilingType

C_HousingCustomizeMode.SetRoomComponentCeilingType(roomGUID, componentID, ceilingType)

Attempt to set a specific ceiling component, within a specific room, to a specific new ceiling type

Arguments

roomGUIDWOWGUID
componentIDnumber
ceilingTypeHousingRoomComponentCeilingType

C_HousingCustomizeMode.SetRoomComponentDoorType

C_HousingCustomizeMode.SetRoomComponentDoorType(roomGUID, componentID, newDoortype)

Attempt to set a specific door component, within a specific room, to a specific new door type

Arguments

roomGUIDWOWGUID
componentIDnumber
newDoortypeHousingRoomComponentDoorType

Events

HOUSING_CUSTOMIZE_MODE_HOVERED_TARGET_CHANGED

hasHoveredTargetbool
targetTypeHousingCustomizeModeTargetType

HOUSING_CUSTOMIZE_MODE_SELECTED_TARGET_CHANGED

hasSelectedTargetbool
targetTypeHousingCustomizeModeTargetType

HOUSING_DECOR_CUSTOMIZATION_CHANGED

decorGUIDWOWGUID

HOUSING_DECOR_DYE_FAILURE

decorGUIDWOWGUID
housingResultHousingResult

HOUSING_ROOM_COMPONENT_CUSTOMIZATION_CHANGE_FAILED

roomGUIDWOWGUID
componentIDnumber
housingResultHousingResult

HOUSING_ROOM_COMPONENT_CUSTOMIZATION_CHANGED

roomGUIDWOWGUID
componentIDnumber

Tables

Enum.HousingCustomizeModeTargetType enumeration

None0
Decor1
RoomComponent2
ExteriorHouse3

HousingRoomComponentInstanceInfo structure

roomGUIDWOWGUID
typeHousingRoomComponentType
componentIDnumber
canBeCustomizedbool
currentThemeSetnumber may be nil
availableThemeSetsnumber[]
currentWallpapernumber may be nil
currentRoomComponentTextureRecIDnumber may be nil
ceilingTypeHousingRoomComponentCeilingType
doorTypeHousingRoomComponentDoorType

PreviewDyeSlotInfo structure

dyeColorIDnumber
dyeSlotIDnumber

RoomComponentWallpaper structure

namecstring
roomComponentTextureRecIDnumber

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows