v0.13.8

C_AddOns

namespaceavailable in: camelot

Status in wowlua

29 functions: 23 implemented, 0 recorded, 6 guessed. 3 events, 2 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
DisableAddOnSets an addon to be disabled.
(name: uiAddon, character: string)
implemented
DisableAllAddOnsSets all addons to be disabled.
(character: string?)
implemented
DoesAddOnExistWhether the addon is installed. · by wowlua
(name: uiAddon): boolean
implemented
DoesAddOnHaveLoadErrorWhether the addon failed to load. · by wowlua
(name: uiAddon): boolean
guessed
EnableAddOnSets an addon to be enabled.
(name: uiAddon, character: string)
implemented
EnableAllAddOnsSets all addons to be enabled.
(character: string?)
implemented
GetAddOnDependenciesReturns a list of TOC dependencies.
(name: uiAddon): string
implemented
GetAddOnEnableStateQueries the enabled state of an addon, optionally for a specific character.
(name: uiAddon, character: string): AddOnEnableState
implemented
GetAddOnInfoReturns information about an AddOn.
(name: uiAddon): (string, string, string, boolean, string, string)
implemented
GetAddOnInterfaceVersionReturns the value of the Interface directive in an addon TOC file.
(name: uiAddon): number
guessed
GetAddOnLocalTableReturns the addon table (passed as the second argument of ... to files) for any addon that opts in through setting AllowAddOnTableAccess: 1 in the toc file. Insecure code cannot query addon tables from Blizzard addons.
(name: uiAddon): LuaValueVariant
guessed
GetAddOnMetadataReturns the TOC metadata of an addon.
(name: uiAddon, variable: string): string
implemented
GetAddOnNameReturns the addon's folder name. · by wowlua
(index: uiAddon): string
implemented
GetAddOnNotesReturns the addon's notes from its TOC file. · by wowlua
(name: uiAddon): string
implemented
GetAddOnOptionalDependenciesReturns a list of optional TOC dependencies.
(name: uiAddon): string
guessed
GetAddOnSecurityReturns whether the addon is secure (Blizzard's) or insecure. · by wowlua
(name: uiAddon): AddOnSecurityStatus
implemented
GetAddOnTitleReturns the addon's title from its TOC file, or its name without one. · by wowlua
(name: uiAddon): string
implemented
GetNumAddOnsReturns the number of AddOns.
(): number
implemented
GetScriptsDisallowedForBetaWhether addon scripts are disallowed on this beta client. · by wowlua
(): boolean
guessed
IsAddOnDefaultEnabledWhether the addon is enabled by default, unless its TOC file's DefaultState is disabled. · by wowlua
(name: uiAddon): boolean
implemented
IsAddOnLoadOnDemandReturns true if the specified addon is load-on-demand.
(name: uiAddon): boolean
implemented
IsAddOnLoadableReturns whether the addon can be loaded, and the reason when it cannot, such as DISABLED or MISSING. · by wowlua
(name: uiAddon, character: string, demandLoaded: boolean): (boolean, string)
implemented
IsAddOnLoadedReturns true if the specified addon is loaded.
(name: uiAddon): (boolean, boolean)
implemented
IsAddonVersionCheckEnabledWhether out-of-date addons are kept from loading. · by wowlua
(): boolean
implemented
LoadAddOnLoads the specified LoadOnDemand addon.
(name: uiAddon): (boolean?, string?)
implemented
ResetAddOnsUndoes the changes to the addons' enabled states since they were last saved. · by wowlua
()
implemented
ResetDisabledAddOnsResets the addons' disabled states. · by wowlua
()
guessed
SaveAddOnsSaves the addons' enabled states. · by wowlua
()
implemented
SetAddonVersionCheckSets whether out-of-date addons are kept from loading. · by wowlua
(enabled: boolean)
implemented

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
ADDONS_UNLOADINGclosingClient: booleanimplemented
ADDON_LOADEDaddOnName: string, containsBindings: booleanimplemented
SAVED_VARIABLES_TOO_LARGEaddOnName: stringnot implemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("SAVED_VARIABLES_TOO_LARGE").

Structures

  • AddOnInfo · name, title, notes, loadable, reason, security
  • AddOnLoadableInfo · loadable, reason

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (AddOns system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.