Make option to show turns on the main screen.

"Liberal" version that shows the turncount unguarded by
nomenukey and ISMOBILE.  Hopefully this means that it'll
display properly on mobile, outside the map region's "DRAG" area.
But this display mode is only used by the mobile builds which I
don't have toolchains for, so can't test it.  :(
This commit is contained in:
Jacob Mandelson committed 2024-05-16 08:31:45 -07:00
1 parent 7581ba887b
commit 1dd4da5135
2 files changed
+7 -1

No files matched your search

+4 -1
View File
@@ -5672,6 +5672,7 @@ EX bool just_refreshing;
EX int menu_darkening = 2;
EX bool centered_menus = false;
EX bool show_turns = false;
EX void gamescreen() {
@@ -5798,7 +5799,9 @@ EX void normalscreen() {
cmode = sm::NORMAL | sm::DOTOUR | sm::CENTER;
if(viewdists && show_distance_lists) cmode |= sm::SIDE | sm::MAYDARK;
gamescreen(); drawStats();
if(nomenukey || ISMOBILE)
if(show_turns)
displayButton(vid.xres-8, vid.yres-vid.fsize, "t:" + its(turncount), 'v', 16);
else if(nomenukey || ISMOBILE)
;
#if CAP_TOUR
else if(tour::on)