diff options
author | rubenwardy <rw@rubenwardy.com> | 2019-03-16 21:38:36 +0000 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2019-08-03 19:36:30 +0100 |
commit | 95411657520cfaf6493076417df585b58e99a545 (patch) | |
tree | 36e7cf61d6938752dd3d43e7647ca5c998ea3551 /src/gui/guiFormSpecMenu.h | |
parent | ec3795a55c24685ec732fada3d1f5ba75ecd1cd5 (diff) | |
download | minetest-95411657520cfaf6493076417df585b58e99a545.tar.gz minetest-95411657520cfaf6493076417df585b58e99a545.tar.bz2 minetest-95411657520cfaf6493076417df585b58e99a545.zip |
Add styles to most elements
Diffstat (limited to 'src/gui/guiFormSpecMenu.h')
-rw-r--r-- | src/gui/guiFormSpecMenu.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/guiFormSpecMenu.h b/src/gui/guiFormSpecMenu.h index b310f8a77..e4dc66151 100644 --- a/src/gui/guiFormSpecMenu.h +++ b/src/gui/guiFormSpecMenu.h @@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <utility> #include <stack> +#include <unordered_set> #include "irrlichttypes_extrabloated.h" #include "inventorymanager.h" @@ -404,8 +405,10 @@ protected: std::unordered_map<std::string, StyleSpec> theme_by_type; std::unordered_map<std::string, StyleSpec> theme_by_name; + std::unordered_set<std::string> property_warned; - StyleSpec getThemeForElement(const std::string &type, const std::string &name); + StyleSpec getStyleForElement(const std::string &type, + const std::string &name="", const std::string &parent_type=""); v2s32 padding; v2f32 spacing; @@ -574,7 +577,6 @@ private: * and the default value for the setting is true. */ bool m_remap_dbl_click; - }; class FormspecFormSource: public IFormSource |