diff options
author | v-rob <robinsonvincent89@gmail.com> | 2020-07-10 03:11:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-10 12:11:26 +0200 |
commit | b1ff04e06da531dc52f6ee91e2967b39743033e6 (patch) | |
tree | 3d1af58d8c8003c5099122d0021b46d87c076c6f /src/gui/guiFormSpecMenu.h | |
parent | 2384c10e104fd0c945f3677130e7d25c0a841482 (diff) | |
download | minetest-b1ff04e06da531dc52f6ee91e2967b39743033e6.tar.gz minetest-b1ff04e06da531dc52f6ee91e2967b39743033e6.tar.bz2 minetest-b1ff04e06da531dc52f6ee91e2967b39743033e6.zip |
Formspec: Make dropdowns optionally return event based on index, not value (#9496)
Diffstat (limited to 'src/gui/guiFormSpecMenu.h')
-rw-r--r-- | src/gui/guiFormSpecMenu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/guiFormSpecMenu.h b/src/gui/guiFormSpecMenu.h index 28088416d..a91afd2f7 100644 --- a/src/gui/guiFormSpecMenu.h +++ b/src/gui/guiFormSpecMenu.h @@ -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; |