Get rid of world hammers

This commit is contained in:
2023-01-16 01:52:12 +00:00
parent 43e3c1fe4c
commit 5810c2262a
9 changed files with 40 additions and 86 deletions
+13 -2
View File
@@ -6,7 +6,6 @@ module Dodge.Render.HUD (
import SelectionIntMap
import Dodge.Data.Combine
import Dodge.Default.SelectionList
import Dodge.Combine
import Dodge.Creature.Info
import Control.Lens
import qualified Data.Map.Strict as M
@@ -90,7 +89,7 @@ drawSubInventory subinv cfig w = case subinv of
let mi = _smSelPos sl
in titledSub'
cfig
("COMBINE")
"COMBINE"
sl
<> combineInventoryExtra sl mi cfig w
@@ -445,6 +444,18 @@ mainListCursor c = openCursorAt 120 c 5 0
textSelItems :: [String] -> [SelectionItem ()]
textSelItems = map (picsToSelectable 15 . (: []))
picsToSelectable :: Int -> [String] -> SelectionItem ()
picsToSelectable wdth pics =
SelectionItem
{ _siPictures = pics
, _siHeight = length pics
, _siIsSelectable = True
, _siWidth = wdth
, _siColor = white
, _siOffX = 0
, _siPayload = ()
}
openCursorAt ::
-- | Width
Float ->