mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-26 00:47:00 +00:00
inv:: correct dialogcolor used
This commit is contained in:
parent
2524fb76d0
commit
fcfadf9eaa
@ -539,6 +539,8 @@ EX namespace inv {
|
|||||||
if(!remaining[i]) icol = gradient(icol, 0, 0, .5, 1);
|
if(!remaining[i]) icol = gradient(icol, 0, 0, .5, 1);
|
||||||
bool gg = graphglyph(false);
|
bool gg = graphglyph(false);
|
||||||
|
|
||||||
|
bool b = hypot(mousex-px, mousey-py) < rad;
|
||||||
|
|
||||||
if(!hiliteclick) {
|
if(!hiliteclick) {
|
||||||
if(gg) {
|
if(gg) {
|
||||||
initquickqueue();
|
initquickqueue();
|
||||||
@ -557,12 +559,11 @@ EX namespace inv {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(remaining[i] != 1 || !gg) {
|
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);
|
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_over(b), 8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool b = hypot(mousex-px, mousey-py) < rad;
|
|
||||||
if(b) {
|
if(b) {
|
||||||
getcstat = c,
|
getcstat = c,
|
||||||
which = o;
|
which = o;
|
||||||
|
Loading…
Reference in New Issue
Block a user