Correctly display held root item
This commit is contained in:
@@ -24,7 +24,14 @@ import Dodge.Data.Universe
|
||||
import qualified IntMapHelp as IM
|
||||
|
||||
testStringInit :: Universe -> [String]
|
||||
testStringInit u = [show $ length <$> u ^.. uvWorld . cWorld . lWorld . lights]
|
||||
testStringInit u = [show $ u ^? uvWorld . cWorld . lWorld . creatures . ix 0 .
|
||||
crManipulation . manObject . imRootSelectedItem]
|
||||
-- fromMaybe mempty $ do
|
||||
-- cr <- u ^? uvWorld . cWorld . lWorld . creatures . ix 0
|
||||
-- let itms = IM.elems $ cr ^. crInv
|
||||
-- return $ map (show . (^? itLocation . ilIsSelected)) itms
|
||||
--return . foldMap (prettyLDT (show . (^. _1 . itType))) . invLDT $ _crInv cr
|
||||
|
||||
-- [ show $ u ^? uvWorld . input . mouseContext . mcoSelEnd
|
||||
-- , show $ u ^? uvWorld . hud . hudElement . diSelection
|
||||
-- , show $ u ^? uvWorld . input . mouseContext
|
||||
|
||||
Reference in New Issue
Block a user