ComboBox API additions for minetest#13814

- Allow reliably detecting when the user opens a combobox.
- Allow preventing comboboxes from opening.
- Allow sending a combobox change event.
This commit is contained in:
Gregor Parzefall
2023-09-30 16:46:30 +02:00
committed by GitHub
parent d767d27ca8
commit ea1b58387e
4 changed files with 38 additions and 6 deletions

View File

@@ -263,6 +263,10 @@ namespace irr
//! A checkbox has changed its check state.
EGET_CHECKBOX_CHANGED,
//! A listbox would like to open.
/** You can prevent the listbox from opening by absorbing the event. */
EGET_LISTBOX_OPENED,
//! A new item in a listbox was selected.
/** NOTE: You also get this event currently when the same item was clicked again after more than 500 ms. */
EGET_LISTBOX_CHANGED,