1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-11 05:39:04 +00:00

highlight buttons on overview/PTM screens; improved zoom feature; fixed a bug with zoom spilling to the inventory screen

This commit is contained in:
Zeno Rogue
2018-07-22 12:54:05 +02:00
parent 329a2fa783
commit 5b41f5d157
5 changed files with 64 additions and 53 deletions

View File

@@ -310,21 +310,15 @@ void mobile_draw(MOBPAR_FORMAL) {
if(inmenu && !clicked && !lclicked) inmenu = false;
bool keyreact = lclicked && !clicked;
if(cmode & sm::ZOOMABLE) {
#if CAP_MENUSCALING
if(true) {
using namespace dialog::zoom;
if(zoomoff) {
zoomf = 1; shiftx = shifty = 0; zoomoff = false; return;
}
if(clicked && !lclicked) {
zoomf = 3;
}
if(zoomf == 3) {
shiftx = -2*mousex;
shifty = -2*mousey;
}
if(!clicked && zoomf > 1) { zoomoff = true; }
}
if(zoomoff || !(cmode & sm::ZOOMABLE)) nozoom();
else if(clicked && !lclicked) initzoom();
else if(!clicked && zoomf > 1) stopzoom();
}
#endif
if(inslider) keyreact = true;