Decouple selection section inventory position
This commit is contained in:
@@ -7,14 +7,14 @@ import Dodge.Render.List
|
||||
import Dodge.ScreenPos
|
||||
import Picture.Base
|
||||
|
||||
drawSelectionSections :: SelectionSections a -> ListDisplayParams -> Configuration -> Picture
|
||||
drawSelectionSections sss ldp cfig =
|
||||
drawSelectionSections :: SelectionSections a -> Maybe (Int,Int) -> ListDisplayParams -> Configuration -> Picture
|
||||
drawSelectionSections sss msel ldp cfig =
|
||||
translateScreenPos cfig (ldp ^. ldpPos) $
|
||||
drawListYgapScaleYoff
|
||||
(_ldpVerticalGap ldp)
|
||||
(_ldpScale ldp)
|
||||
0
|
||||
pics
|
||||
<> selSecDrawCursor 15 ldp sss
|
||||
<> selSecDrawCursor 15 ldp sss msel
|
||||
where
|
||||
pics = foldMap _ssShownItems (_sssSections sss)
|
||||
|
||||
Reference in New Issue
Block a user