Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

InterfaceMenuList_AlertAddOn

Jay Reardon edited this page Jun 7, 2015 · 5 revisions

Sends an alert to the interface menu for a specific add-on allowing the button to glow and display extra information.

Event_FireGenericEvent("InterfaceMenuList_AlertAddOn", AddonName, {IsGlowing, TooltipAppend, Value})
Parameter Required Type Description
AddonName Yes String The name of your add-on.
IsGlowing Yes Boolean Determines the alert to make button glow with an orange border
TooltipAppend No String Gets concatenated with the existing button tooltip. Can be nil.
Value No Integer Value shown at the bottom of the interface button. Can be nil to not show.

For example: Sending an Addon alert to the Interface Menu List is very similar to registering your addon:

function Abilities:UpdateInterfaceMenuAlerts()
  local nPoints = GameLib.GetAbilityPoints() + AbilityBook.GetAvailablePower()
  Event_FireGenericEvent("InterfaceMenuList_AlertAddOn", Apollo.GetString("InterfaceMenu_AbilityBuilder"), {nPoints > 0, nil, nPoints})
end

Clone this wiki locally