Unify inventory sections further (slow?)
This commit is contained in:
@@ -98,7 +98,7 @@ inventoryDisplay sss w cfig = listPicturesAtScaleOff
|
||||
csize <- sss ^? sssSections . ix spos . ssCursor . _Just . scurSize
|
||||
return $ listCursorDisplayParams ldps [North,South,West] cfig (yint + y) xint white 15 csize
|
||||
ldps = invDisplayParams w
|
||||
pics = foldMap (_ssShownItems) (_sssSections sss)
|
||||
pics = foldMap _ssShownItems (_sssSections sss)
|
||||
|
||||
drawSubInventory :: SubInventory -> Configuration -> World -> Picture
|
||||
drawSubInventory subinv cfig w = case subinv of
|
||||
|
||||
@@ -119,8 +119,8 @@ listCursorDisplayParams ::
|
||||
Int ->
|
||||
Int ->
|
||||
Picture
|
||||
listCursorDisplayParams ldp borders cfig yint xint col cursxsize cursysize =
|
||||
listCursorChooseBorderScale ygap s borders xoff yoff cfig yint xint col cursxsize cursysize
|
||||
listCursorDisplayParams ldp borders =
|
||||
listCursorChooseBorderScale ygap s borders xoff yoff
|
||||
where
|
||||
ygap = _ldpVerticalGap ldp
|
||||
s = _ldpScale ldp
|
||||
|
||||
Reference in New Issue
Block a user