-
Notifications
You must be signed in to change notification settings - Fork 1
critMenu.ModifyButton
CritteRo edited this page Jun 20, 2021
·
2 revisions
TriggerEvent('critMenu.ModifyButton', _menuID, _buttonID, _buttonText, _buttonRightText, _buttonStrikeThroughText, _buttonDescription, _buttonEventHandler)
-
_menuID
:: Menu ID where you want to modify the button. String. -
_buttonID
:: ButtonID That you want to modify. -
_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. -
_buttonEventHandler
:: This is a client-side event. It will be triggered once you select the button. It will send _menuID and _buttonID as params.
- This event CANNOT ADD NEW BUTTONS. You have to use
critMenu.AddButton
first.