Fix position of continue option on pause menu
This commit is contained in:
+7
-7
@@ -93,8 +93,8 @@ gotoTerminal w = case _uvScreenLayers w of
|
||||
(InputScreen{} : _) -> w
|
||||
_ -> w & uvScreenLayers .:~ InputScreen T.empty "Enter command"
|
||||
|
||||
mouseClickOptionsList :: [MenuOption] -> ScreenLayer -> Universe -> Universe
|
||||
mouseClickOptionsList mos screen u = fromMaybe u $ do
|
||||
mouseClickOptionsList :: ScreenLayer -> Universe -> Universe
|
||||
mouseClickOptionsList screen u = fromMaybe u $ do
|
||||
sl <- screen ^? scSelectionList
|
||||
Just $ case u ^. uvWorld . input . mouseButtons . at ButtonLeft of
|
||||
Just False -> fromMaybe u $ do
|
||||
@@ -128,8 +128,8 @@ setSelectionListRestriction' cfig screen = fromMaybe screen $ do
|
||||
updateUseInput :: Universe -> Universe
|
||||
updateUseInput u = case u ^? uvScreenLayers . _head of
|
||||
Just (InputScreen thetext _) -> doInputScreenInput thetext u
|
||||
Just screen@OptionScreen{_scOptions = mos, _scPositionedMenuOption = mop, _scOptionFlag = flag, _scSelectionList = sellist, _scListDisplayParams = ldps}
|
||||
-> optionScreenUpdate screen mos mop flag ldps sellist u
|
||||
Just screen@OptionScreen{_scPositionedMenuOption = mop, _scOptionFlag = flag, _scSelectionList = sellist, _scListDisplayParams = ldps}
|
||||
-> optionScreenUpdate screen mop flag ldps sellist u
|
||||
-- Just ColumnsScreen{} -> u & uvScreenLayers %~ tail
|
||||
_ -> case u ^? uvWorld . cWorld . lWorld . hud . hudElement . subInventory of
|
||||
Just (DisplayTerminal tmid) | inTermFocus (_uvWorld u) -> updateKeysInTerminal tmid u
|
||||
@@ -137,14 +137,14 @@ updateUseInput u = case u ^? uvScreenLayers . _head of
|
||||
where
|
||||
pkeys = u ^. uvWorld . input . pressedKeys
|
||||
|
||||
optionScreenUpdate :: ScreenLayer -> [MenuOption] -> PositionedMenuOption -> OptionScreenFlag
|
||||
optionScreenUpdate :: ScreenLayer -> PositionedMenuOption -> OptionScreenFlag
|
||||
-> ListDisplayParams
|
||||
-> SelectionList (Universe -> Universe)
|
||||
-> Universe -> Universe
|
||||
optionScreenUpdate screen mos mop _ ldps sl u =
|
||||
optionScreenUpdate screen mop _ ldps sl u =
|
||||
refreshOptionsSelectionList
|
||||
. optionScreenDefEff mop
|
||||
. mouseClickOptionsList mos screen
|
||||
. mouseClickOptionsList screen
|
||||
. mouseOverSelectionList ldps sl
|
||||
. menuWheelEvents
|
||||
. over (uvScreenLayers . _head) (setSelectionListRestriction' cfig)
|
||||
|
||||
Reference in New Issue
Block a user