mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-26 10:00:42 +00:00
Merge pull request #375 from jlmjlm/time5
Make option to show turns on the main screen.
This commit is contained in:
commit
dc136cc937
@ -1173,6 +1173,8 @@ EX void initConfig() {
|
|||||||
|
|
||||||
param_i(min_cells_drawn, "min_cells_drawn");
|
param_i(min_cells_drawn, "min_cells_drawn");
|
||||||
|
|
||||||
|
param_b(show_turns, "show_turns", false)
|
||||||
|
-> editable("show turn count", 'T');
|
||||||
param_i(menu_darkening, "menu_darkening", 2)
|
param_i(menu_darkening, "menu_darkening", 2)
|
||||||
-> editable(0, 8, 1, "menu map darkening", "A larger number means darker game map in the background. Set to 8 to disable the background.", 'd')
|
-> editable(0, 8, 1, "menu map darkening", "A larger number means darker game map in the background. Set to 8 to disable the background.", 'd')
|
||||||
-> set_sets([] { dialog::bound_low(0); dialog::bound_up(8); dialog::get_di().dialogflags |= sm::DARKEN; });
|
-> set_sets([] { dialog::bound_low(0); dialog::bound_up(8); dialog::get_di().dialogflags |= sm::DARKEN; });
|
||||||
@ -2443,6 +2445,7 @@ EX void configureInterface() {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
add_edit(show_turns);
|
||||||
add_edit(menu_darkening);
|
add_edit(menu_darkening);
|
||||||
add_edit(centered_menus);
|
add_edit(centered_menus);
|
||||||
add_edit(startanims::enabled);
|
add_edit(startanims::enabled);
|
||||||
|
@ -5672,6 +5672,7 @@ EX bool just_refreshing;
|
|||||||
|
|
||||||
EX int menu_darkening = 2;
|
EX int menu_darkening = 2;
|
||||||
EX bool centered_menus = false;
|
EX bool centered_menus = false;
|
||||||
|
EX bool show_turns = false;
|
||||||
|
|
||||||
EX void gamescreen() {
|
EX void gamescreen() {
|
||||||
|
|
||||||
@ -5798,7 +5799,9 @@ EX void normalscreen() {
|
|||||||
cmode = sm::NORMAL | sm::DOTOUR | sm::CENTER;
|
cmode = sm::NORMAL | sm::DOTOUR | sm::CENTER;
|
||||||
if(viewdists && show_distance_lists) cmode |= sm::SIDE | sm::MAYDARK;
|
if(viewdists && show_distance_lists) cmode |= sm::SIDE | sm::MAYDARK;
|
||||||
gamescreen(); drawStats();
|
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
|
#if CAP_TOUR
|
||||||
else if(tour::on)
|
else if(tour::on)
|
||||||
|
Loading…
Reference in New Issue
Block a user