Add separate function checking when inventory is filtered

This commit is contained in:
2024-11-03 09:50:18 +00:00
parent 7bafb1e9e6
commit feec061aa6
7 changed files with 75 additions and 61 deletions
+5
View File
@@ -14,6 +14,7 @@ module Dodge.Inventory (
module Dodge.Inventory.RBList,
swapInvItems,
scrollAugNextInSection,
isFilteringInv,
) where
import Control.Applicative
@@ -254,3 +255,7 @@ selectedCloseObject w = do
you w ^? crManipulation . manObject . ispCloseObject
<|> fmap fst (IM.lookupMin =<< w ^? hud . hudElement . diSections . ix 3 . ssItems)
w ^? hud . closeObjects . ix i
isFilteringInv :: IM.IntMap (SelectionSection a) -> Bool
isFilteringInv = not . null . (^. ix (-1) . ssItems)