Start to refactor terminals

This commit is contained in:
2024-11-05 21:14:53 +00:00
parent 79b03ef6ec
commit 7e1b5f0921
12 changed files with 335 additions and 341 deletions
+3 -2
View File
@@ -5,6 +5,7 @@ module Dodge.DisplayInventory (
updateCombinePositioning,
) where
import Dodge.CharacterEnums
import Control.Applicative
import Control.Lens
import Control.Monad
@@ -52,8 +53,8 @@ updateCombineSections w cfig =
[(0, sclose), (-1, sfclose)]
where
filtcurs = case w ^? hud . hudElement . subInventory . ciSelection . _Just . _1 of
Just (-1) -> [toEnum 219] -- filled rect
_ -> [toEnum 128] -- wire rect
Just (-1) -> [cFilledRect]
_ -> [cWireRect]
(sfclose, sclose) =
filterSectionsPair
filtcurs