aboutsummaryrefslogtreecommitdiff
path: root/engines/lab/map.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2015-10-08 06:39:59 +0300
committerEugene Sandulenko2015-12-15 00:05:02 +0100
commit01dffc75a1fec635879f176f9a62a539269d9adf (patch)
tree08ae353d6da1067a5a8dfb3d815b620b66dfc720 /engines/lab/map.cpp
parentd565b10384dd771fdae7f8fedb793e87c05c022d (diff)
downloadscummvm-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.cpp29
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;