Replace [Press {button} to toggle gameplay] by freeze/unfreeze

This is both easier for translators ("toggle" can be an annoying word)
and is useful in general because you can tell if gameplay is frozen
without having to have anything in the room that should normally be
moving but isn't.

I didn't follow the rule in lang/README-programmers.txt to keep the
original string around as ***OUTDATED*** in this case, since I know
only Arabic has it translated - we can just tell the Arabic translators
on Discord that this string was replaced.
This commit is contained in:
Dav999 2024-01-19 23:57:20 +01:00 committed by Misa Elizabeth Kai
parent afbcb3f867
commit 60fd0bc0c2
2 changed files with 12 additions and 2 deletions

View File

@ -437,7 +437,8 @@
<string english="- Press {button} to advance text -" translation="" explanation="to dismiss a textbox. Expect `ACTION`" max="40"/>
<string english="Press ACTION to continue" translation="" explanation="***OUTDATED***" max="34"/>
<string english="Press {button} to continue" translation="" explanation="Expect `ACTION`" max="34"/>
<string english="[Press {button} to toggle gameplay]" translation="" explanation="Tab toggles whether the game is paused or not" max="39"/>
<string english="[Press {button} to unfreeze gameplay]" translation="" explanation="in level debugger: {button} makes everything start moving as normal. Limit is treacherous, expect TAB for {button}. Frozen is the initial state, so this is the first string of the two that users will see!" max="39"/>
<string english="[Press {button} to freeze gameplay]" translation="" explanation="in level debugger: {button} makes everything stop moving. Limit is treacherous, expect TAB for {button}." max="39"/>
<string english="Current Time" translation="" explanation="super gravitron, stopwatch time" max="20"/>
<string english="Best Time" translation="" explanation="super gravitron, best stopwatch time" max="20"/>
<string english="Next Trophy at 5 seconds" translation="" explanation="" max="38*2"/>

View File

@ -445,10 +445,19 @@ namespace level_debugger
}
}
const char* text;
if (should_pause)
{
text = loc::gettext("[Press {button} to unfreeze gameplay]");
}
else
{
text = loc::gettext("[Press {button} to freeze gameplay]");
}
char buffer[SCREEN_WIDTH_CHARS + 1];
vformat_buf(
buffer, sizeof(buffer),
loc::gettext("[Press {button} to toggle gameplay]"),
text,
"button:str",
"TAB"
);