mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-10-31 19:36:16 +00:00
improved the orb text display in OSM for icons
This commit is contained in:
parent
301dad5d7b
commit
5d13663695
@ -547,10 +547,19 @@ EX namespace inv {
|
||||
quickqueue();
|
||||
}
|
||||
|
||||
string s = remaining[i] <= 0 ? "X" : its(remaining[i]);
|
||||
|
||||
if(vid.orbmode < 2) {
|
||||
int tcol = remaining[i] ? darkenedby(icol, 1) : 0;
|
||||
|
||||
if(remaining[i] != 1 || !gg)
|
||||
displaystr(px, py, 2, gg?rad:rad*3/2, remaining[i] <= 0 ? "X" : remaining[i] == 1 ? "o" : its(remaining[i]), tcol, 8);
|
||||
displaystr(px, py, 2, gg?rad:rad*3/2, s, tcol, 8);
|
||||
}
|
||||
else {
|
||||
if(remaining[i] != 1 || !gg) {
|
||||
displayfr(px + rad/2, py + rad/2, 2, gg?rad:rad*3/2, remaining[i] <= 0 ? "X" : remaining[i] == 1 ? "o" : its(remaining[i]), dialog::dialogcolor, 8);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool b = hypot(mousex-px, mousey-py) < rad;
|
||||
|
Loading…
Reference in New Issue
Block a user