aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
authoruruk2014-03-05 18:28:15 +0100
committeruruk2014-03-05 18:28:15 +0100
commitce72606616b7b57c7ba5e1e471e9370e2af747aa (patch)
treed83193d52e311ac5c7d5e5fbdddbcc6a5f6009de /engines/avalanche
parent7808af7cc53e7542b554caeea63f7bfed68abdef (diff)
downloadscummvm-rg350-ce72606616b7b57c7ba5e1e471e9370e2af747aa.tar.gz
scummvm-rg350-ce72606616b7b57c7ba5e1e471e9370e2af747aa.tar.bz2
scummvm-rg350-ce72606616b7b57c7ba5e1e471e9370e2af747aa.zip
AVALANCHE: Implement MainMenu::centre().
Also rework connected functions.
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/graphics.cpp4
-rw-r--r--engines/avalanche/graphics.h2
-rw-r--r--engines/avalanche/mainmenu.cpp11
3 files changed, 9 insertions, 8 deletions
diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp
index e1dd8e91cd..553556f8e0 100644
--- a/engines/avalanche/graphics.cpp
+++ b/engines/avalanche/graphics.cpp
@@ -863,8 +863,8 @@ void GraphicManager::menuLoadPictures() {
file.close();
}
-void GraphicManager::menuDrawBigText(FontType font, uint16 x, uint16 y, Common::String text, bool notted) {
- drawBigText(_menu, text, font, 14, x, y, kColorBlack);
+void GraphicManager::menuDrawBigText(FontType font, uint16 x, uint16 y, Common::String text, Color color) {
+ drawBigText(_menu, text, font, 14, x, y, color);
}
/**
diff --git a/engines/avalanche/graphics.h b/engines/avalanche/graphics.h
index 3e8224bb22..270e04da85 100644
--- a/engines/avalanche/graphics.h
+++ b/engines/avalanche/graphics.h
@@ -124,7 +124,7 @@ public:
void menuInitialize();
void menuClear();
void menuLoadPictures();
- void menuDrawBigText(FontType font, uint16 x, uint16 y, Common::String text, bool notted);
+ void menuDrawBigText(FontType font, uint16 x, uint16 y, Common::String text, Color color);
void clearAlso();
void clearTextBar();
diff --git a/engines/avalanche/mainmenu.cpp b/engines/avalanche/mainmenu.cpp
index 058e1cf347..0f64527305 100644
--- a/engines/avalanche/mainmenu.cpp
+++ b/engines/avalanche/mainmenu.cpp
@@ -48,8 +48,8 @@ void MainMenu::run() {
option(4, "View the documentation.");
option(5, "Registration info.");
option(6, "Exit back to DOS.");
- centre(275, _registrant);
- centre(303, "Make your choice, or wait for the demo.");
+ centre(274, _registrant);
+ centre(301, "Make your choice, or wait for the demo.");
_vm->_graphics->menuRefreshScreen();
@@ -67,16 +67,17 @@ void MainMenu::loadFont() {
}
void MainMenu::loadRegiInfo() {
+ _registrant = "(Unregistered evaluation copy.)";
warning("STUB: MainMenu::loadRegiInfo()");
}
void MainMenu::option(byte which, Common::String what) {
- _vm->_graphics->menuDrawBigText(_font, 127, 39 + which * 33, Common::String(which + 48) + ')', true);
- _vm->_graphics->menuDrawBigText(_font, 191, 39 + which * 33, what, true);
+ _vm->_graphics->menuDrawBigText(_font, 127, 39 + which * 33, Common::String(which + 48) + ')', kColorBlack);
+ _vm->_graphics->menuDrawBigText(_font, 191, 39 + which * 33, what, kColorBlack);
}
void MainMenu::centre(int16 y, Common::String text) {
- warning("STUB: MainMenu::centre()");
+ _vm->_graphics->menuDrawBigText(_font, 320 - text.size() * 8, y, text, kColorLightgray);
}
void MainMenu::wait() {