1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 23:50:27 +00:00

racing:: clicking on race times presses 'o'

This commit is contained in:
Zeno Rogue 2019-01-07 04:51:24 +01:00
parent 3eceff921c
commit 21f85d6a44

View File

@ -497,16 +497,18 @@ void drawStats() {
col = 0xFFFFFF; col = 0xFFFFFF;
dynamicval<int> x(vid.fsize, vid.fsize*2); dynamicval<int> x(vid.fsize, vid.fsize*2);
if(displayButtonS(vid.xres - 8, vid.fsize, racetimeformat(ticks - race_start_tick), col, 16, vid.fsize)); if(displayButtonS(vid.xres - 8, vid.fsize, racetimeformat(ticks - race_start_tick), col, 16, vid.fsize)) getcstat = 'o';
for(int i=0; i<multi::players; i++) { for(int i=0; i<multi::players; i++) {
if(race_finish_tick[i]) { if(race_finish_tick[i]) {
multi::cpid = i; multi::cpid = i;
if(displayButtonS(vid.xres - 8, vid.fsize * (3+i), racetimeformat(race_finish_tick[i] - race_start_tick), (getcs().uicolor >> 8), 16, vid.fsize)); if(displayButtonS(vid.xres - 8, vid.fsize * (3+i), racetimeformat(race_finish_tick[i] - race_start_tick), (getcs().uicolor >> 8), 16, vid.fsize))
getcstat = 'o';
} }
else { else {
int comp = get_percentage(i); int comp = get_percentage(i);
if(displayButtonS(vid.xres - 8, vid.fsize * (3+i), its(comp) + "%", (getcs().uicolor >> 8), 16, vid.fsize)); if(displayButtonS(vid.xres - 8, vid.fsize * (3+i), its(comp) + "%", (getcs().uicolor >> 8), 16, vid.fsize))
getcstat = 'o';
} }
} }
#endif #endif