Class

AppMenu

AppMenu(context, params)

App Menu.
Constructor

# new AppMenu(context, params)

Create new desktop app menu.
Parameters:
Name Type Description
context BrowserWindow the electron browser window
params Object
register boolean immediately register the menu or defer
handlers Object game handlers to attach e.g. storage

View Source app/Menu.js, line 10

Methods

# attach(handler, instance) → {void}

Attach handlers for the menu for callback behaviour
Parameters:
Name Type Description
handler string the handler key
instance Object the handler instance

View Source app/Menu.js, line 38

void

# register() → {void}

Register the application menu

View Source app/Menu.js, line 47

void