Work on terminals, add deactive data type status
This commit is contained in:
+2
-5
@@ -397,11 +397,8 @@ updateMouseContextGame cfig u = case u ^. uvWorld . input . mouseContext of
|
||||
tm <- w ^? cWorld . lWorld . terminals . ix tmid
|
||||
return $
|
||||
if isOverTerminalScreen cfig mpos
|
||||
then fromMaybe NoMouseContext $ do
|
||||
let s = tm ^. tmStatus . tiText
|
||||
guard $ not (null s) -- && _tmStatus tm == TerminalTextInput
|
||||
return $ OverTerminalReturn tmid
|
||||
else OverTerminalEscape
|
||||
then OverTerminal tmid (tm ^. tmStatus)
|
||||
else OutsideTerminal
|
||||
|
||||
getMenuMouseContext :: ScreenLayer -> Universe -> MouseContext
|
||||
getMenuMouseContext screen u = case screen ^. scOptions of
|
||||
|
||||
Reference in New Issue
Block a user