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
dyeSlotID | number | |
|---|---|---|
dyeColorID | number may be nil | If 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
petID | WOWGUID may be nil | |
|---|---|---|
petBehavior | HousingPetBehaviorType |
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
themeSetID | number |
|---|
C_HousingCustomizeMode.ApplyThemeToSelectedRoomComponent
C_HousingCustomizeMode.ApplyThemeToSelectedRoomComponent(themeSetID)
Attempt to apply a specific theme set (aka style) to the currently selected room component only
Arguments
themeSetID | number |
|---|
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
roomComponentTextureRecID | number |
|---|
C_HousingCustomizeMode.ApplyWallpaperToSelectedRoomComponent
C_HousingCustomizeMode.ApplyWallpaperToSelectedRoomComponent(roomComponentTextureRecID)
Attempt to apply a specific wallpaper (aka material/texture) to the currently selected room component only
Arguments
roomComponentTextureRecID | number |
|---|
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
hasChanges | bool | True 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
info | HousingDecorInstanceInfo may be nil |
|---|
C_HousingCustomizeMode.GetHoveredRoomComponentInfo
info = C_HousingCustomizeMode.GetHoveredRoomComponentInfo()
Returns info for the room component currently being hovered, if there is one
Returns
info | HousingRoomComponentInstanceInfo 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
numDyesToRemove | number |
|---|
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
numDyesToSpend | number |
|---|
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
previewDyes | PreviewDyeSlotInfo[] |
|---|
C_HousingCustomizeMode.GetRecentlyUsedDyes
recentDyes = C_HousingCustomizeMode.GetRecentlyUsedDyes()
Returns a list of ids for the dyes most recently applied by the player, if any
Returns
recentDyes | number[] |
|---|
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
recentThemeSets | number[] |
|---|
C_HousingCustomizeMode.GetRecentlyUsedWallpapers
recentWallpapers = C_HousingCustomizeMode.GetRecentlyUsedWallpapers()
Returns a list of ids for the wallpapers most recently applied by the player, if any
Returns
recentWallpapers | number[] |
|---|
C_HousingCustomizeMode.GetSelectedDecorInfo
info = C_HousingCustomizeMode.GetSelectedDecorInfo()
Returns info for the decor instance that's currently selected, if there is one
Returns
info | HousingDecorInstanceInfo 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
petID | WOWGUID may be nil | |
|---|---|---|
petBehavior | HousingPetBehaviorType |
C_HousingCustomizeMode.GetSelectedRoomComponentInfo
info = C_HousingCustomizeMode.GetSelectedRoomComponentInfo()
Returns info for the currently selected room component, if there is one
Returns
info | HousingRoomComponentInstanceInfo 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
themeSetID | number |
|---|
Returns
name | string 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
type | HousingRoomComponentType |
|---|
Returns
availableWallpapers | RoomComponentWallpaper[] |
|---|
C_HousingCustomizeMode.IsDecorSelected
hasSelectedDecor = C_HousingCustomizeMode.IsDecorSelected()
Returns true if a decor instance is currently selected for customization
Returns
hasSelectedDecor | bool |
|---|
C_HousingCustomizeMode.IsHouseExteriorDoorHovered
isHouseExteriorDoorHovered = C_HousingCustomizeMode.IsHouseExteriorDoorHovered()
Returns true if the entry door of the house's exterior is currently being hovered
Returns
isHouseExteriorDoorHovered | bool |
|---|
C_HousingCustomizeMode.IsHoveringDecor
isHoveringDecor = C_HousingCustomizeMode.IsHoveringDecor()
Returns true if a placed decor instance is currently being hovered
Returns
isHoveringDecor | bool |
|---|
C_HousingCustomizeMode.IsHoveringRoomComponent
isHovering = C_HousingCustomizeMode.IsHoveringRoomComponent()
Returns true if a room component is currently being hovered
Returns
isHovering | bool |
|---|
C_HousingCustomizeMode.IsRoomComponentSelected
hasSelectedComponent = C_HousingCustomizeMode.IsRoomComponentSelected()
Returns true if a room component is currently selected for customization
Returns
hasSelectedComponent | bool |
|---|
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
componentID | number | |
|---|---|---|
variant | number |
Returns
variantSupported | bool |
|---|
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
roomGUID | WOWGUID | |
|---|---|---|
componentID | number | |
newDoortype | HousingRoomComponentDoorType |
Returns
doorTypeSupported | bool |
|---|
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
roomGUID | WOWGUID | |
|---|---|---|
componentID | number | |
ceilingType | HousingRoomComponentCeilingType |
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
roomGUID | WOWGUID | |
|---|---|---|
componentID | number | |
newDoortype | HousingRoomComponentDoorType |
Events
HOUSING_CUSTOMIZE_MODE_HOVERED_TARGET_CHANGED
hasHoveredTarget | bool | |
|---|---|---|
targetType | HousingCustomizeModeTargetType |
HOUSING_CUSTOMIZE_MODE_SELECTED_TARGET_CHANGED
hasSelectedTarget | bool | |
|---|---|---|
targetType | HousingCustomizeModeTargetType |
HOUSING_DECOR_CUSTOMIZATION_CHANGED
decorGUID | WOWGUID |
|---|
HOUSING_DECOR_DYE_FAILURE
decorGUID | WOWGUID | |
|---|---|---|
housingResult | HousingResult |
HOUSING_ROOM_COMPONENT_CUSTOMIZATION_CHANGE_FAILED
roomGUID | WOWGUID | |
|---|---|---|
componentID | number | |
housingResult | HousingResult |
HOUSING_ROOM_COMPONENT_CUSTOMIZATION_CHANGED
roomGUID | WOWGUID | |
|---|---|---|
componentID | number |
Tables
Enum.HousingCustomizeModeTargetType enumeration
None | 0 |
|---|---|
Decor | 1 |
RoomComponent | 2 |
ExteriorHouse | 3 |
HousingRoomComponentInstanceInfo structure
roomGUID | WOWGUID | |
|---|---|---|
type | HousingRoomComponentType | |
componentID | number | |
canBeCustomized | bool | |
currentThemeSet | number may be nil | |
availableThemeSets | number[] | |
currentWallpaper | number may be nil | |
currentRoomComponentTextureRecID | number may be nil | |
ceilingType | HousingRoomComponentCeilingType | |
doorType | HousingRoomComponentDoorType |
PreviewDyeSlotInfo structure
dyeColorID | number | |
|---|---|---|
dyeSlotID | number |
RoomComponentWallpaper structure
name | cstring | |
|---|---|---|
roomComponentTextureRecID | number |