Allow movement when viewing terminals
This commit is contained in:
@@ -17,8 +17,11 @@ textInputFocus w = case w ^. hud . subInventory of
|
||||
CombineInventory{} -> case he ^? subInventory . ciSelection . _Just . slSec of
|
||||
Just (-1) -> Just $ hud . subInventory . ciFilter . _Just
|
||||
_ -> Nothing
|
||||
DisplayTerminal{_termID = tmid} -> return
|
||||
$ cWorld . lWorld . terminals . ix tmid . tmStatus . tiText
|
||||
DisplayTerminal{_termID = tmid} -> case w ^? cWorld . lWorld . terminals . ix tmid . tmStatus . tiText of
|
||||
Just _ -> return $ cWorld . lWorld . terminals . ix tmid . tmStatus . tiText
|
||||
Nothing -> Nothing
|
||||
-- DisplayTerminal{_termID = tmid} -> return
|
||||
-- $ cWorld . lWorld . terminals . ix tmid . tmStatus . tiText
|
||||
_ -> Nothing
|
||||
where
|
||||
he = w ^. hud
|
||||
|
||||
Reference in New Issue
Block a user