diff options
author | Vicent Marti | 2008-09-20 16:07:00 +0000 |
---|---|---|
committer | Vicent Marti | 2008-09-20 16:07:00 +0000 |
commit | f267d42080357b4ab697e04f325fe628a1f62c1f (patch) | |
tree | 47ceffcd4e41ba6b772b3220a59e4dd3836f1bab | |
parent | 1b22a69812672ca6507ef36cd3ed473ddcebc597 (diff) | |
download | scummvm-rg350-f267d42080357b4ab697e04f325fe628a1f62c1f.tar.gz scummvm-rg350-f267d42080357b4ab697e04f325fe628a1f62c1f.tar.bz2 scummvm-rg350-f267d42080357b4ab697e04f325fe628a1f62c1f.zip |
Fixed text alignment in Global ingame menu.
svn-id: r34616
-rw-r--r-- | engines/dialogs.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/engines/dialogs.cpp b/engines/dialogs.cpp index b6d4a6d75e..3ac6abaa5c 100644 --- a/engines/dialogs.cpp +++ b/engines/dialogs.cpp @@ -83,13 +83,16 @@ MainMenuDialog::MainMenuDialog(Engine *engine) _logo->useThemeTransparency(true); _logo->setGfx(g_gui.theme()->getImageSurface(GUI::Theme::kImageLogoSmall)); } else { - new StaticTextWidget(this, "GlobalMenu.Title", "ScummVM"); + StaticTextWidget *title = new StaticTextWidget(this, "GlobalMenu.Title", "ScummVM"); + title->setAlign(GUI::kTextAlignCenter); } #else - new StaticTextWidget(this, "GlobalMenu.Title", "ScummVM"); + StaticTextWidget *title = new StaticTextWidget(this, "GlobalMenu.Title", "ScummVM"); + title->setAlign(GUI::kTextAlignCenter); #endif - new StaticTextWidget(this, "GlobalMenu.Version", gScummVMVersionDate); + StaticTextWidget *version = new StaticTextWidget(this, "GlobalMenu.Version", gScummVMVersionDate); + version->setAlign(GUI::kTextAlignCenter); new GUI::ButtonWidget(this, "GlobalMenu.Resume", "Resume", kPlayCmd, 'P'); @@ -162,8 +165,10 @@ void MainMenuDialog::reflowLayout() { } } else { GUI::StaticTextWidget *title = (StaticTextWidget *)findWidget("GlobalMenu.Title"); - if (!title) - new StaticTextWidget(this, "GlobalMenu.Title", "ScummVM"); + if (!title) { + title = new StaticTextWidget(this, "GlobalMenu.Title", "ScummVM"); + title->setAlign(GUI::kTextAlignCenter); + } if (_logo) { removeWidget(_logo); |