From 20e9cf6f20dde6aed31b83698940786a783c2125 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Fri, 19 Nov 2004 19:50:22 +0000 Subject: added walkthrough svn-id: r15835 --- sky/sky.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sky') diff --git a/sky/sky.cpp b/sky/sky.cpp index 072c958525..e43a6bca29 100644 --- a/sky/sky.cpp +++ b/sky/sky.cpp @@ -116,6 +116,8 @@ SystemVars SkyEngine::_systemVars = {0, 0, 0, 0, 4316, 0, 0, false, false }; SkyEngine::SkyEngine(GameDetector *detector, OSystem *syst) : Engine(syst), _fastMode(0) { + _walkthroughDialog->setGameName(detector->_game.name); + _walkthroughDialog->create(); } SkyEngine::~SkyEngine() { @@ -127,6 +129,8 @@ SkyEngine::~SkyEngine() { delete _skyMouse; delete _skyScreen; delete _debugger; + + _walkthroughDialog->destroy(); } void SkyEngine::errorString(const char *buf1, char *buf2) { @@ -461,6 +465,9 @@ void SkyEngine::delay(uint amount) { if (event.kbd.keycode == 'd') { _debugger->attach(); } + if (event.kbd.keycode == 'w') { + _walkthroughDialog->runModal(); + } } // Make sure backspace works right (this fixes a small issue on OS X) -- cgit v1.2.3