Skip to content
Tim West edited this page Jan 30, 2018 · 11 revisions

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.

Predefined Values

private.API_MAJOR and private.API_MINOR - number

The major and minor versions of the current API. This is independent of the addon version and generally follows semver

private.disabled - table

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

private.classColorsReset([colors[, noMeta]]) - function

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

private.font - table

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

Undefined Values

private.classColorsHaveChanged() - function

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

private.classColorsInit() - function

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.