mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	better view_pt display
This commit is contained in:
		| @@ -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 = ""; | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue