1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-24 06:03:23 +00:00

strict X handling in dialogs

This commit is contained in:
Zeno Rogue 2017-12-14 02:51:31 +01:00
parent 36fe8dd1d0
commit e2e0fc2ff8

View File

@ -304,6 +304,8 @@ namespace dialog {
}
else if(I.type == diItem || I.type == diBigItem) {
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(xthis && mousepressed)
I.color = I.colorc;