mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 20:29:17 +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();
|
quickqueue();
|
||||||
}
|
}
|
||||||
|
|
||||||
int tcol = remaining[i] ? darkenedby(icol, 1) : 0;
|
string s = remaining[i] <= 0 ? "X" : its(remaining[i]);
|
||||||
|
|
||||||
if(remaining[i] != 1 || !gg)
|
if(vid.orbmode < 2) {
|
||||||
displaystr(px, py, 2, gg?rad:rad*3/2, remaining[i] <= 0 ? "X" : remaining[i] == 1 ? "o" : its(remaining[i]), tcol, 8);
|
int tcol = remaining[i] ? darkenedby(icol, 1) : 0;
|
||||||
|
|
||||||
|
if(remaining[i] != 1 || !gg)
|
||||||
|
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;
|
bool b = hypot(mousex-px, mousey-py) < rad;
|
||||||
|
Loading…
Reference in New Issue
Block a user