Add cases for intermission replay options, button fillers in editor

The strings "Vitellary"/"Vermilion"/"Verdigris"/"Victoria" now have two
cases to support changing them for the intermission replay menu options
(like "with Vitellary").

Also, the string "< and > keys change tool" is now "{button1} and
{button2} keys change tool", so it can be changed dynamically without
having to retranslate the string.
This commit is contained in:
Dav999-v
2022-12-07 21:03:01 +01:00
committed by Misa Elizabeth Kai
parent 968e731178
commit 6a1ddad8f8
6 changed files with 50 additions and 29 deletions

View File

@@ -1392,7 +1392,12 @@ void editorrender(void)
graphics.Print(4, 232, "2/2", 196, 196, 255 - help.glow, false);
}
const char* changetooltext = loc::gettext("< and > keys change tool");
char changetooltext[SCREEN_WIDTH_CHARS + 1];
vformat_buf(changetooltext, sizeof(changetooltext),
loc::gettext("{button1} and {button2} keys change tool"),
"button1:str, button2:str",
",", "."
);
graphics.Print(320-graphics.len(changetooltext), 232, changetooltext, 196, 196, 255 - help.glow, false);
const char* toolname;