Record mouse over combination selections

This commit is contained in:
2024-11-04 00:40:24 +00:00
parent fafef1275b
commit c1b1611279
7 changed files with 175 additions and 144 deletions
+10
View File
@@ -280,6 +280,7 @@ functionalUpdate u =
. over uvWorld updateWheelEvents
. over uvWorld (updateMouseInventorySelection (u ^. uvConfig))
. over uvWorld (updateMouseOverInventory (u ^. uvConfig))
. over uvWorld (updateMouseOverCombineInventory (u ^. uvConfig))
. over uvWorld zoneClouds
. over uvWorld zoneCreatures
-- . over uvWorld updateInventorySelectionList
@@ -387,6 +388,15 @@ updateMouseOverInventory cfig w = fromMaybe w $ do
where
ldp = invDisplayParams w
updateMouseOverCombineInventory :: Configuration -> World -> World
updateMouseOverCombineInventory cfig w = fromMaybe w $ do
sss <- w ^? hud . hudElement . subInventory . ciSections
return $
w & hud . hudElement . subInventory . ciMouseOver
.~ inverseSelNumPos cfig ldp sss (w ^. input . mousePos)
where
ldp = secondColumnParams
updateWheelEvents :: World -> World
updateWheelEvents w
| yi == 0 = w