diff options
author | Filippos Karapetis | 2015-10-08 06:39:59 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2015-12-15 00:05:02 +0100 |
commit | 01dffc75a1fec635879f176f9a62a539269d9adf (patch) | |
tree | 08ae353d6da1067a5a8dfb3d815b620b66dfc720 /engines/lab/map.cpp | |
parent | d565b10384dd771fdae7f8fedb793e87c05c022d (diff) | |
download | scummvm-rg350-01dffc75a1fec635879f176f9a62a539269d9adf.tar.gz scummvm-rg350-01dffc75a1fec635879f176f9a62a539269d9adf.tar.bz2 scummvm-rg350-01dffc75a1fec635879f176f9a62a539269d9adf.zip |
LAB: Move static text loading to the Resource class
Diffstat (limited to 'engines/lab/map.cpp')
-rw-r--r-- | engines/lab/map.cpp | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/engines/lab/map.cpp b/engines/lab/map.cpp index 34eb018f94..06a0ac18d7 100644 --- a/engines/lab/map.cpp +++ b/engines/lab/map.cpp @@ -616,47 +616,42 @@ static void drawMap(uint16 CurRoom, uint16 CurMsg, uint16 Floor, bool fadeout, b if (Floor == LOWERFLOOR) { if (onFloor(SURMAZEFLOOR)) drawImage(Maze, mapScaleX(538), mapScaleY(277)); - } - - else if (Floor == MIDDLEFLOOR) { + } else if (Floor == MIDDLEFLOOR) { if (onFloor(CARNIVAL)) drawImage(Maze, mapScaleX(358), mapScaleY(72)); if (onFloor(MEDMAZEFLOOR)) drawImage(Maze, mapScaleX(557), mapScaleY(325)); - } - - else if (Floor == UPPERFLOOR) { + } else if (Floor == UPPERFLOOR) { if (onFloor(HEDGEMAZEFLOOR)) drawImage(HugeMaze, mapScaleX(524), mapScaleY(97)); - } - - else if (Floor == SURMAZEFLOOR) { - flowText(MsgFont, 0, 7, 0, true, true, true, true, mapScaleX(360), 0, mapScaleX(660), mapScaleY(450), SURMAZEMSG); + } else if (Floor == SURMAZEFLOOR) { + sptr = (char *)g_resource->getStaticText(kTextSurmazeMessage).c_str(); + flowText(MsgFont, 0, 7, 0, true, true, true, true, mapScaleX(360), 0, mapScaleX(660), mapScaleY(450), sptr); } switch (Floor) { case LOWERFLOOR: - sptr = LOWERFLOORS; + sptr = (char *)g_resource->getStaticText(kTextLowerFloor).c_str(); break; case MIDDLEFLOOR: - sptr = MIDDLEFLOORS; + sptr = (char *)g_resource->getStaticText(kTextMiddleFloor).c_str(); break; case UPPERFLOOR: - sptr = UPPERFLOORS; + sptr = (char *)g_resource->getStaticText(kTextUpperFloor).c_str(); break; case MEDMAZEFLOOR: - sptr = MEDMAZEFLOORS; + sptr = (char *)g_resource->getStaticText(kTextMedMazeFloor).c_str(); break; case HEDGEMAZEFLOOR: - sptr = HEDGEMAZEFLOORS; + sptr = (char *)g_resource->getStaticText(kTextHedgeMazeFloor).c_str(); break; case SURMAZEFLOOR: - sptr = SURMAZEFLOORS; + sptr = (char *)g_resource->getStaticText(kTextSurMazeFloor).c_str(); break; case CARNIVAL: - sptr = CARNIVALFLOOR; + sptr = (char *)g_resource->getStaticText(kTextCarnivalFloor).c_str(); break; default: sptr = NULL; |