GUI: Default new widgets to useRTL = true

This corrects the RTL layout of widgets created in code
such as engine options.
This commit is contained in:
SupSuper 2021-01-06 21:16:57 +00:00 committed by Daniel
parent 91d8c46d8c
commit 49dce75a51

View File

@ -76,7 +76,7 @@ public:
ThemeEval &addDialog(const Common::String &name, const Common::String &overlays, int16 maxWidth = -1, int16 maxHeight = -1, int inset = 0);
ThemeEval &addLayout(ThemeLayout::LayoutType type, int spacing = -1, ThemeLayout::ItemAlign itemAlign = ThemeLayout::kItemAlignStart);
ThemeEval &addWidget(const Common::String &name, const Common::String &type, int w = -1, int h = -1, Graphics::TextAlign align = Graphics::kTextAlignStart, bool useRTL = false);
ThemeEval &addWidget(const Common::String &name, const Common::String &type, int w = -1, int h = -1, Graphics::TextAlign align = Graphics::kTextAlignStart, bool useRTL = true);
ThemeEval &addImportedLayout(const Common::String &name);
ThemeEval &addSpace(int size = -1);