Make hud non-saveable
This commit is contained in:
@@ -20,7 +20,7 @@ makeInventorySelectionList w = defaultSelectionList
|
||||
inventorySelectionList :: World -> [SelectionItem ()]
|
||||
inventorySelectionList w = map (invSelectionItem cr) (IM.toList inv)
|
||||
++ [SelectionItem displayFreeSlots 1 True (length thetext) invDimColor 2 ()]
|
||||
++ map (closeObjectToSelectionItem nfreeslots) (w ^. cWorld . lWorld . closeObjects)
|
||||
++ map (closeObjectToSelectionItem nfreeslots) (w ^. hud . closeObjects)
|
||||
where
|
||||
cr = you w
|
||||
inv = _crInv cr
|
||||
@@ -32,7 +32,7 @@ inventorySelectionList w = map (invSelectionItem cr) (IM.toList inv)
|
||||
displayFreeSlots = [color invDimColor $ text thetext]
|
||||
|
||||
inventoryCursorPos :: World -> Maybe Int
|
||||
inventoryCursorPos w = case w ^? cWorld . lWorld . hud . hudElement . subInventory of
|
||||
inventoryCursorPos w = case w ^? hud . hudElement . subInventory of
|
||||
Just CombineInventory{} -> Nothing
|
||||
_ -> Just $ yourInvSel w
|
||||
|
||||
|
||||
Reference in New Issue
Block a user