WowAddons

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

SimpleFrameScriptObjectAPI (widget methods)

21 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

AddAccessRestrictions

self:AddAccessRestrictions(restrictions)

Adds access restrictions to a script object, preventing it from being used in API calls when enforced.

Arguments

restrictionsScriptObjectAccessRestriction

AddForbiddenAspects

self:AddForbiddenAspects(aspects)

Adds forbidden aspects to a script object, restricting access to various functionalities such as script bindings.

Arguments

aspectsForbiddenAspect

AddSecretAspect

self:AddSecretAspect(aspect)

Arguments

aspectSecretAspect

CanBeAccessedInContext

canAccess = self:CanBeAccessedInContext()

Returns whether the current Lua execution context has permission to access this object.

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

canAccessboolFalse if access is denied, such as when execution is tainted and the object is forbidden or enforcing access restrictions.

GetAccessRestrictions

restrictions = self:GetAccessRestrictions()

Returns the mask of all access restrictions applied to this object.

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

restrictionsScriptObjectAccessRestriction

GetForbiddenAspects

aspects = self:GetForbiddenAspects()

Returns the mask of all forbidden aspects applied to this object.

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

aspectsForbiddenAspect

GetInheritableForbiddenAspects

aspects = self:GetInheritableForbiddenAspects(path)

Returns the mask of all forbidden aspects applied to this object that can propagate to others.

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Arguments

pathScriptObjectPropagationPath

Returns

aspectsForbiddenAspect

GetName

name = self:GetName()

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

namecstring

GetObjectTable

objectTable = self:GetObjectTable()

Returns

objectTableFrameScriptObject

GetObjectType

objectType = self:GetObjectType()

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

objectTypecstring

HasAccessConstraints

hasAccessConstraints = self:HasAccessConstraints()

Returns whether this object has any access constraints that may limit access from some Lua execution contexts.

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

hasAccessConstraintsboolTrue if this object is forbidden or subject to conditional access restrictions.

HasAnyAccessRestrictions

hasAnyAccessRestriction = self:HasAnyAccessRestrictions([restrictions])

Returns true if this object has any of the supplied access restrictions applied.

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Arguments

restrictionsScriptObjectAccessRestriction may be nil

Returns

hasAnyAccessRestrictionbool

HasAnyForbiddenAspects

hasAnyForbiddenAspect = self:HasAnyForbiddenAspects([aspects])

Returns true if this object has any of the supplied forbidden aspects added.

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Arguments

aspectsForbiddenAspect may be nil

Returns

hasAnyForbiddenAspectbool

HasAnySecretAspect

hasSecretAspect = self:HasAnySecretAspect()

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

hasSecretAspectbool

HasSecretAspect

hasSecretAspect = self:HasSecretAspect(aspect)

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Arguments

aspectSecretAspect

Returns

hasSecretAspectbool

HasSecretValues

hasSecretValues = self:HasSecretValues()

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

hasSecretValuesbool

IsForbidden

isForbidden = self:IsForbidden()

Returns whether this object has been explicitly marked as forbidden.

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

isForbiddenboolTrue if this object has been explicitly marked as forbidden, regardless of the current Lua execution context.

IsObjectType

isType = self:IsObjectType(objectType)

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Arguments

objectTypecstring

Returns

isTypebool

IsPreventingSecretValues

isPreventingSecretValues = self:IsPreventingSecretValues()

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

isPreventingSecretValuesbool

SetForbidden

self:SetForbidden()

SetToDefaults

self:SetToDefaults()

Reset all script accessible values to their default values. If possible, clears secret states.

Protected: only Blizzard's own code may call it.

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