diff options
author | Max Horn | 2002-09-19 21:45:56 +0000 |
---|---|---|
committer | Max Horn | 2002-09-19 21:45:56 +0000 |
commit | 993974602222e979cfa0ab3ed475ba08cd5f3b2f (patch) | |
tree | 5a6bb78d66c2f5b9f3fcd492cb6951ab9ec2d85c /scumm/dialogs.cpp | |
parent | 859ef578dc6faa881cab115fd0059a88b6a5899a (diff) | |
download | scummvm-rg350-993974602222e979cfa0ab3ed475ba08cd5f3b2f.tar.gz scummvm-rg350-993974602222e979cfa0ab3ed475ba08cd5f3b2f.tar.bz2 scummvm-rg350-993974602222e979cfa0ab3ed475ba08cd5f3b2f.zip |
removed even more scumm dependencies from NewGUI; fixed some redraw issues (this might help the inventory-display issue in The Dig, and definitly fixes the 'vanishing volcanoe' in the FOA extro)
svn-id: r4974
Diffstat (limited to 'scumm/dialogs.cpp')
-rw-r--r-- | scumm/dialogs.cpp | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/scumm/dialogs.cpp b/scumm/dialogs.cpp index 3777fd45fc..c1292e3734 100644 --- a/scumm/dialogs.cpp +++ b/scumm/dialogs.cpp @@ -146,7 +146,7 @@ void ScummDialog::addResText(int x, int y, int w, int h, int resID) const char *str = queryResString(resID); if (!str) str = "Dummy!"; - new StaticTextWidget(this, x, y, w, h, str, kTextAlignLeft); + new StaticTextWidget(this, x, y, w, h, str, kTextAlignCenter); } @@ -241,21 +241,19 @@ void SaveLoadDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat case kListItemChangedCmd: case kSaveCmd: if (_savegameList->getSelected() >= 1 && !_savegameList->getSelectedString().isEmpty()) { - Scumm *s = _scumm; - s->_saveLoadSlot = _savegameList->getSelected(); - s->_saveLoadCompatible = false; - s->_saveLoadFlag = 1; // 1 for save, I assume (Painelf) - strcpy(s->_saveLoadName, _savegameList->getSelectedString().c_str()); + _scumm->_saveLoadSlot = _savegameList->getSelected(); + _scumm->_saveLoadCompatible = false; + _scumm->_saveLoadFlag = 1; // 1 for save, I assume (Painelf) + strcpy(_scumm->_saveLoadName, _savegameList->getSelectedString().c_str()); close(); } break; case kListItemDoubleClickedCmd: case kLoadCmd: if (_savegameList->getSelected() >= 0 && !_savegameList->getSelectedString().isEmpty()) { - Scumm *s = _scumm; - s->_saveLoadSlot = _savegameList->getSelected(); - s->_saveLoadCompatible = false; - s->_saveLoadFlag = 2; // 2 for load. Magic number anyone? + _scumm->_saveLoadSlot = _savegameList->getSelected(); + _scumm->_saveLoadCompatible = false; + _scumm->_saveLoadFlag = 2; // 2 for load. Magic number anyone? close(); } break; @@ -263,7 +261,7 @@ void SaveLoadDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat close(); break; case kOptionsCmd: - _gui->optionsDialog(); + _scumm->optionsDialog(); break; case kQuitCmd: { _scumm->_system->quit(); @@ -321,7 +319,6 @@ void OptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data } } - #pragma mark - AboutDialog::AboutDialog(NewGui *gui, Scumm *scumm) @@ -335,12 +332,16 @@ AboutDialog::AboutDialog(NewGui *gui, Scumm *scumm) new StaticTextWidget(this, 10, 78, 240, 16, "Simon the Sorcerer (c) Adventuresoft", kTextAlignCenter); } +#pragma mark - + PauseDialog::PauseDialog(NewGui *gui, Scumm *scumm) - : ScummDialog(gui, scumm, 50, 80, 220, 16) + : ScummDialog(gui, scumm, 35, 80, 250, 16) { - addResText(4, 4, 220, 16, 10); + addResText(4, 4, 250-8, 16, 10); } +#pragma mark - + SoundDialog::SoundDialog(NewGui *gui, Scumm *scumm) : ScummDialog(gui, scumm, 30, 20, 260, 110) { |