Add "equipped" text
This commit is contained in:
@@ -5,6 +5,7 @@ module Dodge.Inventory
|
||||
, invSelPos
|
||||
, invSelSize
|
||||
, selNumPos
|
||||
, selNumTextPos
|
||||
, selNumCol
|
||||
, selNumSlots
|
||||
, selNumMidHeight
|
||||
@@ -93,6 +94,13 @@ selNumPos i w = splitgap + (foldl' (+) 0 . fst $ IM.split i (augmentedInvSizes w
|
||||
| i < length (yourInv w) = 0
|
||||
| otherwise = 1
|
||||
|
||||
selNumTextPos :: Configuration -> World -> Int -> Point2
|
||||
selNumTextPos cfig w i = V2 (150 - hw) ( hh + 20 * fromIntegral ipos + 7.5)
|
||||
where
|
||||
hh = halfHeight cfig
|
||||
hw = halfWidth cfig
|
||||
ipos = selNumPos i w
|
||||
|
||||
selNumMidHeight :: Configuration -> World -> Int -> Point2
|
||||
selNumMidHeight cfig w i = V2 (150 - hw) ( hh + bump - (20 * fromIntegral ipos + 7.5))
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user