Move toward adding infoboxes/better creature information display

This commit is contained in:
2022-04-10 10:16:15 +01:00
parent a6fdd66b9b
commit 901fab762a
16 changed files with 44 additions and 66 deletions
+5
View File
@@ -25,6 +25,7 @@ module Picture
, lineCol
, text
, centerText
, stackText
, pictures
, concatMapPic
, appendPic
@@ -224,6 +225,10 @@ centerText :: String -> Picture
{-# INLINE centerText #-}
centerText s = translate (50 * (negate . fromIntegral $ length s - 1)) 0 $ text s
stackText :: [String] -> Picture
{-# INLINE stackText #-}
stackText = mconcat . zipWith (\y s -> translate 0 y $ centerText s) [0,100..]
text :: String -> Picture
{-# INLINE text #-}
text = map f . stringToList