diff options
author | Travis Howell | 2009-03-10 00:26:40 +0000 |
---|---|---|
committer | Travis Howell | 2009-03-10 00:26:40 +0000 |
commit | 2809c23fc9f70ce6542dcd2d1ee713d67965754c (patch) | |
tree | 8175022aa6c3831de70eb28c89710ab7fd8e98e0 /engines/scumm/scumm.cpp | |
parent | 940f19dc232b61092cc60f118053a4ad1551bee4 (diff) | |
download | scummvm-rg350-2809c23fc9f70ce6542dcd2d1ee713d67965754c.tar.gz scummvm-rg350-2809c23fc9f70ce6542dcd2d1ee713d67965754c.tar.bz2 scummvm-rg350-2809c23fc9f70ce6542dcd2d1ee713d67965754c.zip |
Add snap scroll option from original games (SCUMM3-5), and enable for earlier games too.
svn-id: r39283
Diffstat (limited to 'engines/scumm/scumm.cpp')
-rw-r--r-- | engines/scumm/scumm.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index 15fee4115c..70785c5102 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -108,7 +108,7 @@ ScummEngine::ScummEngine(OSystem *syst, const DetectorResult &dr) _language(dr.language), _debugger(0), _currentScript(0xFF), // Let debug() work on init stage - _pauseDialog(0), _scummMenuDialog(0), _versionDialog(0) { + _messageDialog(0), _pauseDialog(0), _scummMenuDialog(0), _versionDialog(0) { if (_game.platform == Common::kPlatformNES) { _gdi = new GdiNES(this); @@ -250,6 +250,7 @@ ScummEngine::ScummEngine(OSystem *syst, const DetectorResult &dr) _switchRoomEffect = 0; _doEffect = false; + _snapScroll = false; _currentLights = 0; _shakeEnabled = false; _shakeFrame = 0; @@ -559,6 +560,7 @@ ScummEngine::~ScummEngine() { delete _2byteFontPtr; delete _charset; + delete _messageDialog; delete _pauseDialog; delete _scummMenuDialog; delete _versionDialog; @@ -2306,6 +2308,12 @@ int ScummEngine_v7::runDialog(Dialog &dialog) { } #endif +void ScummEngine::messageDialog(const char *message) { + if (!_messageDialog) + _messageDialog = new InfoDialog(this, message); + runDialog(*_messageDialog); +} + void ScummEngine::pauseDialog() { if (!_pauseDialog) _pauseDialog = new PauseDialog(this, 4); |