modding:function:screnableaction
Discuss this page on this page's Talk Page
scrEnableAction
See scrEnableAction at Xelerus
Syntax | (scrEnableAction screen number condition) → result |
---|---|
Arguments | screen: The screen where you want to enable or disable an action. |
number: What number starting from zero at the top of the screen the action you want to work with is. | |
condition: If Nil disables the action otherwise enables the action. | |
Returns | result: True if successful. |
Category | screen |
Description | Enables or disables actions on the screen. A disabled action looks grayed out and can not be selected. |
Example
(scrEnableAction gScreen 0 Nil)
Disables the top action on the calling screen.
Return to Functions list
modding/function/screnableaction.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1