Continue work on menu screens
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
module Dodge.Event.Menu (
|
||||
--optionListToEffects,
|
||||
) where
|
||||
|
||||
import Control.Lens
|
||||
import Data.Maybe
|
||||
import Dodge.Data.Universe
|
||||
import Dodge.WindowLayout
|
||||
import SDL
|
||||
|
||||
--optionListToEffects ::
|
||||
-- (Universe -> Universe) ->
|
||||
-- Scancode ->
|
||||
-- [MenuOption] ->
|
||||
-- Universe ->
|
||||
-- Universe
|
||||
--optionListToEffects defaulteff sc mops u = case sc of
|
||||
-- ScancodeSpace ->
|
||||
-- (uvScreenLayers . ix 0 . scOptionsOffset %~ (f . (+ mlines)))
|
||||
-- u
|
||||
-- _ ->
|
||||
-- ( fromMaybe defaulteff
|
||||
-- . lookup sc
|
||||
-- . concatMap menuOptionToEffects
|
||||
-- $ mops
|
||||
-- )
|
||||
-- u
|
||||
-- where
|
||||
-- f x
|
||||
-- | x > length mops = 0
|
||||
-- | otherwise = x
|
||||
-- mlines = availableMenuLines $ _uvConfig u
|
||||
|
||||
Reference in New Issue
Block a user