Fix mouse input in library tab.
This commit is contained in:
parent
45835f4277
commit
7218aba8c3
2 changed files with 9 additions and 10 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r770 \cu(Fri 10 Mar 19:41:58 CET 2023)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r770 \cu(2023-03-10 19:41:58)\c-";
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r771 \cu(Fri 10 Mar 19:42:05 CET 2023)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r771 \cu(2023-03-10 19:42:05)\c-";
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue