Only show count of stacked combining items
This commit is contained in:
@@ -153,7 +153,9 @@ lnkMidInvSel cfig w lefti midi = winScale cfig
|
||||
combineCounts :: Configuration -> World -> [Int] -> Picture
|
||||
combineCounts cfig w = winScale cfig . foldMap f . group
|
||||
where
|
||||
f (i:is) = uncurryV translate (V2 10 5 +.+ selNumMidHeight cfig w i) . scale 0.1 0.1 . text . show $ length is + 1
|
||||
f (i:is) = case yourInv w ^? ix i . itConsumption of
|
||||
Just _ -> color (selNumCol i w) $ uncurryV translate (V2 10 5 +.+ selNumMidHeight cfig w i) . scale 0.1 0.1 . text . show $ length is + 1
|
||||
Nothing -> mempty
|
||||
f _ = mempty
|
||||
|
||||
lnkMidPosInvSelsCol :: Configuration -> World -> Int -> Color -> [Int] -> Picture
|
||||
|
||||
Reference in New Issue
Block a user