From 95411657520cfaf6493076417df585b58e99a545 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 16 Mar 2019 21:38:36 +0000 Subject: Add styles to most elements --- src/gui/guiFormSpecMenu.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/guiFormSpecMenu.h') 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 #include +#include #include "irrlichttypes_extrabloated.h" #include "inventorymanager.h" @@ -404,8 +405,10 @@ protected: std::unordered_map theme_by_type; std::unordered_map theme_by_name; + std::unordered_set 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 -- cgit v1.2.3