[Scummvm-git-logs] scummvm master -> cce771c0e1c018edc6c047322f58614425192ee6
dreammaster
dreammaster at scummvm.org
Sun Sep 25 04:35:16 CEST 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
cce771c0e1 XEEN: Display main menu on startup
Commit: cce771c0e1c018edc6c047322f58614425192ee6
https://github.com/scummvm/scummvm/commit/cce771c0e1c018edc6c047322f58614425192ee6
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2016-09-24T22:35:08-04:00
Commit Message:
XEEN: Display main menu on startup
Changed paths:
engines/xeen/worldofxeen/worldofxeen.cpp
engines/xeen/worldofxeen/worldofxeen_menu.cpp
diff --git a/engines/xeen/worldofxeen/worldofxeen.cpp b/engines/xeen/worldofxeen/worldofxeen.cpp
index 19ca2f2..f4d8fdb 100644
--- a/engines/xeen/worldofxeen/worldofxeen.cpp
+++ b/engines/xeen/worldofxeen/worldofxeen.cpp
@@ -23,6 +23,7 @@
#include "xeen/worldofxeen/worldofxeen.h"
#include "xeen/worldofxeen/darkside_cutscenes.h"
#include "xeen/worldofxeen/clouds_cutscenes.h"
+#include "xeen/worldofxeen/worldofxeen_menu.h"
#include "xeen/sound.h"
namespace Xeen {
@@ -35,8 +36,8 @@ WorldOfXeenEngine::WorldOfXeenEngine(OSystem *syst, const XeenGameDescription *g
}
void WorldOfXeenEngine::outerGameLoop() {
- _pendingAction = getGameID() == GType_DarkSide ? WOX_DARKSIDE_INTRO : WOX_CLOUDS_INTRO;
-
+ //_pendingAction = getGameID() == GType_DarkSide ? WOX_DARKSIDE_INTRO : WOX_CLOUDS_INTRO;
+ _pendingAction = WOX_MENU;
while (!shouldQuit() && _pendingAction != WOX_QUIT) {
switch (_pendingAction) {
case WOX_CLOUDS_INTRO:
@@ -66,8 +67,7 @@ void WorldOfXeenEngine::outerGameLoop() {
return;
case WOX_MENU:
- // TODO
- _pendingAction = WOX_PLAY_GAME;
+ WorldOfXeenMenu::show(this);
break;
case WOX_PLAY_GAME:
diff --git a/engines/xeen/worldofxeen/worldofxeen_menu.cpp b/engines/xeen/worldofxeen/worldofxeen_menu.cpp
index 3b8f965..d3f2737 100644
--- a/engines/xeen/worldofxeen/worldofxeen_menu.cpp
+++ b/engines/xeen/worldofxeen/worldofxeen_menu.cpp
@@ -66,10 +66,11 @@ void WorldOfXeenMenu::execute() {
bool firstTime = true, doFade = true;
while (!_vm->shouldQuit()) {
setBackground(doFade);
- events.setCursor(0);
if (firstTime) {
firstTime = false;
+ events.setCursor(0);
+ events.showCursor();
warning("TODO: Read existing save file");
}
@@ -219,11 +220,11 @@ void WorldOptionsMenu::showContents(SpriteResource &title1, bool waitFlag) {
screen._windows[GAME_WINDOW].writeString(Res.OPTIONS_TITLE);
drawButtons(&screen._windows[0]);
+ screen.update();
if (waitFlag) {
- screen._windows[0].update();
-
while (!_vm->shouldQuit() && !_buttonValue && events.timeElapsed() < 3) {
+ events.pollEventsAndWait();
checkEvents(_vm);
}
}
More information about the Scummvm-git-logs
mailing list