mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 23:10:26 +00:00
strict X handling in dialogs
This commit is contained in:
parent
36fe8dd1d0
commit
e2e0fc2ff8
@ -304,6 +304,8 @@ namespace dialog {
|
|||||||
}
|
}
|
||||||
else if(I.type == diItem || I.type == diBigItem) {
|
else if(I.type == diItem || I.type == diBigItem) {
|
||||||
bool xthis = (mousey >= top && mousey < tothei);
|
bool xthis = (mousey >= top && mousey < tothei);
|
||||||
|
if(cmode && sm::DIALOG_STRICT_X)
|
||||||
|
xthis = xthis && (mousex >= dcenter - dialogwidth/2 && mousex <= dcenter + dialogwidth/2);
|
||||||
#if ISMOBILE
|
#if ISMOBILE
|
||||||
if(xthis && mousepressed)
|
if(xthis && mousepressed)
|
||||||
I.color = I.colorc;
|
I.color = I.colorc;
|
||||||
|
Loading…
Reference in New Issue
Block a user