aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/pregob
diff options
context:
space:
mode:
authorSven Hesse2012-06-30 02:35:26 +0200
committerSven Hesse2012-07-30 01:44:43 +0200
commit2f3aaf0e07a7309b2ba74c7e888b03c24534d4d0 (patch)
treec00dd27b7e84c2b45c3b712a44e8a8daca9e5f87 /engines/gob/pregob
parent60cebba95ca1d30f2926acd2d415d09c75e2bd42 (diff)
downloadscummvm-rg350-2f3aaf0e07a7309b2ba74c7e888b03c24534d4d0.tar.gz
scummvm-rg350-2f3aaf0e07a7309b2ba74c7e888b03c24534d4d0.tar.bz2
scummvm-rg350-2f3aaf0e07a7309b2ba74c7e888b03c24534d4d0.zip
GOB: Show the Once Upon A Time fairytale quote
Diffstat (limited to 'engines/gob/pregob')
-rw-r--r--engines/gob/pregob/onceupon/abracadabra.cpp4
-rw-r--r--engines/gob/pregob/onceupon/babayaga.cpp4
-rw-r--r--engines/gob/pregob/onceupon/onceupon.cpp22
-rw-r--r--engines/gob/pregob/onceupon/onceupon.h1
4 files changed, 31 insertions, 0 deletions
diff --git a/engines/gob/pregob/onceupon/abracadabra.cpp b/engines/gob/pregob/onceupon/abracadabra.cpp
index 27845cd1d5..abf9fdce61 100644
--- a/engines/gob/pregob/onceupon/abracadabra.cpp
+++ b/engines/gob/pregob/onceupon/abracadabra.cpp
@@ -65,6 +65,10 @@ void Abracadabra::run() {
if (_vm->shouldQuit())
return;
+ showQuote();
+ if (_vm->shouldQuit())
+ return;
+
showTitle();
}
diff --git a/engines/gob/pregob/onceupon/babayaga.cpp b/engines/gob/pregob/onceupon/babayaga.cpp
index 1dbda8227b..9bca0e27d0 100644
--- a/engines/gob/pregob/onceupon/babayaga.cpp
+++ b/engines/gob/pregob/onceupon/babayaga.cpp
@@ -65,6 +65,10 @@ void BabaYaga::run() {
if (_vm->shouldQuit())
return;
+ showQuote();
+ if (_vm->shouldQuit())
+ return;
+
showTitle();
}
diff --git a/engines/gob/pregob/onceupon/onceupon.cpp b/engines/gob/pregob/onceupon/onceupon.cpp
index 6f5d95b10c..73322658de 100644
--- a/engines/gob/pregob/onceupon/onceupon.cpp
+++ b/engines/gob/pregob/onceupon/onceupon.cpp
@@ -506,6 +506,28 @@ void OnceUpon::showWait() {
fadeIn();
}
+void OnceUpon::showQuote() {
+ // Show the quote about fairytales
+
+ fadeOut();
+ clearScreen();
+ setGamePalette(11);
+
+ static const Font *fonts[3] = { _plettre, _glettre, _plettre };
+
+ TXTFile *quote = loadTXT(getLocFile("gene.tx"), TXTFile::kFormatStringPositionColorFont);
+ quote->draw(*_vm->_draw->_backSurface, fonts, ARRAYSIZE(fonts));
+ delete quote;
+
+ _vm->_draw->forceBlit();
+
+ fadeIn();
+
+ waitInput();
+
+ fadeOut();
+}
+
void OnceUpon::showTitle() {
// Show the Once Upon A Time title animation
// NOTE: This is currently only a mock-up. The real animation is in "ville.seq".
diff --git a/engines/gob/pregob/onceupon/onceupon.h b/engines/gob/pregob/onceupon/onceupon.h
index 99fb51431a..97f7e6b77e 100644
--- a/engines/gob/pregob/onceupon/onceupon.h
+++ b/engines/gob/pregob/onceupon/onceupon.h
@@ -50,6 +50,7 @@ protected:
bool doCopyProtection(const uint8 colors[7], const uint8 shapes[7 * 20], const uint8 obfuscate[4]);
void showWait();
+ void showQuote();
void showTitle();