diff options
author | DS <vorunbekannt75@web.de> | 2022-02-22 19:17:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 19:17:53 +0100 |
commit | 633e23bd6523d4ff14329e8429c2eaf795e6e128 (patch) | |
tree | 5b72fa5e935948792039fe815e70871927408cf9 /src/gui/guiFormSpecMenu.h | |
parent | 7c227d2a004068267dbe713259d57374a70c29e4 (diff) | |
download | minetest-633e23bd6523d4ff14329e8429c2eaf795e6e128.tar.gz minetest-633e23bd6523d4ff14329e8429c2eaf795e6e128.tar.bz2 minetest-633e23bd6523d4ff14329e8429c2eaf795e6e128.zip |
FormspecMenu: make drawing of backgrounds less hacky (#9517)
Diffstat (limited to 'src/gui/guiFormSpecMenu.h')
-rw-r--r-- | src/gui/guiFormSpecMenu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/guiFormSpecMenu.h b/src/gui/guiFormSpecMenu.h index 0b4d3879d..3fedb3b78 100644 --- a/src/gui/guiFormSpecMenu.h +++ b/src/gui/guiFormSpecMenu.h @@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <unordered_set> #include "irrlichttypes_extrabloated.h" +#include "irr_ptr.h" #include "inventorymanager.h" #include "modalMenu.h" #include "guiInventoryList.h" @@ -313,7 +314,6 @@ protected: std::vector<GUIInventoryList *> m_inventorylists; 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; @@ -375,6 +375,7 @@ private: GUITable::TableOptions table_options; GUITable::TableColumns table_columns; gui::IGUIElement *current_parent = nullptr; + irr_ptr<gui::IGUIElement> background_parent; GUIInventoryList::Options inventorylist_options; |