diff options
author | v-rob <robinsonvincent89@gmail.com> | 2020-08-11 11:07:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 20:07:17 +0200 |
commit | cd0e213a3640e980e15735f97dd874754f0dc679 (patch) | |
tree | 7dc5e132a883edc4631233612f8855f5267da7e2 /src/gui/guiFormSpecMenu.cpp | |
parent | abfea69e5f68c0f2c946bfcd4444f8cb32e781cf (diff) | |
download | minetest-cd0e213a3640e980e15735f97dd874754f0dc679.tar.gz minetest-cd0e213a3640e980e15735f97dd874754f0dc679.tar.bz2 minetest-cd0e213a3640e980e15735f97dd874754f0dc679.zip |
Add font styling options to tables and textlists (#10203)
Diffstat (limited to 'src/gui/guiFormSpecMenu.cpp')
-rw-r--r-- | src/gui/guiFormSpecMenu.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index 601c5c18e..98392f3c0 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -1225,6 +1225,7 @@ void GUIFormSpecMenu::parseTable(parserData* data, const std::string &element) auto style = getDefaultStyleForElement("table", name); e->setNotClipped(style.getBool(StyleSpec::NOCLIP, false)); + e->setOverrideFont(style.getFont()); m_tables.emplace_back(spec, e); m_fields.push_back(spec); @@ -1302,6 +1303,7 @@ void GUIFormSpecMenu::parseTextList(parserData* data, const std::string &element auto style = getDefaultStyleForElement("textlist", name); e->setNotClipped(style.getBool(StyleSpec::NOCLIP, false)); + e->setOverrideFont(style.getFont()); m_tables.emplace_back(spec, e); m_fields.push_back(spec); |