API:ComboBoxGetDisabledFlag
From RoR Wiki
UI Lua API · ComboBox functions
Version: WAR 1.4.8
Returns whether a ComboBox is disabled.
disabled = ComboBoxGetDisabledFlag(comboBoxName)
Arguments
- comboBoxName
string– Name of the ComboBox.
Returns
- disabled
boolean–trueif the ComboBox is disabled.
Details
- Returns the flag set by ComboBoxSetDisabledFlag.
- The stock UI never calls this function.
Errors
Error in function call 'ComboBoxGetDisabledFlag': Window %s does not existError in function call 'ComboBoxGetDisabledFlag': Window %s is not a ComboBox
Example
A minimal example built from the signature:
if( not ComboBoxGetDisabledFlag( "MyComboBox" ) ) then
ComboBoxExternalOpenMenu( "MyComboBox" )
end
