Skip to content

critMenu.CreateMenu

CritteRo edited this page Jun 20, 2021 · 2 revisions

critMenu.CreateMenu

Usage:

TriggerEvent('critMenu.CreateMenu', _menuID, _menuTitle, _menuDesc, _selectText, _upText, _downText, _quitText)

Params:

  • _menuID :: Unique menu ID.
  • _menuTitle :: Menu title.
  • _menuDesc :: Menu subtitle.
  • _selectText, _upText, _downText, _quitText :: Text for select, up, down and exit menu buttons, showing on bottom-right side of the page.

Screenshot:

critMenu.CreateMenu example screenshot

Notes:

  • Whenever you want to add/modify/remove buttons from a menu, _menuID will be used to reference that button.
  • You can use critMenu.ShowMenu event to show the menu. Should NOT run in a loop.
  • Only one menu can be shown at a time.

Clone this wiki locally