aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/display.cpp
diff options
context:
space:
mode:
authorArnaud Boutonné2010-09-27 20:24:36 +0000
committerArnaud Boutonné2010-09-27 20:24:36 +0000
commit3db60d9e441cbf48701d0a0565ac87f6c69b1d15 (patch)
tree64e3bfcc5723dadddfa226de8944a5a952e4fc66 /engines/hugo/display.cpp
parent2e57bcad525cb00d1866b09c2ca2a34877c0fa1f (diff)
downloadscummvm-rg350-3db60d9e441cbf48701d0a0565ac87f6c69b1d15.tar.gz
scummvm-rg350-3db60d9e441cbf48701d0a0565ac87f6c69b1d15.tar.bz2
scummvm-rg350-3db60d9e441cbf48701d0a0565ac87f6c69b1d15.zip
HUGO: Add F3 behavior (recall), little cleanup
- Add F3 behavior - Move drawStatusText() to Screen svn-id: r52920
Diffstat (limited to 'engines/hugo/display.cpp')
-rw-r--r--engines/hugo/display.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/engines/hugo/display.cpp b/engines/hugo/display.cpp
index abc1e14ea7..4493c756b3 100644
--- a/engines/hugo/display.cpp
+++ b/engines/hugo/display.cpp
@@ -410,6 +410,25 @@ void Screen::userHelp() {
"ESC - Return to game");
}
+void Screen::drawStatusText() {
+ debugC(4, kDebugDisplay, "drawStatusText");
+
+ loadFont(U_FONT8);
+ uint16 sdx = stringLength(_vm._statusLine);
+ uint16 sdy = fontHeight() + 1; // + 1 for shadow
+ uint16 posX = 0;
+ uint16 posY = YPIX - sdy;
+
+ // Display the string and add rect to display list
+ writeStr(posX, posY, _vm._statusLine, _TLIGHTYELLOW);
+ displayList(D_ADD, posX, posY, sdx, sdy);
+
+ sdx = stringLength(_vm._scoreLine);
+ posY = 0;
+ writeStr(posX, posY, _vm._scoreLine, _TCYAN);
+ displayList(D_ADD, posX, posY, sdx, sdy);
+}
+
void Screen::drawShape(int x, int y, int color1, int color2) {
#define shapeSize 24