Make Nearby Items subheading disappear if none nearby/not filtering
This commit is contained in:
@@ -125,7 +125,7 @@ updateDisplaySections w cfig =
|
||||
, sinv
|
||||
, IM.singleton 0 $
|
||||
SelItem [displayFreeSlots (crNumFreeSlots (w ^. cWorld . lWorld . items) cr)] 1 15 True invDimColor 2 Nothing NoSIDisplayMod
|
||||
, sfclose
|
||||
, sfclose1
|
||||
, sclose
|
||||
, interfaceshead
|
||||
, btitems
|
||||
@@ -137,6 +137,9 @@ updateDisplaySections w cfig =
|
||||
filterSectionsPair invfiltcurs plainRegex invitems "INVENTORY" $
|
||||
w ^? hud . diInvFilter . _Just
|
||||
closefiltcurs = mselpos ^? _Just . slSec == Just 2
|
||||
sfclose1
|
||||
| null sclose && sfclose ^? ix 0 . siIsSelectable == Just False = mempty
|
||||
| otherwise = sfclose
|
||||
(sfclose, sclose) =
|
||||
filterSectionsPair closefiltcurs plainRegex closeitms "NEARBY ITEMS" $
|
||||
w ^? hud . diCloseFilter . _Just
|
||||
|
||||
Reference in New Issue
Block a user