Allow for inventory item bolding
This commit is contained in:
@@ -158,12 +158,18 @@ updateUniverseMid u = case _uvScreenLayers u of
|
||||
(sl : _) -> u & uvWorld . unpauseClock .~ 0 & updateUseInputOnScreen sl
|
||||
[] ->
|
||||
(uvWorld . unpauseClock +~ 1)
|
||||
. (uvWorld . cWorld . highlightItems %~ IM.mapMaybe minusone)
|
||||
-- . (uvWorld . cWorld . highlightItems . filteredBy . non 0 -~ 1)
|
||||
. timeFlowUpdate
|
||||
. updateUseInputInGame
|
||||
$ over
|
||||
uvWorld
|
||||
(updateMouseInGame (u ^. uvConfig) . updateCamera (u ^. uvConfig))
|
||||
u
|
||||
where
|
||||
minusone x
|
||||
| x > 0 = Just $ x - 1
|
||||
| otherwise = Nothing
|
||||
|
||||
timeFlowUpdate :: Universe -> Universe
|
||||
timeFlowUpdate u = case u ^. uvWorld . timeFlow of
|
||||
|
||||
Reference in New Issue
Block a user