diff --git a/backends/keymapper/remap-dialog.cpp b/backends/keymapper/remap-dialog.cpp index d53ae588f8b..8b0a5c2e36e 100644 --- a/backends/keymapper/remap-dialog.cpp +++ b/backends/keymapper/remap-dialog.cpp @@ -44,7 +44,8 @@ RemapDialog::RemapDialog() _keymapper = g_system->getEventManager()->getKeymapper(); assert(_keymapper); - _kmPopUp = new GUI::PopUpWidget(this, "KeyRemapper.Popup", "Keymap: "); + _kmPopUpDesc = new GUI::StaticTextWidget(this, "KeyRemapper.PopupDesc", "Keymap:"); + _kmPopUp = new GUI::PopUpWidget(this, "KeyRemapper.Popup"); _scrollBar = new GUI::ScrollBarWidget(this, 0, 0, 0, 0); diff --git a/backends/keymapper/remap-dialog.h b/backends/keymapper/remap-dialog.h index abec8a2d5ce..88f099520ab 100644 --- a/backends/keymapper/remap-dialog.h +++ b/backends/keymapper/remap-dialog.h @@ -76,6 +76,7 @@ protected: Rect _keymapArea; + GUI::StaticTextWidget *_kmPopUpDesc; GUI::PopUpWidget *_kmPopUp; //GUI::ContainerWidget *_container; GUI::ScrollBarWidget *_scrollBar; diff --git a/gui/PopUpWidget.cpp b/gui/PopUpWidget.cpp index 9be652b8d69..cc756a96b68 100644 --- a/gui/PopUpWidget.cpp +++ b/gui/PopUpWidget.cpp @@ -79,10 +79,10 @@ PopUpDialog::PopUpDialog(PopUpWidget *boss, int clickX, int clickY) _selection = _popUpBoss->_selectedItem; // Calculate real popup dimensions - _x = _popUpBoss->getAbsX() + _popUpBoss->_labelWidth + _popUpBoss->_labelSpacing; + _x = _popUpBoss->getAbsX(); _y = _popUpBoss->getAbsY() - _popUpBoss->_selectedItem * kLineHeight; _h = _popUpBoss->_entries.size() * kLineHeight + 2; - _w = _popUpBoss->_w - kLineHeight + 2 - _popUpBoss->_labelWidth - _popUpBoss->_labelSpacing; + _w = _popUpBoss->_w - kLineHeight + 2; _leftPadding = _popUpBoss->_leftPadding; _rightPadding = _popUpBoss->_rightPadding; @@ -356,13 +356,12 @@ void PopUpDialog::drawMenuEntry(int entry, bool hilite) { // PopUpWidget // -PopUpWidget::PopUpWidget(GuiObject *boss, const String &name, const String &label) - : Widget(boss, name), CommandSender(boss), _label(label), _labelWidth(0) { +PopUpWidget::PopUpWidget(GuiObject *boss, const String &name) + : Widget(boss, name), CommandSender(boss) { setFlags(WIDGET_ENABLED | WIDGET_CLEARBG | WIDGET_RETAIN_FOCUS | WIDGET_IGNORE_DRAG); _type = kPopUpWidget; _selectedItem = -1; - _labelWidth = g_gui.xmlEval()->getVar("Globals.PopUpWidget.labelWidth"); } void PopUpWidget::handleMouseDown(int x, int y, int button, int clickCount) { @@ -394,10 +393,8 @@ void PopUpWidget::handleMouseWheel(int x, int y, int direction) { } void PopUpWidget::reflowLayout() { - _labelWidth = g_gui.xmlEval()->getVar("Globals.PopUpWidget.labelWidth"); _leftPadding = g_gui.xmlEval()->getVar("Globals.PopUpWidget.Padding.Left", 0); _rightPadding = g_gui.xmlEval()->getVar("Globals.PopUpWidget.Padding.Right", 0); - _labelSpacing = g_gui.xmlEval()->getVar("Globals.PopUpWidget.labelSpacing", 10); Widget::reflowLayout(); } @@ -435,17 +432,10 @@ void PopUpWidget::setSelectedTag(uint32 tag) { } void PopUpWidget::drawWidget() { - int x = _x + _labelWidth + _labelSpacing; - int w = _w - _labelWidth - _labelSpacing; - - // Draw the label, if any - if (_labelWidth > 0) - g_gui.theme()->drawText(Common::Rect(_x+2,_y+3,_x+2+_labelWidth, _y+3+g_gui.theme()->getFontHeight()), _label, _state, Graphics::kTextAlignRight); - Common::String sel; if (_selectedItem >= 0) sel = _entries[_selectedItem].name; - g_gui.theme()->drawPopUpWidget(Common::Rect(x, _y, x+w, _y+_h), sel, _leftPadding, _state, Graphics::kTextAlignLeft); + g_gui.theme()->drawPopUpWidget(Common::Rect(_x, _y, _x + _w, _y + _h), sel, _leftPadding, _state, Graphics::kTextAlignLeft); } } // End of namespace GUI diff --git a/gui/PopUpWidget.h b/gui/PopUpWidget.h index 23d57579922..050dc0936d3 100644 --- a/gui/PopUpWidget.h +++ b/gui/PopUpWidget.h @@ -55,15 +55,11 @@ protected: EntryList _entries; int _selectedItem; - String _label; - int _labelWidth; - int _leftPadding; int _rightPadding; - int _labelSpacing; public: - PopUpWidget(GuiObject *boss, const String &name, const String &label); + PopUpWidget(GuiObject *boss, const String &name); void handleMouseDown(int x, int y, int button, int clickCount); void handleMouseWheel(int x, int y, int direction); diff --git a/gui/ThemeEngine.h b/gui/ThemeEngine.h index 3d056486e04..dd32ff6f2f3 100644 --- a/gui/ThemeEngine.h +++ b/gui/ThemeEngine.h @@ -31,7 +31,6 @@ #include "common/fs.h" #include "graphics/surface.h" #include "graphics/fontman.h" -#include "graphics/font.h" #define SCUMMVM_THEME_VERSION_STR "SCUMMVM_STX0.4" diff --git a/gui/ThemeEval.cpp b/gui/ThemeEval.cpp index d50564462c5..88727412286 100644 --- a/gui/ThemeEval.cpp +++ b/gui/ThemeEval.cpp @@ -66,23 +66,39 @@ bool ThemeEval::getWidgetData(const Common::String &widget, int16 &x, int16 &y, return _layouts[dialogName]->getWidgetData(widgetName, x, y, w, h); } +Graphics::TextAlign ThemeEval::getWidgetTextHAlign(const Common::String &widget) { + Common::StringTokenizer tokenizer(widget, "."); + + if (widget.hasPrefix("Dialog.")) + tokenizer.nextToken(); + + Common::String dialogName = "Dialog." + tokenizer.nextToken(); + Common::String widgetName = tokenizer.nextToken(); + + if (!_layouts.contains(dialogName)) + return Graphics::kTextAlignInvalid; + + return _layouts[dialogName]->getWidgetTextHAlign(widgetName); +} void ThemeEval::addWidget(const Common::String &name, int w, int h, const Common::String &type, bool enabled, Graphics::TextAlign align) { int typeW = -1; int typeH = -1; + Graphics::TextAlign typeAlign = Graphics::kTextAlignInvalid; if (!type.empty()) { typeW = getVar("Globals." + type + ".Width", -1); typeH = getVar("Globals." + type + ".Height", -1); + typeAlign = (Graphics::TextAlign)getVar("Globals." + type + ".Align", Graphics::kTextAlignInvalid); } ThemeLayoutWidget *widget = new ThemeLayoutWidget(_curLayout.top(), name, typeW == -1 ? w : typeW, - typeH == -1 ? h : typeH); + typeH == -1 ? h : typeH, + typeAlign == Graphics::kTextAlignInvalid ? align : typeAlign); _curLayout.top()->addChild(widget); setVar(_curDialog + "." + name + ".Enabled", enabled ? 1 : 0); - setVar(_curDialog + "." + name + ".Align", align); } void ThemeEval::addDialog(const Common::String &name, const Common::String &overlays, bool enabled, int inset) { diff --git a/gui/ThemeEval.h b/gui/ThemeEval.h index 2e15f604ed2..c484a49564d 100644 --- a/gui/ThemeEval.h +++ b/gui/ThemeEval.h @@ -88,6 +88,8 @@ public: bool getWidgetData(const Common::String &widget, int16 &x, int16 &y, uint16 &w, uint16 &h); + Graphics::TextAlign getWidgetTextHAlign(const Common::String &widget); + #ifdef LAYOUT_DEBUG_DIALOG void debugDraw(Graphics::Surface *screen, const Graphics::Font *font) { _layouts[LAYOUT_DEBUG_DIALOG]->debugDraw(screen, font); diff --git a/gui/ThemeLayout.cpp b/gui/ThemeLayout.cpp index 3afded5504e..3c930db73c2 100644 --- a/gui/ThemeLayout.cpp +++ b/gui/ThemeLayout.cpp @@ -70,6 +70,22 @@ bool ThemeLayout::getWidgetData(const Common::String &name, int16 &x, int16 &y, return false; } +Graphics::TextAlign ThemeLayout::getWidgetTextHAlign(const Common::String &name) { + if (name.empty()) { + assert(getLayoutType() == kLayoutMain); + return _textHAlign; + } + + Graphics::TextAlign res; + + for (uint i = 0; i < _children.size(); ++i) { + if ((res = _children[i]->getWidgetTextHAlign(name)) != Graphics::kTextAlignInvalid) + return res; + } + + return Graphics::kTextAlignInvalid; +} + int16 ThemeLayoutStacked::getParentWidth() { ThemeLayout *p = _parent; int width = 0; @@ -135,6 +151,14 @@ bool ThemeLayoutWidget::getWidgetData(const Common::String &name, int16 &x, int1 return false; } +Graphics::TextAlign ThemeLayoutWidget::getWidgetTextHAlign(const Common::String &name) { + if (name == _name) { + return _textHAlign; + } + + return Graphics::kTextAlignInvalid; +} + void ThemeLayoutMain::reflowLayout() { assert(_children.size() <= 1); diff --git a/gui/ThemeLayout.h b/gui/ThemeLayout.h index ac17e5744bd..3d367df147d 100644 --- a/gui/ThemeLayout.h +++ b/gui/ThemeLayout.h @@ -52,7 +52,8 @@ public: ThemeLayout(ThemeLayout *p) : _parent(p), _x(0), _y(0), _w(-1), _h(-1), - _centered(false), _defaultW(-1), _defaultH(-1) { } + _centered(false), _defaultW(-1), _defaultH(-1), + _textHAlign(Graphics::kTextAlignInvalid) {} virtual ~ThemeLayout() { for (uint i = 0; i < _children.size(); ++i) @@ -90,6 +91,7 @@ protected: void setWidth(int16 width) { _w = width; } void setHeight(int16 height) { _h = height; } + void setTextHAlign(Graphics::TextAlign align) { _textHAlign = align; } virtual LayoutType getLayoutType() = 0; @@ -98,8 +100,12 @@ protected: public: virtual bool getWidgetData(const Common::String &name, int16 &x, int16 &y, uint16 &w, uint16 &h); + virtual Graphics::TextAlign getWidgetTextHAlign(const Common::String &name); + void importLayout(ThemeLayout *layout); + Graphics::TextAlign getTextHAlign() { return _textHAlign; } + #ifdef LAYOUT_DEBUG_DIALOG void debugDraw(Graphics::Surface *screen, const Graphics::Font *font); @@ -113,6 +119,7 @@ protected: Common::Array _children; bool _centered; int16 _defaultW, _defaultH; + Graphics::TextAlign _textHAlign; }; class ThemeLayoutMain : public ThemeLayout { @@ -190,12 +197,16 @@ protected: class ThemeLayoutWidget : public ThemeLayout { public: - ThemeLayoutWidget(ThemeLayout *p, const Common::String &name, int16 w, int16 h) : ThemeLayout(p), _name(name) { + ThemeLayoutWidget(ThemeLayout *p, const Common::String &name, int16 w, int16 h, Graphics::TextAlign align) : ThemeLayout(p), _name(name) { _w = _defaultW = w; _h = _defaultH = h; + + setTextHAlign(align); } bool getWidgetData(const Common::String &name, int16 &x, int16 &y, uint16 &w, uint16 &h); + Graphics::TextAlign getWidgetTextHAlign(const Common::String &name); + void reflowLayout() {} #ifdef LAYOUT_DEBUG_DIALOG diff --git a/gui/ThemeParser.cpp b/gui/ThemeParser.cpp index 31d1deb6563..2e7e2d32149 100644 --- a/gui/ThemeParser.cpp +++ b/gui/ThemeParser.cpp @@ -800,6 +800,15 @@ bool ThemeParser::parseCommonLayoutProps(ParserNode *node, const Common::String _theme->getEvaluator()->setVar(var + "Padding.Bottom", paddingB); } + + if (node->values.contains("textalign")) { + Graphics::TextAlign alignH = Graphics::kTextAlignLeft; + + if((alignH = parseTextHAlign(node->values["textalign"])) == Graphics::kTextAlignInvalid) + return parserError("Invalid value for text alignment."); + + _theme->getEvaluator()->setVar(var + "Align", alignH); + } return true; } diff --git a/gui/launcher.cpp b/gui/launcher.cpp index ce44341e140..6982550cbdf 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -133,7 +133,9 @@ protected: StaticTextWidget *_extraPathWidget; StaticTextWidget *_savePathWidget; + StaticTextWidget *_langPopUpDesc; PopUpWidget *_langPopUp; + StaticTextWidget *_platformPopUpDesc; PopUpWidget *_platformPopUp; CheckboxWidget *_globalGraphicsOverride; @@ -173,7 +175,8 @@ EditGameDialog::EditGameDialog(const String &domain, const String &desc) _descriptionWidget = new EditTextWidget(tab, "GameOptions_Game.Desc", description); // Language popup - _langPopUp = new PopUpWidget(tab, "GameOptions_Game.Lang", "Language:"); + _langPopUpDesc = new StaticTextWidget(tab, "GameOptions_Game.LangPopupDesc", "Language:"); + _langPopUp = new PopUpWidget(tab, "GameOptions_Game.LangPopup"); _langPopUp->appendEntry(""); _langPopUp->appendEntry(""); const Common::LanguageDescription *l = Common::g_languages; @@ -182,7 +185,8 @@ EditGameDialog::EditGameDialog(const String &domain, const String &desc) } // Platform popup - _platformPopUp = new PopUpWidget(tab, "GameOptions_Game.Platform", "Platform:"); + _platformPopUpDesc = new StaticTextWidget(tab, "GameOptions_Game.PlatformPopupDesc", "Platform:"); + _platformPopUp = new PopUpWidget(tab, "GameOptions_Game.PlatformPopup"); _platformPopUp->appendEntry(""); _platformPopUp->appendEntry(""); const Common::PlatformDescription *p = Common::g_platforms; diff --git a/gui/options.cpp b/gui/options.cpp index 2e23a4dc61d..5d603fa25e9 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -477,7 +477,9 @@ void OptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data void OptionsDialog::setGraphicSettingsState(bool enabled) { _enableGraphicSettings = enabled; + _gfxPopUpDesc->setEnabled(enabled); _gfxPopUp->setEnabled(enabled); + _renderModePopUpDesc->setEnabled(enabled); _renderModePopUp->setEnabled(enabled); #ifndef SMALL_SCREEN_DEVICE _fullscreenCheckbox->setEnabled(enabled); @@ -488,8 +490,11 @@ void OptionsDialog::setGraphicSettingsState(bool enabled) { void OptionsDialog::setAudioSettingsState(bool enabled) { _enableAudioSettings = enabled; + _midiPopUpDesc->setEnabled(enabled); _midiPopUp->setEnabled(enabled); + _oplPopUpDesc->setEnabled(enabled); _oplPopUp->setEnabled(enabled); + _outputRatePopUpDesc->setEnabled(enabled); _outputRatePopUp->setEnabled(enabled); } @@ -541,7 +546,8 @@ void OptionsDialog::addGraphicControls(GuiObject *boss, const String &prefix) { const OSystem::GraphicsMode *gm = g_system->getSupportedGraphicsModes(); // The GFX mode popup - _gfxPopUp = new PopUpWidget(boss, prefix + "grModePopup", "Graphics mode:"); + _gfxPopUpDesc = new StaticTextWidget(boss, prefix + "grModePopupDesc", "Graphics mode:"); + _gfxPopUp = new PopUpWidget(boss, prefix + "grModePopup"); _gfxPopUp->appendEntry(""); _gfxPopUp->appendEntry(""); @@ -551,7 +557,8 @@ void OptionsDialog::addGraphicControls(GuiObject *boss, const String &prefix) { } // RenderMode popup - _renderModePopUp = new PopUpWidget(boss, prefix + "grRenderPopup", "Render mode:"); + _renderModePopUpDesc = new StaticTextWidget(boss, prefix + "grRenderPopupDesc", "Render mode:"); + _renderModePopUp = new PopUpWidget(boss, prefix + "grRenderPopup"); _renderModePopUp->appendEntry("", Common::kRenderDefault); _renderModePopUp->appendEntry(""); const Common::RenderModeDescription *rm = Common::g_renderModes; @@ -570,7 +577,8 @@ void OptionsDialog::addGraphicControls(GuiObject *boss, const String &prefix) { void OptionsDialog::addAudioControls(GuiObject *boss, const String &prefix) { // The MIDI mode popup & a label - _midiPopUp = new PopUpWidget(boss, prefix + "auMidiPopup", "Music driver:"); + _midiPopUpDesc = new StaticTextWidget(boss, prefix + "auMidiPopupDesc", "Music driver:"); + _midiPopUp = new PopUpWidget(boss, prefix + "auMidiPopup"); // Populate it const MidiDriverDescription *md = MidiDriver::getAvailableMidiDrivers(); @@ -580,7 +588,8 @@ void OptionsDialog::addAudioControls(GuiObject *boss, const String &prefix) { } // The OPL emulator popup & a label - _oplPopUp = new PopUpWidget(boss, prefix + "auOPLPopup", "AdLib emulator:"); + _oplPopUpDesc = new StaticTextWidget(boss, prefix + "auOPLPopupDesc", "AdLib emulator:"); + _oplPopUp = new PopUpWidget(boss, prefix + "auOPLPopup"); // Populate it const OPL::Config::EmulatorDescription *ed = OPL::Config::getAvailable(); @@ -590,7 +599,8 @@ void OptionsDialog::addAudioControls(GuiObject *boss, const String &prefix) { } // Sample rate settings - _outputRatePopUp = new PopUpWidget(boss, prefix + "auSampleRatePopup", "Output rate:"); + _outputRatePopUpDesc = new StaticTextWidget(boss, prefix + "auSampleRatePopupDesc", "Output rate:"); + _outputRatePopUp = new PopUpWidget(boss, prefix + "auSampleRatePopup"); for (int i = 0; outputRateLabels[i]; i++) { _outputRatePopUp->appendEntry(outputRateLabels[i], outputRateValues[i]); @@ -754,12 +764,14 @@ GlobalOptionsDialog::GlobalOptionsDialog() _curTheme = new StaticTextWidget(tab, "GlobalOptions_Misc.CurTheme", g_gui.theme()->getThemeName()); - _rendererPopUp = new PopUpWidget(tab, "GlobalOptions_Misc.Renderer", "GUI Renderer:"); + _rendererPopUpDesc = new StaticTextWidget(tab, "GlobalOptions_Misc.RendererPopupDesc", "GUI Renderer:"); + _rendererPopUp = new PopUpWidget(tab, "GlobalOptions_Misc.RendererPopup"); for (uint i = 1; i < GUI::ThemeEngine::_rendererModesSize; ++i) _rendererPopUp->appendEntry(GUI::ThemeEngine::_rendererModes[i].name, GUI::ThemeEngine::_rendererModes[i].mode); - _autosavePeriodPopUp = new PopUpWidget(tab, "GlobalOptions_Misc.AutosavePeriod", "Autosave:"); + _autosavePeriodPopUpDesc = new StaticTextWidget(tab, "GlobalOptions_Misc.AutosavePeriodPopupDesc", "Autosave:"); + _autosavePeriodPopUp = new PopUpWidget(tab, "GlobalOptions_Misc.AutosavePeriodPopup"); for (int i = 0; savePeriodLabels[i]; i++) { _autosavePeriodPopUp->appendEntry(savePeriodLabels[i], savePeriodValues[i]); diff --git a/gui/options.h b/gui/options.h index 4edf12a0dff..3a5cd31c178 100644 --- a/gui/options.h +++ b/gui/options.h @@ -91,17 +91,22 @@ private: // Graphics controls // bool _enableGraphicSettings; + StaticTextWidget *_gfxPopUpDesc; PopUpWidget *_gfxPopUp; CheckboxWidget *_fullscreenCheckbox; CheckboxWidget *_aspectCheckbox; + StaticTextWidget *_renderModePopUpDesc; PopUpWidget *_renderModePopUp; // // Audio controls // bool _enableAudioSettings; + StaticTextWidget *_midiPopUpDesc; PopUpWidget *_midiPopUp; + StaticTextWidget *_oplPopUpDesc; PopUpWidget *_oplPopUp; + StaticTextWidget *_outputRatePopUpDesc; PopUpWidget *_outputRatePopUp; // @@ -175,7 +180,9 @@ protected: // Misc controls // StaticTextWidget *_curTheme; + StaticTextWidget *_rendererPopUpDesc; PopUpWidget *_rendererPopUp; + StaticTextWidget *_autosavePeriodPopUpDesc; PopUpWidget *_autosavePeriodPopUp; }; diff --git a/gui/themes/default.inc b/gui/themes/default.inc index 99ac80adc5c..e4df6b05094 100644 --- a/gui/themes/default.inc +++ b/gui/themes/default.inc @@ -329,14 +329,13 @@ " " " " " " -" " -" " " " " " " " " " " " " " " " " " +" " +" " " " +" " +" " +" " " " +" " " " @@ -472,29 +481,42 @@ " " " " " " +" " +" " " " +" " +" " +" " " " +" " +" " +" " " " -" " +" " +" " " " " " " " -" " +" " " " " " " " " " " " " " " " " " " " " " -" " +" " " " @@ -591,7 +610,7 @@ " " " " " " -" " +" " " " @@ -599,7 +618,7 @@ "height='Globals.Line.Height' " "/> " " " -" " +" " " " @@ -607,7 +626,7 @@ "height='Globals.Line.Height' " "/> " " " -" " +" " " " @@ -627,7 +646,7 @@ " " " " " " -" " +" " " " @@ -635,12 +654,22 @@ "height='Globals.Line.Height' " "/> " " " -" " +" " +" " -" " +" " +" " +" " +" " " " @@ -718,35 +747,43 @@ " " " " " " -" " +" " " " " " " " -" " +" " " " " " " " -" " +" " +" " -" " +" " +" " +" " " " +" " " " " " " " -" " +" " " " @@ -754,7 +791,7 @@ "height='Globals.Line.Height' " "/> " " " -" " +" " " " @@ -762,7 +799,7 @@ "height='Globals.Line.Height' " "/> " " " -" " +" " " " @@ -888,20 +925,19 @@ "/> " " " " " -" " +" " +" " " " " " " " -" " +" " " " " " " " " " -" " +" " " " @@ -1005,8 +1041,6 @@ " " " " " " -" " -" " " " " " " " @@ -1019,6 +1053,7 @@ "/> " " " " " " " " " +" " +" " " " +" " +" " +" " " " +" " " " @@ -1144,29 +1189,42 @@ " " " " " " +" " +" " " " +" " +" " +" " " " +" " +" " +" " " " -" " +" " +" " " " " " " " -" " +" " " " " " " " " " -" " +" " " " " " " " -" " +" " " " " " " " -" " +" " " " " " " " -" " +" " " " " " " " " " -" " +" " " " @@ -1246,7 +1301,7 @@ " " -" " +" " " " @@ -1306,12 +1361,26 @@ "height='Globals.Line.Height' " "/> " " " -" " +" " +" " -" " +" " +" " +" " +" " " " @@ -1389,7 +1458,7 @@ " " " " " " -" " +" " " " " " -" " +" " " " " " " " -" " +" " +" " -" " +" " +" " +" " " " +" " " " " " " " @@ -1526,7 +1609,7 @@ " " " " " " -" " +" " " " @@ -1537,7 +1620,7 @@ "type='SmallLabel' " "/> " " " -" " +" " " " @@ -1548,7 +1631,7 @@ "type='SmallLabel' " "/> " " " -" " +" " " " @@ -1559,27 +1642,26 @@ "type='SmallLabel' " "/> " " " -" " +" " " " " " " " -" " +" " +" " " " " " " " -" " +" " " " " + @@ -40,6 +42,7 @@ - - + + + + + + + + @@ -183,29 +196,42 @@ - - - - + + + + + + + + + + + + + - + - + @@ -305,7 +328,7 @@ - + @@ -313,7 +336,7 @@ height = 'Globals.Line.Height' /> - + @@ -321,7 +344,7 @@ height = 'Globals.Line.Height' /> - + @@ -342,7 +365,7 @@ - + @@ -350,12 +373,22 @@ height = 'Globals.Line.Height' /> - - + + + + + + + + @@ -440,36 +473,44 @@ - + - + - - + + + + + + + + - + @@ -477,7 +518,7 @@ height = 'Globals.Line.Height' /> - + @@ -485,7 +526,7 @@ height = 'Globals.Line.Height' /> - + @@ -615,20 +656,19 @@ /> - + + - + - + diff --git a/gui/themes/scummclassic/classic_layout_lowres.stx b/gui/themes/scummclassic/classic_layout_lowres.stx index 89b894de84e..a557b14f656 100644 --- a/gui/themes/scummclassic/classic_layout_lowres.stx +++ b/gui/themes/scummclassic/classic_layout_lowres.stx @@ -29,8 +29,6 @@ - - @@ -48,6 +46,7 @@ - - + + + + + + + + @@ -180,29 +189,42 @@ - - - - + + + + + + + + + + + + + - + - + - + - + - + - + @@ -284,7 +303,7 @@ - + @@ -346,12 +365,26 @@ height = 'Globals.Line.Height' /> - + + - + /> + + + + + @@ -436,7 +469,7 @@ - + - + - - + + + + + + + + @@ -577,7 +624,7 @@ - + @@ -588,7 +635,7 @@ type = 'SmallLabel' /> - + @@ -599,7 +646,7 @@ type = 'SmallLabel' /> - + @@ -610,27 +657,26 @@ type = 'SmallLabel' /> - + - + + - + - - @@ -51,6 +49,7 @@ - - + + + + + + + + @@ -198,29 +207,42 @@ - - - - + + + + + + + + + + + + + + /> - + - + - + - + - + @@ -303,7 +322,7 @@ - + @@ -320,7 +339,7 @@ - + @@ -328,7 +347,7 @@ height = 'Globals.Line.Height' /> - + @@ -336,7 +355,7 @@ height = 'Globals.Line.Height' /> - + @@ -344,7 +363,7 @@ height = 'Globals.Line.Height' /> - + @@ -357,7 +376,7 @@ - + @@ -365,12 +384,22 @@ height = 'Globals.Line.Height' /> - - + + + + + + + + @@ -455,30 +484,38 @@ - + - + - - + + + + + + + + @@ -585,10 +622,10 @@ - + - - + + @@ -599,7 +636,7 @@ type = 'SmallLabel' /> - + @@ -610,7 +647,7 @@ type = 'SmallLabel' /> - + @@ -630,20 +667,19 @@ /> - + + - + - + @@ -750,11 +786,16 @@ - - + + + + + - - @@ -45,7 +43,8 @@ /> - - + + + + + + + + @@ -178,29 +187,42 @@ - - - - + + + + + + + + + + + + + - + - + @@ -282,7 +301,7 @@ - + @@ -299,7 +318,7 @@ - + @@ -307,7 +326,7 @@ height = 'Globals.Line.Height' /> - + @@ -315,7 +334,7 @@ height = 'Globals.Line.Height' /> - + @@ -323,7 +342,7 @@ height = 'Globals.Line.Height' /> - + @@ -336,7 +355,7 @@ - + @@ -344,12 +363,24 @@ height = 'Globals.Line.Height' /> - - + + + + + + + + @@ -434,7 +465,7 @@ - + - + - - + + + + + + + + @@ -568,7 +613,7 @@ - + @@ -579,7 +624,7 @@ type = 'SmallLabel' /> - + @@ -590,7 +635,7 @@ type = 'SmallLabel' /> - + @@ -601,27 +646,26 @@ type = 'SmallLabel' /> - - + + - + + - + getVar("Dialog." + name + ".Align", Graphics::kTextAlignLeft); + _align = g_gui.xmlEval()->getWidgetTextHAlign(name); } void StaticTextWidget::setValue(int value) {