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
moveRestriction | HousingLayoutRestriction |
|---|
CanRemove
removalRestriction = self:CanRemove()
Returns
removalRestriction | HousingLayoutRestriction |
|---|
CanRotate
rotateRestriction = self:CanRotate()
Returns
rotateRestriction | HousingLayoutRestriction |
|---|
Drag
self:Drag(isAccessible)
Arguments
isAccessible | bool |
|---|
GetDoorConnectionInfo
connectionInfo = self:GetDoorConnectionInfo()
Returns
connectionInfo | DoorConnectionInfo may be nil |
|---|
GetPinType
type = self:GetPinType()
Returns
type | HousingLayoutPinType |
|---|
GetRoomGUID
roomGUID = self:GetRoomGUID()
Returns
roomGUID | WOWGUID |
|---|
GetRoomName
name = self:GetRoomName()
Returns
name | cstring 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
isSelected | bool |
|---|
IsConnectedToDraggingRoom
isConnectedToDraggingRoom = self:IsConnectedToDraggingRoom()
Returns
isConnectedToDraggingRoom | bool |
|---|
IsOccupiedDoor
isOccupied = self:IsOccupiedDoor()
Will be nil if pin is not a Door
Returns
isOccupied | bool may be nil |
|---|
IsPartOfDraggingRoom
isPartOfDraggingRoom = self:IsPartOfDraggingRoom()
Returns
isPartOfDraggingRoom | bool |
|---|
IsSelected
isSelected = self:IsSelected()
Returns true if this pin's object is itself selected; See IsAnyPartOfRoomSelected for a broader Selected check
Returns
isSelected | bool |
|---|
IsValid
isValid = self:IsValid()
Returns
isValid | bool |
|---|
IsValidForSelectedFloorplan
isValid = self:IsValidForSelectedFloorplan()
Returns
isValid | bool |
|---|
Select
self:Select()
SetUpdateCallback
self:SetUpdateCallback(cb)
Arguments
cb | PinUpdatedCallback |
|---|