Continue removing LDTs
This commit is contained in:
@@ -94,11 +94,11 @@ drawRootCursor w sss msel ldp cfig = fromMaybe mempty $ do
|
||||
|
||||
getRootItemBounds :: Int -> IM.IntMap Item -> Maybe (Int, Int)
|
||||
getRootItemBounds i inv = do
|
||||
let ia = allInvLocs inv
|
||||
let ia = invIndents inv -- why indents? why OItem?
|
||||
itm <- ia ^? ix i . _2
|
||||
let root = locToTop itm
|
||||
x <- locRightmost root ^? locLDT . ldtValue . _1 . itLocation . ilInvID
|
||||
y <- locLeftmost root ^? locLDT . ldtValue . _1 . itLocation . ilInvID
|
||||
let root = locToTop' itm
|
||||
x <- locDTRightmost root ^? locDT . dtValue . _1 . itLocation . ilInvID
|
||||
y <- locDTLeftmost root ^? locDT . dtValue . _1 . itLocation . ilInvID
|
||||
return (x, y)
|
||||
|
||||
drawMouseOver :: Configuration -> World -> Picture
|
||||
|
||||
Reference in New Issue
Block a user