C_AddOns
namespaceavailable in: camelotStatus in wowlua
29 functions: 23 implemented, 0 recorded, 6 guessed. 3 events, 2 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
DisableAddOn | Sets an addon to be disabled.(name: uiAddon, character: string) | implemented |
DisableAllAddOns | Sets all addons to be disabled.(character: string?) | implemented |
DoesAddOnExist | Whether the addon is installed. · by wowlua(name: uiAddon): boolean | implemented |
DoesAddOnHaveLoadError | Whether the addon failed to load. · by wowlua(name: uiAddon): boolean | guessed |
EnableAddOn | Sets an addon to be enabled.(name: uiAddon, character: string) | implemented |
EnableAllAddOns | Sets all addons to be enabled.(character: string?) | implemented |
GetAddOnDependencies | Returns a list of TOC dependencies.(name: uiAddon): string | implemented |
GetAddOnEnableState | Queries the enabled state of an addon, optionally for a specific character.(name: uiAddon, character: string): AddOnEnableState | implemented |
GetAddOnInfo | Returns information about an AddOn.(name: uiAddon): (string, string, string, boolean, string, string) | implemented |
GetAddOnInterfaceVersion | Returns the value of the Interface directive in an addon TOC file.(name: uiAddon): number | guessed |
GetAddOnLocalTable | Returns 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 |
GetAddOnMetadata | Returns the TOC metadata of an addon.(name: uiAddon, variable: string): string | implemented |
GetAddOnName | Returns the addon's folder name. · by wowlua(index: uiAddon): string | implemented |
GetAddOnNotes | Returns the addon's notes from its TOC file. · by wowlua(name: uiAddon): string | implemented |
GetAddOnOptionalDependencies | Returns a list of optional TOC dependencies.(name: uiAddon): string | guessed |
GetAddOnSecurity | Returns whether the addon is secure (Blizzard's) or insecure. · by wowlua(name: uiAddon): AddOnSecurityStatus | implemented |
GetAddOnTitle | Returns the addon's title from its TOC file, or its name without one. · by wowlua(name: uiAddon): string | implemented |
GetNumAddOns | Returns the number of AddOns.(): number | implemented |
GetScriptsDisallowedForBeta | Whether addon scripts are disallowed on this beta client. · by wowlua(): boolean | guessed |
IsAddOnDefaultEnabled | Whether the addon is enabled by default, unless its TOC file's DefaultState is disabled. · by wowlua(name: uiAddon): boolean | implemented |
IsAddOnLoadOnDemand | Returns true if the specified addon is load-on-demand.(name: uiAddon): boolean | implemented |
IsAddOnLoadable | Returns 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 |
IsAddOnLoaded | Returns true if the specified addon is loaded.(name: uiAddon): (boolean, boolean) | implemented |
IsAddonVersionCheckEnabled | Whether out-of-date addons are kept from loading. · by wowlua(): boolean | implemented |
LoadAddOn | Loads the specified LoadOnDemand addon.(name: uiAddon): (boolean?, string?) | implemented |
ResetAddOns | Undoes the changes to the addons' enabled states since they were last saved. · by wowlua() | implemented |
ResetDisabledAddOns | Resets the addons' disabled states. · by wowlua() | guessed |
SaveAddOns | Saves the addons' enabled states. · by wowlua() | implemented |
SetAddonVersionCheck | Sets 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
| event | payload | fired by the emulator |
|---|---|---|
ADDONS_UNLOADING | closingClient: boolean | implemented |
ADDON_LOADED | addOnName: string, containsBindings: boolean | implemented |
SAVED_VARIABLES_TOO_LARGE | addOnName: string | not 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, securityAddOnLoadableInfo· 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.