This commit is contained in:
2022-12-26 09:42:58 +00:00
parent 6e18c498af
commit 1bafb427df
5 changed files with 94 additions and 18 deletions
+1 -3
View File
@@ -26,6 +26,7 @@ module Dodge.Inventory (
) where
import Color
import Dodge.Inventory.Color
import qualified Data.Map.Strict as M
import Data.Maybe
import Dodge.Base
@@ -141,9 +142,6 @@ selNumMidHeight cfig w i = V2 (150 - hw) (hh + bump - (20 * fromIntegral ipos +
selNumCol :: Int -> World -> Color
selNumCol i w = fromMaybe white $ trimapAugmentInv _itInvColor invDimColor closeObjectCol w IM.!? i
invDimColor :: Color
invDimColor = greyN 0.7
invSelPos :: World -> Int
invSelPos w = splitgap + (foldl' (+) 0 . fst $ IM.split invsel (augmentedInvSizes w))
where