Cleanup
This commit is contained in:
@@ -131,10 +131,11 @@ getMouseInvSel w = case w ^? hud . hudElement . subInventory . nsSelected of
|
||||
|
||||
drawDISelections :: World -> Picture
|
||||
drawDISelections w = fromMaybe mempty $ do
|
||||
((_, j), (_, b)) <- getMouseInvSel w
|
||||
((i, j), (a, b)) <- getMouseInvSel w
|
||||
guard $ i == a
|
||||
sss <- w ^? hud . hudElement . diSections
|
||||
let idp = invDisplayParams w
|
||||
let f x = selSecDrawCursorAt 15 idp BackdropCursor sss (0,x)
|
||||
let f x = selSecDrawCursorAt 15 idp BackdropCursor sss (i,x)
|
||||
return . color (withAlpha 0.2 white) . foldMap f $ [min j b..max j b]
|
||||
|
||||
drawSubInventory :: SubInventory -> Configuration -> World -> Picture
|
||||
|
||||
Reference in New Issue
Block a user