Add fields to determine an item's inventory position/whether it is held
This commit is contained in:
@@ -14,7 +14,7 @@ import Geometry
|
||||
|
||||
renderInfoListAt :: Float -> Float -> Configuration -> World -> (Point2,[String]) -> Picture
|
||||
renderInfoListAt x y cfig w (p,ss) = renderListAt x y cfig (zip ss (repeat yellow))
|
||||
<> winScale cfig (color yellow $ lConnect (V2 (x-hw) (hh-20-y)) (worldPosToScreen w p))
|
||||
<> winScale cfig (color yellow $ lConnect (V2 (x-hw) (hh-25-y)) (worldPosToScreen w p))
|
||||
<> listCursorNSW x y cfig 0 yellow 19 (length ss)
|
||||
where
|
||||
hw = halfWidth cfig
|
||||
|
||||
Reference in New Issue
Block a user