From 4f7fa8d417074dadb085b367f756cade23e593c6 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 2 Jul 2019 03:43:46 +0100 Subject: Add formspec testing to test mod in minimal --- src/gui/guiFormSpecMenu.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/gui/guiFormSpecMenu.cpp') 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; -- cgit v1.2.3