GUI: RTL: Get internal widget RTL flag from theme

This commit is contained in:
aryanrawlani28 2020-05-22 20:01:19 +05:30 committed by Eugene Sandulenko
parent 58704be218
commit 07ab77d065
12 changed files with 41 additions and 37 deletions

View file

@ -41,12 +41,13 @@ GuiObject::~GuiObject() {
void GuiObject::reflowLayout() {
if (!_name.empty()) {
int16 w, h;
if (!g_gui.xmlEval()->getWidgetData(_name, _x, _y, w, h) || w == -1 || h == -1) {
bool useRTL = true;
if (!g_gui.xmlEval()->getWidgetData(_name, _x, _y, w, h, useRTL) || w == -1 || h == -1) {
error("Unable to load widget position for '%s'. Please check your theme files", _name.c_str());
}
_w = w;
_h = h;
_useRTL = useRTL;
}
}