mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 15:39:02 +00:00
Do not place deprecated MyGUI property dynamically
This commit is contained in:
parent
3fe5cc497b
commit
5cfd21e9ab
@ -616,15 +616,6 @@ namespace Gui
|
||||
{
|
||||
std::string type = resourceNode->findAttribute("type");
|
||||
|
||||
if (Misc::StringUtils::ciEqual(type, "ResourceSkin")
|
||||
|| Misc::StringUtils::ciEqual(type, "AutoSizedResourceSkin"))
|
||||
{
|
||||
|
||||
MyGUI::xml::ElementPtr heightNode = resourceNode->createChild("Property");
|
||||
heightNode->addAttribute("key", "HeightLine");
|
||||
heightNode->addAttribute("value", std::to_string(Settings::gui().mFontSize + 2));
|
||||
}
|
||||
|
||||
if (Misc::StringUtils::ciEqual(type, "ResourceLayout"))
|
||||
{
|
||||
MyGUI::xml::ElementEnumerator resourceRootNode = resourceNode->getElementEnumerator();
|
||||
|
Loading…
Reference in New Issue
Block a user