diff options
author | Paweł Kołodziejski | 2004-11-19 19:50:22 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2004-11-19 19:50:22 +0000 |
commit | 20e9cf6f20dde6aed31b83698940786a783c2125 (patch) | |
tree | 51be5f26a2a58c008c4fa8a11f4941b1ed75a3e9 /sword1/sword1.cpp | |
parent | c4a8b3c8b54022664fe231253f8314f0557a958f (diff) | |
download | scummvm-rg350-20e9cf6f20dde6aed31b83698940786a783c2125.tar.gz scummvm-rg350-20e9cf6f20dde6aed31b83698940786a783c2125.tar.bz2 scummvm-rg350-20e9cf6f20dde6aed31b83698940786a783c2125.zip |
added walkthrough
svn-id: r15835
Diffstat (limited to 'sword1/sword1.cpp')
-rw-r--r-- | sword1/sword1.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sword1/sword1.cpp b/sword1/sword1.cpp index 1e56aa0944..f7db821c6a 100644 --- a/sword1/sword1.cpp +++ b/sword1/sword1.cpp @@ -109,6 +109,8 @@ SwordEngine::SwordEngine(GameDetector *detector, OSystem *syst) if (!_mixer->isReady()) warning("Sound initialization failed"); + + _walkthroughDialog->setGameName(detector->_game.name); } SwordEngine::~SwordEngine() { @@ -121,6 +123,8 @@ SwordEngine::~SwordEngine() { delete _mouse; delete _objectMan; delete _resMan; + + _walkthroughDialog->destroy(); } void SwordEngine::initialize(void) { @@ -198,6 +202,8 @@ void SwordEngine::initialize(void) { _objectMan->initialize(); _mouse->initialize(); _control = new Control(_saveFileMan, _resMan, _objectMan, _system, _mouse, _sound, _music, getSavePath()); + + _walkthroughDialog->create(); } void SwordEngine::reinitialize(void) { @@ -1283,6 +1289,8 @@ void SwordEngine::delay(uint amount) { //copied and mutilated from sky.cpp _keyPressed = 8; else _keyPressed = (uint8)event.kbd.ascii; + if (event.kbd.keycode == 'w') + _walkthroughDialog->runModal(); break; case OSystem::EVENT_MOUSEMOVE: _mouseX = event.mouse.x; |