Move config options
This commit is contained in:
@@ -79,7 +79,7 @@ mcSPic bt = uncurryV translateSPf (_mcPos bt)
|
||||
|
||||
soundPics :: Configuration -> World -> Picture
|
||||
soundPics cfig w
|
||||
| _show_sound cfig = pictures $ M.map (soundPic cfig w) $ _playingSounds w
|
||||
| _debug_show_sound cfig = pictures $ M.map (soundPic cfig w) $ _playingSounds w
|
||||
| otherwise = []
|
||||
|
||||
soundPic :: Configuration -> World -> Sound -> Picture
|
||||
@@ -122,9 +122,9 @@ crDisplayInfo cfig w cr
|
||||
|
||||
drawCrInfo :: Configuration -> World -> Picture
|
||||
drawCrInfo cfig w
|
||||
-- | _debug_cr_awareness cfig = setLayer FixedCoordLayer
|
||||
-- $ renderInfoListsAt (2*hw - 200) 0 cfig w
|
||||
-- $ mapMaybe (crDisplayInfo cfig w) $ IM.elems $ _creatures w
|
||||
| _debug_cr_status cfig = setLayer FixedCoordLayer
|
||||
$ renderInfoListsAt (2*hw - 200) 0 cfig w
|
||||
$ mapMaybe (crDisplayInfo cfig w) $ IM.elems $ _creatures w
|
||||
| otherwise = mempty
|
||||
where
|
||||
hw = halfWidth cfig
|
||||
|
||||
Reference in New Issue
Block a user