aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2017-10-15 19:02:53 +0200
committerThierry Crozat2018-01-23 02:15:34 +0000
commit572f205e679325e9dbbf2f6589588287ccf2d215 (patch)
treeffcb0595d11f120859b806eab644f4def1eec675
parentf23baf902f57762ae43cab17ff3ace582e23a99d (diff)
downloadscummvm-rg350-572f205e679325e9dbbf2f6589588287ccf2d215.tar.gz
scummvm-rg350-572f205e679325e9dbbf2f6589588287ccf2d215.tar.bz2
scummvm-rg350-572f205e679325e9dbbf2f6589588287ccf2d215.zip
SUPERNOVA: Extract the strings from ShipCockpit
-rw-r--r--devtools/create_supernova/gametext.h54
-rw-r--r--engines/supernova/msn_def.h6
-rw-r--r--engines/supernova/rooms.cpp26
3 files changed, 72 insertions, 14 deletions
diff --git a/devtools/create_supernova/gametext.h b/devtools/create_supernova/gametext.h
index 006a1a235b..2c30a79d7d 100644
--- a/devtools/create_supernova/gametext.h
+++ b/devtools/create_supernova/gametext.h
@@ -444,6 +444,60 @@ const char *gameText[] = {
"Beim Aufprall des Raumschiffs|mu\341t du mit dem Kopf aufgeschlagen|und bewu\341tlos geworden sein.", // kStringShipSleepCabin15
"Was steht dir jetzt wohl wirklich bevor?", // kStringShipSleepCabin16
// 340
+ "Geschwindigkeit: ",
+ "8000 hpm",
+ "0 hpm",
+ "Ziel: Arsano 3",
+ "Entfernung: ",
+ //345
+ " Lichtjahre",
+ "Dauer der Reise bei momentaner Geschwindigkeit:",
+ " Tage",
+ "Vergi\341 nicht, du bist nur der|Schiffskoch und hast keine Ahnung,|wie man ein Raumschiff fliegt.",
+ "Achtung: Triebwerke funktionsunf\204hig",
+ //350
+ "Energievorrat ersch\224pft",
+ "Notstromversorgung aktiv",
+ "Was?! Keiner im Cockpit!|Die sind wohl verr\201ckt!",
+ "",
+ "",
+ //355
+ "",
+ "",
+ "",
+ "",
+ "",
+ //360
+ "",
+ "",
+ "",
+ "",
+ "",
+ //365
+ "",
+ "",
+ "",
+ "",
+ "",
+ //370
+ "",
+ "",
+ "",
+ "",
+ "",
+ //375
+ "",
+ "",
+ "",
+ "",
+ "",
+ //380
+ "",
+ "",
+ "",
+ "",
+ "",
+ //385
NULL
};
diff --git a/engines/supernova/msn_def.h b/engines/supernova/msn_def.h
index 1e2cdcf70c..20953c054a 100644
--- a/engines/supernova/msn_def.h
+++ b/engines/supernova/msn_def.h
@@ -478,7 +478,11 @@ enum StringID {
//325
kStringShipSleepCabin2, kStringShipSleepCabin3, kStringShipSleepCabin4, kStringShipSleepCabin5, kStringShipSleepCabin6,
kStringShipSleepCabin7, kStringShipSleepCabin8, kStringShipSleepCabin9, kStringShipSleepCabin10, kStringShipSleepCabin11,
- kStringShipSleepCabin12, kStringShipSleepCabin13, kStringShipSleepCabin14, kStringShipSleepCabin15, kStringShipSleepCabin16
+ kStringShipSleepCabin12, kStringShipSleepCabin13, kStringShipSleepCabin14, kStringShipSleepCabin15, kStringShipSleepCabin16,
+ kStringShipCockpit1, kStringShipCockpit2, kStringShipCockpit3, kStringShipCockpit4, kStringShipCockpit5,
+ kStringShipCockpit6, kStringShipCockpit7, kStringShipCockpit8, kStringShipCockpit9, kStringShipCockpit10,
+ // 350
+ kStringShipCockpit11, kStringShipCockpit12, kStringShipCockpit13
};
static StringID guiCommands[] = {
diff --git a/engines/supernova/rooms.cpp b/engines/supernova/rooms.cpp
index dc3035c4f5..c3cd0b92f3 100644
--- a/engines/supernova/rooms.cpp
+++ b/engines/supernova/rooms.cpp
@@ -751,29 +751,29 @@ bool ShipCockpit::interact(Action verb, Object &obj1, Object &obj2) {
char c[2] = {0, 0};
_gm->_guiEnabled = false;
_vm->renderBox(0, 0, 320, 200, kColorBlack);
- _vm->renderText("Geschwindigkeit: ", 50, 50, kColorLightYellow);
+ _vm->renderText(kStringShipCockpit1, 50, 50, kColorLightYellow);
if (_gm->_state._arrivalDaysLeft)
- _vm->renderText("8000 hpm");
+ _vm->renderText(kStringShipCockpit2);
else
- _vm->renderText("0 hpm");
- _vm->renderText("Ziel: Arsano 3", 50, 70, kColorLightYellow);
- _vm->renderText("Entfernung: ", 50, 90, kColorLightYellow);
+ _vm->renderText(kStringShipCockpit3);
+ _vm->renderText(kStringShipCockpit4, 50, 70, kColorLightYellow);
+ _vm->renderText(kStringShipCockpit5, 50, 90, kColorLightYellow);
_vm->renderText(Common::String::format("%d", _gm->_state._arrivalDaysLeft / 400).c_str());
_vm->renderText(",");
c[0] = (_gm->_state._arrivalDaysLeft / 40) % 10 + '0';
_vm->renderText(c);
c[0] = (_gm->_state._arrivalDaysLeft / 4) % 10 + '0';
_vm->renderText(c);
- _vm->renderText(" Lichtjahre");
- _vm->renderText("Dauer der Reise bei momentaner Geschwindigkeit:", 50, 110, kColorLightYellow);
+ _vm->renderText(kStringShipCockpit6);
+ _vm->renderText(kStringShipCockpit7, 50, 110, kColorLightYellow);
_vm->renderText(Common::String::format("%d", _gm->_state._arrivalDaysLeft).c_str(),
50, 120, kColorLightYellow);
- _vm->renderText(" Tage");
+ _vm->renderText(kStringShipCockpit8);
_gm->getInput();
_gm->_guiEnabled = true;
} else if ((verb == ACTION_USE) && (obj1._id == INSTRUMENTS))
- _vm->renderMessage("Vergi\341 nicht, du bist nur der|Schiffskoch und hast keine Ahnung,|wie man ein Raumschiff fliegt.");
+ _vm->renderMessage(kStringShipCockpit9);
else
return false;
@@ -788,7 +788,7 @@ void ShipCockpit::animation() {
_color = kColorLightYellow;
_gm->setAnimationTimer(10);
}
- _vm->renderText("Achtung: Triebwerke funktionsunf\204hig", 50, 145, _color);
+ _vm->renderText(kStringShipCockpit10, 50, 145, _color);
} else {
if (isSectionVisible(21)) {
_gm->drawImage(_gm->invertSection(21));
@@ -800,8 +800,8 @@ void ShipCockpit::animation() {
}
if (_gm->_state._powerOff) {
if (!_gm->_guiEnabled) {
- _vm->renderText("Energievorrat ersch\224pft", 97, 165, _color);
- _vm->renderText("Notstromversorgung aktiv", 97, 175, _color);
+ _vm->renderText(kStringShipCockpit11, 97, 165, _color);
+ _vm->renderText(kStringShipCockpit12, 97, 175, _color);
} else {
if (isSectionVisible(21))
_gm->drawImage(22);
@@ -813,7 +813,7 @@ void ShipCockpit::animation() {
void ShipCockpit::onEntrance() {
if (!hasSeen())
- _vm->renderMessage("Was?! Keiner im Cockpit!|Die sind wohl verr\201ckt!");
+ _vm->renderMessage(kStringShipCockpit13);
setRoomSeen(true);
}