Centralise mouse context data

This commit is contained in:
2024-11-10 18:26:30 +00:00
parent f35dfc66bd
commit 713d3e3265
10 changed files with 123 additions and 125 deletions
-2
View File
@@ -21,7 +21,6 @@ data HUDElement
, _diInvFilter :: Maybe String
, _diCloseFilter :: Maybe String
, _diSelectionExtra :: Int
, _diMouseOver :: Maybe (Int, Int)
}
| DisplayCarte
@@ -40,7 +39,6 @@ data SubInventory
{ _ciSections :: IntMap (SelectionSection CombinableItem)
, _ciSelection :: Maybe (Int, Int)
, _ciFilter :: Maybe String
, _ciMouseOver :: Maybe (Int,Int)
}
| LockedInventory
| DisplayTerminal {_termID :: Int}
+3 -2
View File
@@ -18,8 +18,8 @@ data PressType
data MouseContext
= NoMouseContext
| OverInv (Int,Int)
| OverCombInv (Int,Int)
| OverInv { _mcoInv :: (Int,Int)}
| OverCombInv { _mcoCombInv :: (Int,Int)}
| OverTerminalScreen
data Input = Input
@@ -51,3 +51,4 @@ data TermSignal
| TSdown
makeLenses ''Input
makeLenses ''MouseContext