mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
TITANIC: Add further strings to create_titanic tool
This commit is contained in:
parent
b4ee0ec823
commit
a929c5aabc
@ -615,7 +615,7 @@ static const BedheadEntry OFF_RESTING_D_WRONG[1] = {
|
||||
{ "Any", "Any", "Any", "ClosedWrong", 59, 70 }
|
||||
};
|
||||
|
||||
static const char *const STRINGS_EN[141] = {
|
||||
static const char *const STRINGS_EN[151] = {
|
||||
"",
|
||||
"You are standing outside the Pellerator.",
|
||||
"I'm sorry, you cannot enter this pellerator at present as a bot is in the way.",
|
||||
@ -761,10 +761,20 @@ static const char *const STRINGS_EN[141] = {
|
||||
"Saved Chevron: ",
|
||||
"Current location: ",
|
||||
"A hot",
|
||||
"A cold"
|
||||
"A cold",
|
||||
"Load the game.",
|
||||
"Save the game.",
|
||||
"Empty",
|
||||
"Quit the game.",
|
||||
"Are you sure you want to quit?",
|
||||
"Change the volume settings",
|
||||
"Master volume",
|
||||
"Music volume",
|
||||
"Parrot volume",
|
||||
"Speech volume"
|
||||
};
|
||||
|
||||
static const char *const STRINGS_DE[186] = {
|
||||
static const char *const STRINGS_DE[196] = {
|
||||
"",
|
||||
"Sie befinden sich vor dem Pellerator.",
|
||||
"Wir bedauern, da ein Bot den Weg versperrt, ist Ihnen der "
|
||||
@ -928,6 +938,16 @@ static const char *const STRINGS_DE[186] = {
|
||||
"Derzeitige Position: ",
|
||||
"Eine hei\xDF""e",
|
||||
"Eine kalte",
|
||||
"Laden Sie das Spiel.",
|
||||
"Rette das Spiel.",
|
||||
"Leer",
|
||||
"Beenden Sie das Spiel.",
|
||||
"Sind Sie sicher, dass Sie aufhören wollen?",
|
||||
"Ändern der Lautstärkeeinstellungen",
|
||||
"Master Volumen",
|
||||
"Musiklautstärke",
|
||||
"Papageienvolumen",
|
||||
"Sprechband",
|
||||
|
||||
"Sommer",
|
||||
"Herbst",
|
||||
@ -1550,8 +1570,8 @@ void writeData() {
|
||||
writeStringArray("TEXT/ITEM_NAMES", ITEM_NAMES, 46);
|
||||
writeStringArray("TEXT/ITEM_IDS", ITEM_IDS, 40);
|
||||
writeStringArray("TEXT/ROOM_NAMES", ROOM_NAMES, 34);
|
||||
writeStringArray("TEXT/STRINGS", STRINGS_EN, 141);
|
||||
writeStringArray("TEXT/STRINGS/DE", STRINGS_DE, 186);
|
||||
writeStringArray("TEXT/STRINGS", STRINGS_EN, 151);
|
||||
writeStringArray("TEXT/STRINGS/DE", STRINGS_DE, 196);
|
||||
const int TEXT_PHRASES[3] = { 0x61D3C8, 0x618340, 0x61B1E0 };
|
||||
const int TEXT_REPLACEMENTS1[3] = { 0x61D9B0, 0x61C788, 0x61B7C8 };
|
||||
const int TEXT_REPLACEMENTS2[3] = { 0x61DD20, 0x61CAF8, 0x61BB38 };
|
||||
|
@ -52,7 +52,7 @@ bool CPetLoad::MouseButtonUpMsg(const Point &pt) {
|
||||
}
|
||||
|
||||
void CPetLoad::getTooltip(CTextControl *text) {
|
||||
text->setText("Load the game.");
|
||||
text->setText(LOAD_THE_GAME);
|
||||
}
|
||||
|
||||
void CPetLoad::execute() {
|
||||
|
@ -117,7 +117,7 @@ Rect CPetLoadSave::getSlotBounds(int index) {
|
||||
|
||||
void CPetLoadSave::resetSlots() {
|
||||
for (int idx = 0; idx < SAVEGAME_SLOTS_COUNT; ++idx) {
|
||||
_slotNames[idx].setText("Empty");
|
||||
_slotNames[idx].setText(EMPTY);
|
||||
_slotInUse[idx] = false;
|
||||
|
||||
// Try and open up the savegame for access
|
||||
|
@ -53,7 +53,7 @@ bool CPetQuit::reset() {
|
||||
setName("PetExit", pet);
|
||||
|
||||
uint col = getPetSection()->getColor(0);
|
||||
_text.setText("Are you sure you want to quit?");
|
||||
_text.setText(SURE_YOU_WANT_TO_QUIT);
|
||||
_text.setLineColor(0, col);
|
||||
|
||||
_btnYes.reset("PetQuitOut", pet, MODE_UNSELECTED);
|
||||
@ -84,7 +84,7 @@ bool CPetQuit::MouseButtonUpMsg(const Point &pt) {
|
||||
}
|
||||
|
||||
void CPetQuit::getTooltip(CTextControl *text) {
|
||||
text->setText("Quit the game.");
|
||||
text->setText(QUIT_THE_GAME);
|
||||
}
|
||||
|
||||
} // End of namespace Titanic
|
||||
|
@ -65,7 +65,7 @@ void CPetSave::highlightCurrent(const Point &pt) {
|
||||
}
|
||||
|
||||
void CPetSave::getTooltip(CTextControl *text) {
|
||||
text->setText("Save the game.");
|
||||
text->setText(SAVE_THE_GAME);
|
||||
}
|
||||
|
||||
void CPetSave::highlightSave(int index) {
|
||||
|
@ -65,25 +65,25 @@ bool CPetSound::setup(CPetControl *petControl, CPetGlyphs *owner) {
|
||||
_textMasterVolume.setBounds(rect);
|
||||
_textMasterVolume.resize(3);
|
||||
_textMasterVolume.setHasBorder(false);
|
||||
_textMasterVolume.setText("Master volume");
|
||||
_textMasterVolume.setText(MASTER_VOLUME);
|
||||
|
||||
rect.translate(0, 20);
|
||||
_textMusicVolume.setBounds(rect);
|
||||
_textMusicVolume.resize(3);
|
||||
_textMusicVolume.setHasBorder(false);
|
||||
_textMusicVolume.setText("Music volume");
|
||||
_textMusicVolume.setText(MUSIC_VOLUME);
|
||||
|
||||
rect.translate(0, 20);
|
||||
_textParrotVolume.setBounds(rect);
|
||||
_textParrotVolume.resize(3);
|
||||
_textParrotVolume.setHasBorder(false);
|
||||
_textParrotVolume.setText("Parrot volume");
|
||||
_textParrotVolume.setText(PARROT_VOLUME);
|
||||
|
||||
rect.translate(0, 20);
|
||||
_textSpeechVolume.setBounds(rect);
|
||||
_textSpeechVolume.resize(3);
|
||||
_textSpeechVolume.setHasBorder(false);
|
||||
_textSpeechVolume.setText("Speech volume");
|
||||
_textSpeechVolume.setText(SPEECH_VOLUME);
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -276,7 +276,7 @@ bool CPetSound::MouseButtonUpMsg(const Point &pt) {
|
||||
}
|
||||
|
||||
void CPetSound::getTooltip(CTextControl *text) {
|
||||
text->setText("Change the volume settings.");
|
||||
text->setText(CHANGE_VOLUME_SETTINGS);
|
||||
}
|
||||
|
||||
} // End of namespace Titanic
|
||||
|
@ -45,11 +45,16 @@ bool CFilesManager::loadResourceIndex() {
|
||||
|
||||
uint headerId = _datFile.readUint32BE();
|
||||
_version = _datFile.readUint16LE();
|
||||
if (headerId != MKTAG('S', 'V', 'T', 'N') || _version < 1) {
|
||||
if (headerId != MKTAG('S', 'V', 'T', 'N')) {
|
||||
g_vm->GUIError("titanic.dat has invalid contents");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (_version < 2) {
|
||||
g_vm->GUIError("titanic.dat is out of date");
|
||||
return false;
|
||||
}
|
||||
|
||||
// Read in entries
|
||||
uint offset, size, flags;
|
||||
char c;
|
||||
|
@ -170,6 +170,16 @@ enum StringId {
|
||||
CURRENT_LOCATION,
|
||||
A_HOT,
|
||||
A_COLD,
|
||||
LOAD_THE_GAME,
|
||||
SAVE_THE_GAME,
|
||||
EMPTY,
|
||||
QUIT_THE_GAME,
|
||||
SURE_YOU_WANT_TO_QUIT,
|
||||
CHANGE_VOLUME_SETTINGS,
|
||||
MASTER_VOLUME,
|
||||
MUSIC_VOLUME,
|
||||
PARROT_VOLUME,
|
||||
SPEECH_VOLUME,
|
||||
|
||||
// German version only
|
||||
DE_SUMMER,
|
||||
|
Loading…
Reference in New Issue
Block a user