Decouple selection section inventory position
This commit is contained in:
+1
-1
@@ -344,7 +344,7 @@ updateMouseInventorySelection' sss cfig w
|
||||
|
||||
startDrag :: (Int,Int) -> World -> World
|
||||
startDrag (a,b) w = fromMaybe (augInvDirectSelect (a,b) $ setmichosen 0 w) $ do
|
||||
(i,j) <- w ^? hud . hudElement . diSections . sssExtra . sssSelPos . _Just
|
||||
(i,j) <- w ^? hud . hudElement . diSelection . _Just
|
||||
x <- w ^? hud . hudElement . subInventory . nsSelected . misExtra
|
||||
guard $ i == a && b >= j && b <= j + x
|
||||
return w
|
||||
|
||||
Reference in New Issue
Block a user