Allow dragging of selected items in inventory
This commit is contained in:
+10
-7
@@ -19,19 +19,22 @@ data HUDElement
|
||||
}
|
||||
| DisplayCarte
|
||||
|
||||
data MouseInventorySelection = NoMouseSel
|
||||
| MouseInvSelect
|
||||
{_misSelStart :: (Int,Int), _misMaybeEnd :: Maybe (Int,Int)}
|
||||
| MouseInvChosen
|
||||
{_misChosenStart :: (Int,Int), _misChosenEnd :: (Int,Int)}
|
||||
data MouseInventorySelection
|
||||
= NoMouseSel
|
||||
| MouseInvSelect
|
||||
{_misSelStart :: (Int, Int), _misMaybeEnd :: Maybe (Int, Int)}
|
||||
| MouseInvChosen
|
||||
{ _misChosenStart :: (Int, Int)
|
||||
, _misChosenEnd :: (Int, Int)
|
||||
}
|
||||
|
||||
data SubInventory
|
||||
= NoSubInventory
|
||||
{ _nsSelected :: MouseInventorySelection
|
||||
, _nsMouseOver :: Maybe (Int,Int)
|
||||
, _nsMouseOver :: Maybe (Int, Int)
|
||||
}
|
||||
| ExamineInventory
|
||||
| CombineInventory { _ciSections :: SelectionSections CombinableItem }
|
||||
| CombineInventory {_ciSections :: SelectionSections CombinableItem}
|
||||
| LockedInventory
|
||||
| DisplayTerminal {_termID :: Int}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user