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:
parent
3eceff921c
commit
21f85d6a44
8
hud.cpp
8
hud.cpp
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user