Start collapsing manipulated item code with selection code
This commit is contained in:
@@ -103,9 +103,11 @@ rmInvItem cid invid w =
|
||||
-- | i < _unNInt invid = IS.insert i x
|
||||
-- | otherwise = x
|
||||
updateselection
|
||||
| cid == 0 && w ^? hud . manObject . imSelectedItem == Just invid =
|
||||
| cid == 0 && (w ^? hud .diSelection._Just) == Just (Sel 0 (invid^.unNInt)) =
|
||||
--revise2 | cid == 0 && w ^? hud . manObject . imSelectedItem == Just invid =
|
||||
scrollAugInvSel (-1) . scrollAugInvSel 1
|
||||
| otherwise = hud . manObject . imSelectedItem %~ g
|
||||
| otherwise = id -- hud . manObject . imSelectedItem %~ g
|
||||
--revise2 | otherwise = hud . manObject . imSelectedItem %~ g
|
||||
cr = w ^?! cWorld . lWorld . creatures . ix cid
|
||||
itid = _crInv cr ^?! ix invid
|
||||
itm = w ^?! cWorld . lWorld . items . ix itid
|
||||
|
||||
Reference in New Issue
Block a user