Skip to content

Custom Class Color Register

Addon Hook

Registers a callback fired when custom class colors are refreshed.

NamespaceEModuleCoreLifecyclestable
E:CustomClassColorRegister(func)

Registers a callback fired when custom class colors are refreshed.

  • func: Function callback to invoke when class colors update.

None.

local function UpdateAddonColors()
MyAddon:RefreshColors()
end
E:CustomClassColorRegister(UpdateAddonColors)

Remember to unregister long-lived callbacks if addon modules can be disabled independently.

Source: ElvUI/Game/Shared/General/API.lua:743