API:ComboBoxIsMenuOpen
From RoR Wiki
UI Lua API · ComboBox functions
Version: WAR 1.4.8
Returns whether a ComboBox's drop-down menu is open.
isOpen = ComboBoxIsMenuOpen(comboBoxName)
Arguments
- comboBoxName
string– Name of the ComboBox.
Returns
- isOpen
boolean–truewhile the menu is open.
Errors
Error in function call 'ComboBoxIsMenuOpen': Window %s does not existError in function call 'ComboBoxIsMenuOpen': Window %s is not a ComboBox
Example
From default/ea_tacticswindow/source/tacticswindow.lua:
-- If mousing over an empty slot while the set menu is already closed, then the next left click on an empty slot should open the set menu.
if(ComboBoxIsMenuOpen("EA_TacticsEditorContentsSetMenu") == false) then
TacticsEditor.openMenuOnNextClick = true;
end
