aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/pregob/onceupon/onceupon.cpp
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/onceupon/onceupon.cpp
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/onceupon/onceupon.cpp')
-rw-r--r--engines/gob/pregob/onceupon/onceupon.cpp22
1 files changed, 22 insertions, 0 deletions
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".