Fix mouse input in library tab.

This commit is contained in:
Mari the Deer 2023-03-10 16:04:07 +01:00
commit 613a88f6c3
2 changed files with 9 additions and 10 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r786 \cu(Fri 10 Mar 14:18:19 CET 2023)\c-";
SWWM_SHORTVER="\cw1.3pre r786 \cu(2023-03-10 14:18:19)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r786 \cu(Fri 10 Mar 16:04:07 CET 2023)\c-";
SWWM_SHORTVER="\cw1.3pre r786 \cu(2023-03-10 16:04:07)\c-";

View file

@ -261,6 +261,9 @@ Class DemolitionistLibraryTab : DemolitionistMenuTab
case MB_RELEASE:
drag[0] = drag[1] = false;
break;
case MB_RIGHT:
MenuInput(MK_BACK);
break;
}
// mouse on left side
if ( pos.x < (lwidth+((maxofs[section]>0)?8:0)) )
@ -301,14 +304,10 @@ Class DemolitionistLibraryTab : DemolitionistMenuTab
continue;
sel[section] = lists[section].selected = i;
KBScroll();
if ( active && (lists[section].items[i] == active) )
MenuInput(MK_BACK);
else
{
if ( active ) active.bActive = false;
clore = null;
MenuInput(MK_ENTER);
}
if ( active && (lists[section].items[i] == active) && (clore == active.ent) )
break;
clore = null;
MenuInput(MK_ENTER);
break;
}
break;