mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +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");
|
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"))
|
if (Misc::StringUtils::ciEqual(type, "ResourceLayout"))
|
||||||
{
|
{
|
||||||
MyGUI::xml::ElementEnumerator resourceRootNode = resourceNode->getElementEnumerator();
|
MyGUI::xml::ElementEnumerator resourceRootNode = resourceNode->getElementEnumerator();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user