1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 23:50:27 +00:00

DIALOG_STRICT_X now works with diTitle/diInfo

This commit is contained in:
Zeno Rogue 2020-08-01 16:42:55 +02:00
parent 7d9be4d40c
commit 1d278263bf

View File

@ -424,6 +424,8 @@ EX namespace dialog {
I.position = mid;
if(I.type == diTitle || I.type == diInfo) {
bool xthis = (mousey >= top && mousey < tothei && I.key);
if(cmode & sm::DIALOG_STRICT_X)
xthis = xthis && (mousex >= dcenter - dialogwidth/2 && mousex <= dcenter + dialogwidth/2);
displayfr(dcenter, mid, 2, dfsize * I.scale/100, I.body, I.color, 8);
if(xthis) getcstat = I.key;
}