-
Notifications
You must be signed in to change notification settings - Fork 1
critMenu.AddMenuButton
CritteRo edited this page Jun 25, 2021
·
1 revision
TriggerEvent('critMenu.AddMenuButton', _menuID, _buttonID, _buttonText, _buttonRightText, _buttonStrikeThroughText, _buttonDescription, _buttonMenuTrigger)
-
_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.
- 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.