implemented getGoalieNumC

This commit is contained in:
Jonathan Lamothe 2019-10-24 15:53:24 -04:00
parent 67bb12920c
commit a9b5ada114
2 changed files with 11 additions and 2 deletions

View File

@ -341,7 +341,12 @@ confirmCreatePlayerC = Controller
} }
getGoalieNumC :: Controller getGoalieNumC :: Controller
getGoalieNumC = undefined getGoalieNumC = Controller
{ drawController = drawPrompt goalieNumPrompt
, handleController = \e -> do
promptHandler goalieNumPrompt e
return True
}
getGoalieNameC :: Controller getGoalieNameC :: Controller
getGoalieNameC = undefined getGoalieNameC = undefined

View File

@ -40,7 +40,8 @@ module Mtlstats.Prompt (
recordGoalPrompt, recordGoalPrompt,
recordAssistPrompt, recordAssistPrompt,
pMinPlayerPrompt, pMinPlayerPrompt,
assignPMinsPrompt assignPMinsPrompt,
goalieNumPrompt
) where ) where
import Control.Monad (when) import Control.Monad (when)
@ -245,5 +246,8 @@ assignPMinsPrompt :: Prompt
assignPMinsPrompt = numPrompt "Penalty minutes: " $ assignPMinsPrompt = numPrompt "Penalty minutes: " $
modify . assignPMins modify . assignPMins
goalieNumPrompt :: Prompt
goalieNumPrompt = undefined
drawSimplePrompt :: String -> ProgState -> C.Update () drawSimplePrompt :: String -> ProgState -> C.Update ()
drawSimplePrompt pStr s = C.drawString $ pStr ++ s^.inputBuffer drawSimplePrompt pStr s = C.drawString $ pStr ++ s^.inputBuffer