call selectGameGoalieC when goalie info entered for game
This commit is contained in:
parent
2a9ff93642
commit
7fd837863b
@ -34,6 +34,7 @@ import Mtlstats.Util
|
|||||||
-- | The dispatcher for handling goalie input
|
-- | The dispatcher for handling goalie input
|
||||||
goalieInput :: GameState -> Controller
|
goalieInput :: GameState -> Controller
|
||||||
goalieInput gs
|
goalieInput gs
|
||||||
|
| gs^.gameGoaliesRecorded = selectGameGoalieC
|
||||||
| null $ gs^.gameSelectedGoalie = selectGoalieC
|
| null $ gs^.gameSelectedGoalie = selectGoalieC
|
||||||
| null $ gs^.gameGoalieMinsPlayed = minsPlayedC
|
| null $ gs^.gameGoalieMinsPlayed = minsPlayedC
|
||||||
| otherwise = goalsAllowedC
|
| otherwise = goalsAllowedC
|
||||||
@ -47,6 +48,9 @@ minsPlayedC = promptControllerWith header goalieMinsPlayedPrompt
|
|||||||
goalsAllowedC :: Controller
|
goalsAllowedC :: Controller
|
||||||
goalsAllowedC = promptControllerWith header goalsAllowedPrompt
|
goalsAllowedC = promptControllerWith header goalsAllowedPrompt
|
||||||
|
|
||||||
|
selectGameGoalieC :: Controller
|
||||||
|
selectGameGoalieC = undefined
|
||||||
|
|
||||||
header :: ProgState -> C.Update ()
|
header :: ProgState -> C.Update ()
|
||||||
header s = C.drawString $ unlines
|
header s = C.drawString $ unlines
|
||||||
[ "*** GAME " ++ padNum 2 (s^.database.dbGames) ++ " ***"
|
[ "*** GAME " ++ padNum 2 (s^.database.dbGames) ++ " ***"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user