1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-07-15 15:42:49 +00:00

Merge pull request #374 from jlmjlm/time2

Fix minor menu glitches.
This commit is contained in:
Zeno Rogue 2024-05-16 20:28:22 +02:00 committed by GitHub
commit 7b99248c06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -5806,8 +5806,8 @@ EX void normalscreen() {
#if CAP_TOUR #if CAP_TOUR
else if(tour::on) else if(tour::on)
displayButton(vid.xres-8, vid.yres-vid.fsize, XLAT("(ESC) tour menu"), SDLK_ESCAPE, 16); displayButton(vid.xres-8, vid.yres-vid.fsize, XLAT("(ESC) tour menu"), SDLK_ESCAPE, 16);
else
#endif #endif
else
displayButton(vid.xres-8, vid.yres-vid.fsize, XLAT("(v) menu"), 'v', 16); displayButton(vid.xres-8, vid.yres-vid.fsize, XLAT("(v) menu"), 'v', 16);
keyhandler = handleKeyNormal; keyhandler = handleKeyNormal;

View File

@ -50,7 +50,7 @@ string timeline() {
else { else {
s = XLAT("%1 turns (%2)", its(turncount), getgametime_s()); s = XLAT("%1 turns (%2)", its(turncount), getgametime_s());
if(display_yasc_codes) if(display_yasc_codes)
s+= XLAT(" YASC code: ") + formatted_yasc_code(); s += XLAT(" YASC code: ") + formatted_yasc_code();
} }
return s; return s;
} }
@ -332,7 +332,7 @@ EX void showGameMenu() {
#if CAP_TOUR #if CAP_TOUR
tour::on ? (canmove ? XLAT("guided tour") : XLAT("GAME OVER")) : tour::on ? (canmove ? XLAT("guided tour") : XLAT("GAME OVER")) :
#endif #endif
(cheater && !autocheat)? XLAT("It is a shame to cheat!") : (cheater && !autocheat) ? XLAT("It is a shame to cheat!") :
racing::on ? "racing mode" : racing::on ? "racing mode" :
(canmove && princess::challenge) ? XLAT("%1 Challenge", moPrincess) : (canmove && princess::challenge) ? XLAT("%1 Challenge", moPrincess) :
canmove ? XLAT("Quest status") : canmove ? XLAT("Quest status") :
@ -445,7 +445,7 @@ EX void showGameMenu() {
if(cheater && !autocheat) { if(cheater && !autocheat) {
dialog::addInfo(XLAT("you have cheated %1 times", its(cheater)), 0xFF2020); dialog::addInfo(XLAT("you have cheated %1 times", its(cheater)), 0xFF2020);
} }
else if(!racing::on) { if(!racing::on) {
dialog::addInfo(timeline(), dialog::dialogcolor); dialog::addInfo(timeline(), dialog::dialogcolor);
} }