Distinguish between selected item and root-selected item

This commit is contained in:
2024-09-21 21:59:53 +01:00
parent 2154abfb1d
commit 31b5db6e9e
33 changed files with 313 additions and 281 deletions
+2 -1
View File
@@ -35,7 +35,8 @@ data Item = Item
, _itType :: ItemType
, _itID :: Int
, _itLocation :: ItemLocation
, _itIsHeld :: Bool
, _itIsRoot :: Bool
, _itIsSelected :: Bool
, _itEffect :: ItEffect
, _itInvSize :: Float
, _itDimension :: ItemDimension
+2 -2
View File
@@ -23,8 +23,8 @@ data Huse
| HeldDetectorEffect Detector
-- | HeldTeslaArc
-- | HeldLaser
| HeldCircleLaser
| HeldDualLaser
-- | HeldCircleLaser
-- | HeldDualLaser
| HeldTractor
| HeldForceField
| HeldShatter
@@ -30,7 +30,7 @@ data NearbyManipulation
data InventoryManipulation
= SortInventory
| SelItem { _ispItem :: Int, _iselAction :: InvSelAction}
| SelectedItem { _imSelectedItem :: Int, _imRootItem :: Int}
deriving (Eq, Ord, Show, Read) --Generic, Flat)
data InvSelAction