-
Notifications
You must be signed in to change notification settings - Fork 23
Private API
There are a number of functions and tables that are available to addons hosting Aurora. There are also a few functions and tables that the hosting addon can define to customize how Aurora skins the UI.
The major and minor versions of the current API. This is independent of the addon version and generally follows semver
A list of specific UI element groups that should not be skinned. Due to the spread out nature of some of these elements the possible keys are hard coded. Below are the available keys; their values are Boolean.
bags
fonts
tooltips
mainmenubar
This is used to reset a color table to the default RAID_CLASS_COLORS
values. An optional colors
argument can be used to reset a local table, overwise CUSTOM_CLASS_COLORS
will be used. By default, if colors
is not a ColorMixin a metatable will be added to provide those methods. Pass true
as the second arg to prevent this, like when populating saved variables.
Arguments
-
colors
- ColorTable? -
noMeta
- boolean
WoW uses four fonts across the entire UI. This table defines the path to a new font which will replace the associated default font. Below are the available keys; their values are String, the file path to the font.
-
normal
- Replaces Frizz Quadrata -
chat
- Replaces Arial Narrow -
crit
- Replaces Skurri -
header
- replaces Morpheus
This is called from CUSTOM_CLASS_COLORS:NotifyChanges()
to determine if any of the colors have changed. If this is not defined, callbacks will be dispatched in either case.
Returns
-
colorsHaveChanged
- boolean
This is called when the FrameXML is about to be skinned in order to populate CUSTOM_CLASS_COLORS
with color data. If this is not defined, CUSTOM_CLASS_COLORS
will be cloned from RAID_CLASS_COLORS
.