Move Comms Relay text boxes to new system

These seemed annoying to do without copy-pasting, because I didn't want
to make a separate function for every single dialogue, and I didn't know
how to pass through the English text, until I realized that I can just
use the existing original.lines vector in the text box to store the
English text. After that, getting it translated on-the-fly isn't too
bad.
This commit is contained in:
Misa
2024-01-21 11:04:00 -08:00
committed by Misa Elizabeth Kai
parent 82150fd3a9
commit 76483f96ef
3 changed files with 32 additions and 18 deletions

View File

@@ -1632,56 +1632,56 @@ void Game::updatestate(void)
case 50:
music.playef(Sound_VIOLET);
graphics.createtextbox(loc::gettext("Help! Can anyone hear this message?"), 5, 8, TEXT_COLOUR("purple"));
graphics.textboxcommsrelay();
graphics.createtextbox("", 5, 8, TEXT_COLOUR("purple"));
graphics.textboxcommsrelay("Help! Can anyone hear this message?");
graphics.textboxtimer(60);
incstate();
setstatedelay(100);
break;
case 51:
music.playef(Sound_VIOLET);
graphics.createtextbox(loc::gettext("Verdigris? Are you out there? Are you ok?"), 5, 8, TEXT_COLOUR("purple"));
graphics.textboxcommsrelay();
graphics.createtextbox("", 5, 8, TEXT_COLOUR("purple"));
graphics.textboxcommsrelay("Verdigris? Are you out there? Are you ok?");
graphics.textboxtimer(60);
incstate();
setstatedelay(100);
break;
case 52:
music.playef(Sound_VIOLET);
graphics.createtextbox(loc::gettext("Please help us! We've crashed and need assistance!"), 5, 8, TEXT_COLOUR("purple"));
graphics.textboxcommsrelay();
graphics.createtextbox("", 5, 8, TEXT_COLOUR("purple"));
graphics.textboxcommsrelay("Please help us! We've crashed and need assistance!");
graphics.textboxtimer(60);
incstate();
setstatedelay(100);
break;
case 53:
music.playef(Sound_VIOLET);
graphics.createtextbox(loc::gettext("Hello? Anyone out there?"), 5, 8, TEXT_COLOUR("purple"));
graphics.textboxcommsrelay();
graphics.createtextbox("", 5, 8, TEXT_COLOUR("purple"));
graphics.textboxcommsrelay("Hello? Anyone out there?");
graphics.textboxtimer(60);
incstate();
setstatedelay(100);
break;
case 54:
music.playef(Sound_VIOLET);
graphics.createtextbox(loc::gettext("This is Doctor Violet from the D.S.S. Souleye! Please respond!"), 5, 8, TEXT_COLOUR("purple"));
graphics.textboxcommsrelay();
graphics.createtextbox("", 5, 8, TEXT_COLOUR("purple"));
graphics.textboxcommsrelay("This is Doctor Violet from the D.S.S. Souleye! Please respond!");
graphics.textboxtimer(60);
incstate();
setstatedelay(100);
break;
case 55:
music.playef(Sound_VIOLET);
graphics.createtextbox(loc::gettext("Please... Anyone..."), 5, 8, TEXT_COLOUR("purple"));
graphics.textboxcommsrelay();
graphics.createtextbox("", 5, 8, TEXT_COLOUR("purple"));
graphics.textboxcommsrelay("Please... Anyone...");
graphics.textboxtimer(60);
incstate();
setstatedelay(100);
break;
case 56:
music.playef(Sound_VIOLET);
graphics.createtextbox(loc::gettext("Please be alright, everyone..."), 5, 8, TEXT_COLOUR("purple"));
graphics.textboxcommsrelay();
graphics.createtextbox("", 5, 8, TEXT_COLOUR("purple"));
graphics.textboxcommsrelay("Please be alright, everyone...");
graphics.textboxtimer(60);
setstate(50);
setstatedelay(100);