Add 8-way cardinal/intercardinal datatype
This commit is contained in:
@@ -19,9 +19,15 @@ data HUDElement
|
||||
}
|
||||
| DisplayCarte
|
||||
|
||||
data MouseInventorySelection = NoMouseSel
|
||||
| MouseInvSelect
|
||||
{_misSelStart :: (Int,Int), _misMaybeEnd :: Maybe (Int,Int)}
|
||||
| MouseInvChosen
|
||||
{_misChosenStart :: (Int,Int), _misChosenEnd :: (Int,Int)}
|
||||
|
||||
data SubInventory
|
||||
= NoSubInventory
|
||||
{ _nsSelected :: Maybe (Int,Int)
|
||||
{ _nsSelected :: MouseInventorySelection
|
||||
, _nsMouseOver :: Maybe (Int,Int)
|
||||
}
|
||||
| ExamineInventory
|
||||
@@ -44,3 +50,4 @@ data HUD = HUD
|
||||
makeLenses ''HUD
|
||||
makeLenses ''HUDElement
|
||||
makeLenses ''SubInventory
|
||||
makeLenses ''MouseInventorySelection
|
||||
|
||||
Reference in New Issue
Block a user