World of Warcraft Forever API · FrameAPINamePlate.md, for your AI
FrameAPINamePlate (widget methods)
6 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
CanChangeHitTestPoints
canChangeHitTestPoints = self:CanChangeHitTestPoints()
Returns true if this nameplate permits changes to its hit-test points. Updates are normally blocked for tainted code during combat, except on the tick a unit is first assigned or when untainted code updates hit-test points on the same tick.
Returns
canChangeHitTestPoints | bool |
|---|
ClearAllHitTestPoints
self:ClearAllHitTestPoints()
Clears the anchor points that determine where the mouse interacts with the nameplate.
GetHitTestPoints
anchors = self:GetHitTestPoints()
Returns the anchor points that determine where the mouse interacts with the nameplate.
Returns
anchors | AnchorBinding[] |
|---|
SetAllHitTestPoints
self:SetAllHitTestPoints(relativeTo)
Sets the anchor points that determine where the mouse interacts with the nameplate to fully encompass the target region.
Arguments
relativeTo | ScriptRegion |
|---|
SetHitTestPoints
self:SetHitTestPoints(anchors)
Sets the anchor points that determine where the mouse interacts with the nameplate.
Arguments
anchors | AnchorBinding[] | List of anchor points to use for hit testing. All existing points will be cleared. |
|---|
SetStackingBoundsFrame
self:SetStackingBoundsFrame(frame)
Arguments
frame | SimpleFrame |
|---|