From a90fdce46d4819e9153f12899cc0f2216a298d86 Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Mon, 13 Dec 2010 21:08:52 +0000 Subject: HUGO: Add splash screen in H2 and H3 Win svn-id: r54902 --- engines/hugo/hugo.cpp | 3 +-- engines/hugo/intro_v2w.cpp | 6 ++++++ engines/hugo/intro_v3w.cpp | 7 +++++++ 3 files changed, 14 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp index 9ec3887cfa..152e755cab 100644 --- a/engines/hugo/hugo.cpp +++ b/engines/hugo/hugo.cpp @@ -258,7 +258,6 @@ Common::Error HugoEngine::run() { /* Use Windows-looking mouse cursor */ CursorMan.replaceCursorPalette(stdMouseCursorPalette, 1, ARRAYSIZE(stdMouseCursorPalette) / 4); CursorMan.replaceCursor(stdMouseCursor, stdMousrCursorWidth, stdMousrCursorHeight, 1, 1, 0); - CursorMan.showMouse(true); initStatus(); // Initialize game status initConfig(INSTALL); // Initialize user's config @@ -347,11 +346,11 @@ void HugoEngine::runMachine() { switch (gameStatus.viewState) { case V_IDLE: // Not processing state machine + CursorMan.showMouse(false); _intro->preNewGame(); // Any processing before New Game selected break; case V_INTROINIT: // Initialization before intro begins _intro->introInit(); - CursorMan.showMouse(false); gameStatus.viewState = V_INTRO; break; case V_INTRO: // Do any game-dependant preamble diff --git a/engines/hugo/intro_v2w.cpp b/engines/hugo/intro_v2w.cpp index 414846bfc7..77f8eaa83c 100644 --- a/engines/hugo/intro_v2w.cpp +++ b/engines/hugo/intro_v2w.cpp @@ -34,6 +34,7 @@ #include "hugo/hugo.h" #include "hugo/intro.h" +#include "hugo/display.h" namespace Hugo { @@ -48,6 +49,11 @@ void intro_v2w::preNewGame() { } void intro_v2w::introInit() { + _vm->_file->readBackground(_vm->_numScreens - 1); // display splash screen + + _vm->_screen->displayBackground(); + g_system->updateScreen(); + g_system->delayMillis(3000); } bool intro_v2w::introPlay() { diff --git a/engines/hugo/intro_v3w.cpp b/engines/hugo/intro_v3w.cpp index 06fe1814fe..0dcfac0b6e 100644 --- a/engines/hugo/intro_v3w.cpp +++ b/engines/hugo/intro_v3w.cpp @@ -53,6 +53,13 @@ void intro_v3w::preNewGame() { * Hugo 3 - show map and set up for introPlay() */ void intro_v3w::introInit() { + + _vm->_file->readBackground(_vm->_numScreens - 1); // display splash screen + + _vm->_screen->displayBackground(); + g_system->updateScreen(); + g_system->delayMillis(3000); + //#if STORY _vm->_file->readBackground(22); // display screen MAP_3w _vm->_screen->displayBackground(); -- cgit v1.2.3