Decouple selection section inventory position
This commit is contained in:
@@ -58,12 +58,13 @@ updateWheelEvent yi w = case w ^. hud . hudElement of
|
||||
|
||||
moveCombineSel :: Int -> World -> World
|
||||
moveCombineSel yi =
|
||||
( hud . hudElement . subInventory . ciSections
|
||||
%~ doscroll
|
||||
( hud . hudElement . subInventory %~ doscroll
|
||||
)
|
||||
. (worldEventFlags . at CombineInventoryChange ?~ ())
|
||||
where
|
||||
doscroll sss = sss & sssExtra . sssSelPos %~ scrollSelectionSections yi sss
|
||||
doscroll ci = fromMaybe ci $ do
|
||||
sss <- ci ^? ciSections
|
||||
return $ ci & ciSelection %~ scrollSelectionSections yi sss
|
||||
|
||||
--moveSubSel :: Int -> Int -> World -> World
|
||||
--moveSubSel yi maxyi =
|
||||
|
||||
Reference in New Issue
Block a user