WowAddons

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

C_HousingExpertMode

18 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_HousingExpertMode.CancelActiveEditing

C_HousingExpertMode.CancelActiveEditing()

Cancels all in-progress editing of the selected target, which will reset any unsaved changes and deselect the active target; Will not reset any already-applied changes

C_HousingExpertMode.CommitDecorMovement

C_HousingExpertMode.CommitDecorMovement()

Attempt to save the changes made to the currently selected decor instance

C_HousingExpertMode.CommitHouseExteriorPosition

C_HousingExpertMode.CommitHouseExteriorPosition()

Attempt to save the changes made to the House Exterior's position within the plot

C_HousingExpertMode.GetHoveredDecorInfo

info = C_HousingExpertMode.GetHoveredDecorInfo()

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

Returns

infoHousingDecorInstanceInfo may be nil

C_HousingExpertMode.GetPrecisionSubmode

activeSubMode = C_HousingExpertMode.GetPrecisionSubmode()

Returns the currently active Expert submode, if there is one

Returns

activeSubModeHousingPrecisionSubmode may be nil

C_HousingExpertMode.GetPrecisionSubmodeRestriction

restriction = C_HousingExpertMode.GetPrecisionSubmodeRestriction(subMode)

Returns the type of restriction currently active on the submode; Will return HousingExpertSubmodeRestriction:None if submode is not currently restricted

Arguments

subModeHousingPrecisionSubmode

Returns

restrictionHousingExpertSubmodeRestriction

C_HousingExpertMode.GetSelectedDecorInfo

info = C_HousingExpertMode.GetSelectedDecorInfo()

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

Returns

infoHousingDecorInstanceInfo may be nil

C_HousingExpertMode.IsDecorSelected

hasSelectedDecor = C_HousingExpertMode.IsDecorSelected()

Returns true if a placed decor instance is currently selected

Returns

hasSelectedDecorbool

C_HousingExpertMode.IsGridVisible

gridVisible = C_HousingExpertMode.IsGridVisible()

Returns

gridVisiblebool

C_HousingExpertMode.IsHouseExteriorHovered

isHouseExteriorHovered = C_HousingExpertMode.IsHouseExteriorHovered()

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

Returns

isHouseExteriorHoveredbool

C_HousingExpertMode.IsHouseExteriorSelected

isHouseExteriorSelected = C_HousingExpertMode.IsHouseExteriorSelected()

Returns true if the house's exterior is currently selected

Returns

isHouseExteriorSelectedbool

C_HousingExpertMode.IsHoveringDecor

isHoveringDecor = C_HousingExpertMode.IsHoveringDecor()

Returns true if a placed decor instance is currently being hovered

Returns

isHoveringDecorbool

C_HousingExpertMode.RemoveSelectedDecor

C_HousingExpertMode.RemoveSelectedDecor()

Attempt to return the currently selected decor instance back to the house chest

C_HousingExpertMode.ResetPrecisionChanges

C_HousingExpertMode.ResetPrecisionChanges(activeSubmodeOnly)

Reset the selected target's transform back to default values; This is NOT an undo, meaning it will completely reset the transform value to default, NOT just recently-made changes

Arguments

activeSubmodeOnlyboolIf true, only transform values associated with the currently active submode with be reset (ex: in Scale submode, only target's scale will be reset); If false, all transform values will be reset

C_HousingExpertMode.SelectNextRotationAxis

C_HousingExpertMode.SelectNextRotationAxis()

In the rotation submode, swaps the selected axis to the next available one, in order of X -> Y -> Z (wrapping back around to X again, etc); If no axis is selected, selects the first available one, also in that order

C_HousingExpertMode.SetGridVisible

C_HousingExpertMode.SetGridVisible(gridVisible)

Arguments

gridVisiblebool

C_HousingExpertMode.SetPrecisionIncrementingActive

C_HousingExpertMode.SetPrecisionIncrementingActive(incrementType, active)

Sets a specific type of incremental change active or inactive; Whilever that type is active and target stays selected, incremental changes of that type will continue to be made every frame

Arguments

incrementTypeHousingIncrementType
activebool

C_HousingExpertMode.SetPrecisionSubmode

C_HousingExpertMode.SetPrecisionSubmode(subMode)

Activate a specific Expert submode

Arguments

subModeHousingPrecisionSubmode

Events

HOUSING_DECOR_PRECISION_MANIPULATION_EVENT

eventTransformManipulatorEvent

HOUSING_DECOR_PRECISION_MANIPULATION_STATUS_CHANGED

isManipulatingSelectionbool

HOUSING_DECOR_PRECISION_SUBMODE_CHANGED

activeSubmodeHousingPrecisionSubmode may be nil

HOUSING_EXPERT_MODE_HOVERED_TARGET_CHANGED

hasHoveredTargetbool
targetTypeHousingExpertModeTargetType

HOUSING_EXPERT_MODE_PLACEMENT_FLAGS_UPDATED

targetTypeHousingExpertModeTargetType
activeFlagsHousingDecorPlacementRestriction

HOUSING_EXPERT_MODE_SELECTED_TARGET_CHANGED

hasSelectedTargetbool
targetTypeHousingExpertModeTargetType

Tables

Enum.HousingExpertModeTargetType enumeration

None0
Decor1
House2

Enum.HousingExpertSubmodeRestriction enumeration

None0
NotInExpertMode1
NoHouseExteriorScale2
NoWMOScale3

Enum.HousingIncrementType enumeration

Left1
Right2
Forward4
Back8
Up16
Down32
RotateLeft64
RotateRight128
ScaleUp256
ScaleDown512

Enum.HousingPrecisionSubmode enumeration

Translate0
Rotate1
Scale2

Il te faut WowAddons

Gratuit, pour Windows, macOS et Linux : il met l’addon dans ton jeu en un clic et le tient à jour. Ouvre-le une fois, puis appuie de nouveau sur Installer.

WowAddons tourne sur ton ordinateur : ouvre wowaddons.gg dessus.

Télécharger pour Windows