Unhardcode TAB in translation strings

In case we want to make it rebindable in the future, we shouldn't make
translators retranslate these strings.
This commit is contained in:
AllyTally
2023-11-19 21:24:11 -04:00
committed by Misa Elizabeth Kai
parent 4df35da0e4
commit b7a8bb138c
2 changed files with 10 additions and 2 deletions

View File

@@ -440,6 +440,14 @@ namespace level_debugger
}
}
font::print(PR_BOR, 5, 14, loc::gettext("[Press TAB to toggle gameplay]"), 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2));
char buffer[SCREEN_WIDTH_CHARS + 1];
vformat_buf(
buffer, sizeof(buffer),
loc::gettext("[Press {button} to toggle gameplay]"),
"button:str",
"TAB"
);
font::print(PR_BOR, 5, 14, buffer, 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2));
}
}