From 3db60d9e441cbf48701d0a0565ac87f6c69b1d15 Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Mon, 27 Sep 2010 20:24:36 +0000 Subject: HUGO: Add F3 behavior (recall), little cleanup - Add F3 behavior - Move drawStatusText() to Screen svn-id: r52920 --- engines/hugo/display.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'engines/hugo/display.cpp') 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 -- cgit v1.2.3