Difference between revisions of "UI.SimpleMenu"
From Nomad DB
Line 10: | Line 10: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* '''Returns''' UISimpleMenu instance | * '''Returns''' UISimpleMenu instance | ||
+ | |||
+ | == Remarks == | ||
+ | * The Menu will be invisible until a call to [[UISimpleMenu:Activate]] or [[UISimpleMenu:Toggle]] | ||
+ | * You can bind a Menu to a Key, see [[UISimpleMenu:Toggle]] for more information | ||
== Methods == | == Methods == | ||
Line 22: | Line 26: | ||
* [[UISimpleMenu:SetEntryEnabled]] | * [[UISimpleMenu:SetEntryEnabled]] | ||
* [[UISimpleMenu:IsEntryEnabled]] | * [[UISimpleMenu:IsEntryEnabled]] | ||
− | ==== Checkbox ==== | + | * [[UISimpleMenu:AddSearch]] |
+ | ===== Button ===== | ||
+ | * [[UISimpleMenu:AddButton]] | ||
+ | ===== Checkbox ===== | ||
* [[UISimpleMenu:AddCheckbox]] | * [[UISimpleMenu:AddCheckbox]] | ||
* [[UISimpleMenu:IsChecked]] | * [[UISimpleMenu:IsChecked]] |
Revision as of 22:31, 16 April 2020
Creates a SimpleMenu, an ingame menu which can be controlled by the arrow keys & numpad keys. The name comes from its (currently) limited functionality and aims to provide very basic, but useful menu functionality.
This function has to be called from inside a Script.
Contents
Syntax
UI.SimpleMenu()
- Returns UISimpleMenu instance
Remarks
- The Menu will be invisible until a call to UISimpleMenu:Activate or UISimpleMenu:Toggle
- You can bind a Menu to a Key, see UISimpleMenu:Toggle for more information
Methods
Menu State
Entries
Button
Checkbox
Events
Controls
Up/Down Arrows | Navigation |
Numpad 8(Up), Numpad 9 (Down) | |
Enter | Confirm Option |
Numpad 5 | |
Delete Key, Numpad 0 | Return back to previous menu |
ESC | Close the menu |