Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:ComboBoxIsMenuOpen

From RoR Wiki
Revision as of 19:41, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 – true while the menu is open.

Errors

  • Error in function call 'ComboBoxIsMenuOpen': Window %s does not exist
  • Error 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

See also