implemented goalie name prompt
This commit is contained in:
parent
ec914a38b1
commit
0812ae3ddd
|
@ -349,7 +349,12 @@ getGoalieNumC = Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
getGoalieNameC :: Controller
|
getGoalieNameC :: Controller
|
||||||
getGoalieNameC = undefined
|
getGoalieNameC = Controller
|
||||||
|
{ drawController = drawPrompt goalieNamePrompt
|
||||||
|
, handleController = \e -> do
|
||||||
|
promptHandler goalieNamePrompt e
|
||||||
|
return True
|
||||||
|
}
|
||||||
|
|
||||||
confirmCreateGoalieC :: Controller
|
confirmCreateGoalieC :: Controller
|
||||||
confirmCreateGoalieC = undefined
|
confirmCreateGoalieC = undefined
|
||||||
|
|
|
@ -41,7 +41,8 @@ module Mtlstats.Prompt (
|
||||||
recordAssistPrompt,
|
recordAssistPrompt,
|
||||||
pMinPlayerPrompt,
|
pMinPlayerPrompt,
|
||||||
assignPMinsPrompt,
|
assignPMinsPrompt,
|
||||||
goalieNumPrompt
|
goalieNumPrompt,
|
||||||
|
goalieNamePrompt
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Control.Monad (when)
|
import Control.Monad (when)
|
||||||
|
@ -250,5 +251,9 @@ goalieNumPrompt :: Prompt
|
||||||
goalieNumPrompt = numPrompt "Goalie number: " $
|
goalieNumPrompt = numPrompt "Goalie number: " $
|
||||||
modify . (progMode.createGoalieStateL.cgsNumber ?~)
|
modify . (progMode.createGoalieStateL.cgsNumber ?~)
|
||||||
|
|
||||||
|
goalieNamePrompt :: Prompt
|
||||||
|
goalieNamePrompt = strPrompt "Goalie name: " $
|
||||||
|
modify . (progMode.createGoalieStateL.cgsName .~)
|
||||||
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user