WowAddons

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

HousingLayoutPinFrameAPI (widget methods)

17 functions, 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

CanMove

moveRestriction = self:CanMove()

Returns

moveRestrictionHousingLayoutRestriction

CanRemove

removalRestriction = self:CanRemove()

Returns

removalRestrictionHousingLayoutRestriction

CanRotate

rotateRestriction = self:CanRotate()

Returns

rotateRestrictionHousingLayoutRestriction

Drag

self:Drag(isAccessible)

Arguments

isAccessiblebool

GetDoorConnectionInfo

connectionInfo = self:GetDoorConnectionInfo()

Returns

connectionInfoDoorConnectionInfo may be nil

GetPinType

type = self:GetPinType()

Returns

typeHousingLayoutPinType

GetRoomGUID

roomGUID = self:GetRoomGUID()

Returns

roomGUIDWOWGUID

GetRoomName

name = self:GetRoomName()

Returns

namecstring may be nil

IsAnyPartOfRoomSelected

isSelected = self:IsAnyPartOfRoomSelected()

Returns true if this pin's associated room, or anything attached to it, is selected. Ex: If pin is for a door, returns true if its room, or any other doors on that room, are selected

Returns

isSelectedbool

IsConnectedToDraggingRoom

isConnectedToDraggingRoom = self:IsConnectedToDraggingRoom()

Returns

isConnectedToDraggingRoombool

IsOccupiedDoor

isOccupied = self:IsOccupiedDoor()

Will be nil if pin is not a Door

Returns

isOccupiedbool may be nil

IsPartOfDraggingRoom

isPartOfDraggingRoom = self:IsPartOfDraggingRoom()

Returns

isPartOfDraggingRoombool

IsSelected

isSelected = self:IsSelected()

Returns true if this pin's object is itself selected; See IsAnyPartOfRoomSelected for a broader Selected check

Returns

isSelectedbool

IsValid

isValid = self:IsValid()

Returns

isValidbool

IsValidForSelectedFloorplan

isValid = self:IsValidForSelectedFloorplan()

Returns

isValidbool

Select

self:Select()

SetUpdateCallback

self:SetUpdateCallback(cb)

Arguments

cbPinUpdatedCallback

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