mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-15 19:55:47 +00:00
better view_pt display
This commit is contained in:
parent
c6558f72f9
commit
de4f4a5adf
@ -357,11 +357,6 @@ void view_ads_game() {
|
||||
queuestr(shiftless(Id), .1, str, 0xFFFFFF, 8);
|
||||
}
|
||||
}
|
||||
|
||||
if(paused && view_proper_times) {
|
||||
string str = hr::format(tformat, view_pt / ads_time_unit);
|
||||
queuestr(shiftless(Id), .1, str, 0xFFFF00, 8);
|
||||
}
|
||||
}
|
||||
|
||||
copyright_shown = "";
|
||||
|
@ -669,11 +669,6 @@ void view_ds_game() {
|
||||
}
|
||||
}
|
||||
|
||||
if(paused && view_proper_times) {
|
||||
string str = hr::format(tformat, view_pt / ds_time_unit);
|
||||
queuestr(shiftless(sphereflip), .1, str, 0xFFFF00, 8);
|
||||
}
|
||||
|
||||
if(paused && !game_over && !in_replay && !hv && !which_cross) {
|
||||
vector<hyperpoint> pts;
|
||||
int ok = 0, bad = 0;
|
||||
|
@ -148,6 +148,21 @@ bool display_rsrc() {
|
||||
D(2, 5, score, 10);
|
||||
#undef D
|
||||
|
||||
int next_y = 6;
|
||||
auto next_ctr = [&] {
|
||||
ld ny = next_y++;
|
||||
if(true) return 20*ny+10;
|
||||
return max<ld>(20*ny+10, current_display->ycenter - current_display->radius + 20 * ny);
|
||||
};
|
||||
ld sta = max<ld>(20, current_display->xcenter - current_display->radius + 20);
|
||||
if(true) sta = 20;
|
||||
|
||||
if(paused) {
|
||||
queuestr(sta, next_ctr(), 0, 20, "PAUSED", 0xFFFFFF, 1, 0);
|
||||
if(view_proper_times)
|
||||
queuestr(sta, next_ctr(), 0, 20, "time shift " + hr::format(tformat, view_pt / ads_time_unit), 0xFFFF80, 1, 0);
|
||||
}
|
||||
|
||||
quickqueue();
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user