Skip to content

critMenu.AddMenuButton

CritteRo edited this page Jun 25, 2021 · 1 revision

critMenu.AddMenuButton

Usage:

TriggerEvent('critMenu.AddMenuButton', _menuID, _buttonID, _buttonText, _buttonRightText, _buttonStrikeThroughText, _buttonDescription, _buttonMenuTrigger)

Params:

  • _menuID :: Menu ID where you want to add the button. String.
  • _buttonID :: This is the button ID that will be sent along side _menuID, when selecting the button. String.
  • _buttonText :: Left-side text of the button.
  • _buttonRightText :: Right-side text.
  • _buttonStrikeThroughText :: This text will appear on the left side of _buttonRightText, in red, with a red line crossing it.
  • _buttonDescription :: Button tooltip.
  • _buttonMenuTrigger :: Target _menuID that you want to open.

Notes:

  • This button will basically hide the current menu, and open the _buttonMenuTrigger menu.
  • Even tho this menu is not attached to any event, you can use critMenu.Check.ButtonWasUsed trigger to check if this button was used.