AddonInfo Attributes
Attribute | Description |
---|---|
title | string Addon's title shown in the control panel, instead reading from toc tag ## Title. |
defaultEnable | true/false or 0/1 Default enable state of the addon. |
load | "NORMAL"/"LATER" default is NORMAL Load this addon after player entering the world. |
secure | true/false only used if load=="LATER" Suspending the loading of the addon if being in combat-lockdown while entering world. |
dummy | true/false This is a "folder" of addons, not a real addon. |
parent | string Force set the dependency addon. |
protected | true/false This addon cannot be disabled. |
hide | true/false This addon is not shown in the control panel. |
minimap | string The name of minimap button that will be gathered by default. |
frames | table of strings If load is "LATER", frames position can't be saved by Blizzard. So you have to specify their names here. |
optdeps | table of strings The optional dependencies, which decide the addon loading order if load is "LATER". |
optionsAfterVar | true/false Load the control panel option callbacks after VARIABLE_LOADED event. |
optionsAfterLogin | true/false Load the control panel option callbacks after PLAYER_LOGIN event. |
runBeforeLoad | function(info, name) Run before the addon is loaded but not response to it's own ADDON_LOADED event, which is also the time when Ace3's OnInitialize method is called. |
runAfterLoad | function(info, name) Run after the addon is loaded and responsed to it's own ADDON_LOADED, but before Ace3's OnEnable method. |
tags | table of strings Categories of this addon. |
icon | string Icon in the control panel. |
desc | string Addon introduction instead of reading from toc's ## Notes tag |
author | string Addon author instead of reading from toc's ## Author tag |
modifier | string Some credits shown in the control panel introduction page. |
toggle | need_to_reload = function(name, info, enable, justload) Callback that runs when this addon is enabled or disabled, the justload parameter is true when the addon is actually loaded (not disabled and then re-enabled). The returning value of this function is used to decide if the ReloadUI button should be glowing or not. |
Comments