Partial fix of inventory rendering
This commit is contained in:
@@ -46,6 +46,7 @@ module Picture
|
||||
, mixColors
|
||||
, zeroZ
|
||||
, setDepth
|
||||
, addDepth
|
||||
, setLayer
|
||||
)
|
||||
where
|
||||
@@ -148,6 +149,10 @@ setDepth :: Float -> Picture -> Picture
|
||||
{-# INLINE setDepth #-}
|
||||
setDepth d = OverPic (\(x,y,_) -> (x,y,d)) id
|
||||
|
||||
addDepth :: Float -> Picture -> Picture
|
||||
{-# INLINE addDepth #-}
|
||||
addDepth d = OverPic (\(x,y,z) -> (x,y,z+d)) id
|
||||
|
||||
setLayer :: Int -> Picture -> Picture
|
||||
{-# INLINE setLayer #-}
|
||||
setLayer = OnLayer
|
||||
|
||||
Reference in New Issue
Block a user