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

InterfaceMenuList_NewAddOn

Jay Reardon edited this page Jun 7, 2015 · 1 revision

Raises an event to the interface menu to indicate that a new add-on should be added.

Event_FireGenericEvent("InterfaceMenuList_NewAddOn", AddonName, {PressFunction, Tooltip, SpriteImage})
Parameter Required Type Description
AddonName Yes String The name of your add-on.
PressFunction No String Function name to be invoked when the button is pressed. If nil, then nothing happens.
Tooltip No String Tooltip text to display when hovered on. Can be nil.
SpriteImage No String The asset name to use for the button image. If nil, then the first letter of the AddonName will be used.

This is typically fired in the event handler that is subscribed to the InterfaceMenuListHasLoaded event.

Clone this wiki locally