diff options
author | rubenwardy <rw@rubenwardy.com> | 2019-07-02 03:43:46 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2019-08-03 19:36:30 +0100 |
commit | 4f7fa8d417074dadb085b367f756cade23e593c6 (patch) | |
tree | 2a2d7b97399b1f7737924809ebd6db1985376e81 /src | |
parent | 95411657520cfaf6493076417df585b58e99a545 (diff) | |
download | minetest-4f7fa8d417074dadb085b367f756cade23e593c6.tar.gz minetest-4f7fa8d417074dadb085b367f756cade23e593c6.tar.bz2 minetest-4f7fa8d417074dadb085b367f756cade23e593c6.zip |
Add formspec testing to test mod in minimal
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/guiFormSpecMenu.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index c9ae76750..e7eaefd75 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -1458,11 +1458,7 @@ void GUIFormSpecMenu::parseLabel(parserData* data, const std::string &element) auto style = getStyleForElement("label", spec.fname); e->setNotClipped(style.getBool(StyleSpec::NOCLIP, false)); - e->setDrawBorder(style.getBool(StyleSpec::BORDER, false)); e->setOverrideColor(style.getColor(StyleSpec::TEXTCOLOR, video::SColor(0xFFFFFFFF))); - if (style.isNotDefault(StyleSpec::BGCOLOR)) { - e->setBackgroundColor(style.getColor(StyleSpec::BGCOLOR)); - } m_fields.push_back(spec); } @@ -1538,11 +1534,7 @@ void GUIFormSpecMenu::parseVertLabel(parserData* data, const std::string &elemen auto style = getStyleForElement("vertlabel", spec.fname, "label"); e->setNotClipped(style.getBool(StyleSpec::NOCLIP, false)); - e->setDrawBorder(style.getBool(StyleSpec::BORDER, false)); e->setOverrideColor(style.getColor(StyleSpec::TEXTCOLOR, video::SColor(0xFFFFFFFF))); - if (style.isNotDefault(StyleSpec::BGCOLOR)) { - e->setBackgroundColor(style.getColor(StyleSpec::BGCOLOR)); - } m_fields.push_back(spec); return; |