fixed the help button in the pause menu

This commit is contained in:
Zeno Rogue 2022-07-05 11:51:32 +02:00
parent 75f58766a2
commit 09d67c24f0
2 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,7 @@ vector<string> extra_keys_3d = {
"move mouse = rotate camera (in rug, only with lctrl)",
};
void buildHelpText() {
EX void buildHelpText() {
DEBBI(DF_GRAPH, ("buildHelpText"));
help = XLAT("Welcome to HyperRogue");

View File

@ -550,6 +550,7 @@ EX void showGameMenu() {
#endif
#endif
dialog::addHelp();
dialog::add_action([] { buildHelpText(); gotoHelp(help); });
dialog::addItem(XLAT("restart"), SDLK_F5);
dialog::addItem(inSpecialMode() ? XLAT("reset special modes") : XLAT("back to the start menu"), 'R');
dialog::add_action([] {