This commit is contained in:
2025-08-27 19:22:01 +01:00
parent 40d2d316cb
commit dda0526180
9 changed files with 131 additions and 138 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
module Dodge.Update.Input.ScreenLayer (
updateUseInputOnScreen,
ldpVerticalSelection,
ldpSelection,
) where
import Dodge.SoundLogic.ExternallyGeneratedSounds
@@ -71,8 +71,8 @@ mouseClickOptionsList u = fromMaybe u $ do
return $ f u & uvSoundQueue .:~ click1S
_ -> Nothing
ldpVerticalSelection :: Config -> ListDisplayParams -> Point2 -> Maybe Int
ldpVerticalSelection cfig ldp (V2 _ y)
ldpSelection :: Config -> ListDisplayParams -> Point2 -> Maybe Int
ldpSelection cfig ldp (V2 _ y)
| yupper == ylower = Just yupper
| otherwise = Nothing
where
@@ -86,4 +86,4 @@ ldpVerticalSelection cfig ldp (V2 _ y)
setSelectionListRestriction :: Config -> ScreenLayer -> ScreenLayer
setSelectionListRestriction cfig =
scAvailableLines .~ getAvailableListLines menuDisplayParams cfig
scAvailableLines .~ getAvailableListLines menuLDP cfig