mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Formspec: Make dropdowns optionally return event based on index, not value (#9496)
This commit is contained in:
parent
2384c10e10
commit
b1ff04e06d
4 changed files with 39 additions and 20 deletions
|
@ -303,6 +303,7 @@ protected:
|
|||
std::vector<ListRingSpec> m_inventory_rings;
|
||||
std::vector<gui::IGUIElement *> m_backgrounds;
|
||||
std::unordered_map<std::string, bool> field_close_on_enter;
|
||||
std::unordered_map<std::string, bool> m_dropdown_index_event;
|
||||
std::vector<FieldSpec> m_fields;
|
||||
std::vector<std::pair<FieldSpec, GUITable *>> m_tables;
|
||||
std::vector<std::pair<FieldSpec, gui::IGUICheckBox *>> m_checkboxes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue