1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-18 06:30:41 +00:00

better view_pt display

This commit is contained in:
Zeno Rogue 2024-09-17 17:54:54 +02:00
parent c6558f72f9
commit de4f4a5adf
3 changed files with 16 additions and 11 deletions

View File

@ -356,12 +356,7 @@ void view_ads_game() {
string str = hr::format(tformat, ship_pt / ads_time_unit);
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 = "";

View File

@ -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;

View File

@ -147,6 +147,21 @@ bool display_rsrc() {
D(5, 4, oxygen, TAU);
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;