Use IntSet for extra selection items
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
|||||||
All good (594 modules, at 16:13:14)
|
All good (594 modules, at 16:52:02)
|
||||||
|
|||||||
@@ -21,8 +21,10 @@ import Dodge.Data.Universe
|
|||||||
import qualified IntMapHelp as IM
|
import qualified IntMapHelp as IM
|
||||||
|
|
||||||
testStringInit :: Universe -> [String]
|
testStringInit :: Universe -> [String]
|
||||||
testStringInit u = [show $
|
testStringInit u =
|
||||||
u ^? uvWorld . input . mouseContext . mcoSelEnd
|
[ show $ u ^? uvWorld . input . mouseContext . mcoSelEnd
|
||||||
|
, show $ u ^? uvWorld . hud . hudElement . diSelection
|
||||||
|
, show $ u ^? uvWorld . hud . hudElement . diSelectionExtra
|
||||||
]
|
]
|
||||||
-- fmap show $ u ^.. uvWorld . cWorld . lWorld . creatures . ix 0 . crInv . each . itLocation . ilIsRoot
|
-- fmap show $ u ^.. uvWorld . cWorld . lWorld . creatures . ix 0 . crInv . each . itLocation . ilIsRoot
|
||||||
-- , show . fmap (fmap _siPictures) $ u ^? uvWorld . hud . hudElement . diSections . ix (-1) . ssItems
|
-- , show . fmap (fmap _siPictures) $ u ^? uvWorld . hud . hudElement . diSections . ix (-1) . ssItems
|
||||||
|
|||||||
@@ -123,6 +123,9 @@ updateMouseReleaseInGame w = case w ^. input . mouseContext of
|
|||||||
OverInvDrag mpos -> fromMaybe (dropSelected w & input . mouseContext .~ MouseInGame) $ do
|
OverInvDrag mpos -> fromMaybe (dropSelected w & input . mouseContext .~ MouseInGame) $ do
|
||||||
j <- mpos
|
j <- mpos
|
||||||
return $ w & input . mouseContext .~ OverInvSelect (0,j)
|
return $ w & input . mouseContext .~ OverInvSelect (0,j)
|
||||||
|
OverInvDragSelect _ Nothing ->
|
||||||
|
w & input . mouseContext .~ MouseInGame
|
||||||
|
& hud . hudElement . diSelectionExtra .~ mempty
|
||||||
OverInvDragSelect ssel (Just esel) ->
|
OverInvDragSelect ssel (Just esel) ->
|
||||||
w & input . mouseContext .~ MouseInGame
|
w & input . mouseContext .~ MouseInGame
|
||||||
& hud . hudElement . diSelectionExtra
|
& hud . hudElement . diSelectionExtra
|
||||||
|
|||||||
Reference in New Issue
Block a user