mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-23 15:36:59 +00:00
improved the orb text display in OSM for icons
This commit is contained in:
parent
301dad5d7b
commit
5d13663695
@ -546,13 +546,22 @@ EX namespace inv {
|
|||||||
drawItemType(o, NULL, shiftless(V), icol, ticks/3 + i * 137, false);
|
drawItemType(o, NULL, shiftless(V), icol, ticks/3 + i * 137, false);
|
||||||
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;
|
||||||
if(b) {
|
if(b) {
|
||||||
getcstat = c,
|
getcstat = c,
|
||||||
|
Loading…
Reference in New Issue
Block a user