mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-07 11:27:44 +00:00
HUGO: Add splash screen in H2 and H3 Win
svn-id: r54902
This commit is contained in:
parent
0082f8ec8b
commit
a90fdce46d
@ -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
|
||||
|
@ -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() {
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user