Simplify updating selection sections

This commit is contained in:
2023-02-18 15:46:03 +00:00
parent 6eca3bab38
commit 41851ba24d
5 changed files with 230 additions and 87 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ module Dodge.Update.Input (
doRegexInput,
) where
import Dodge.Default.World
import Data.Char
import qualified Data.IntMap.Strict as IM
import qualified Data.Map.Strict as M
@@ -256,7 +257,7 @@ spaceAction w = case w ^?! hud . hudElement of
toggleMap :: Universe -> Universe
toggleMap u = case u ^?! uvWorld . hud . hudElement of
DisplayCarte -> u & uvWorld . hud . hudElement
.~ DisplayInventory{_subInventory = NoSubInventory, _diSections = defaultDisplaySections}
.~ DisplayInventory{_subInventory = NoSubInventory, _diSections = defaultInvSections}
_ -> u & uvWorld . hud . hudElement .~ DisplayCarte
toggleTweakInv :: World -> World