implemented pMinPlayerPrompt

This commit is contained in:
Jonathan Lamothe 2019-10-09 21:54:55 -04:00
parent ffe9b7f87f
commit afd2bac7b5

View File

@ -236,7 +236,11 @@ recordAssistPrompt game goal assist = selectPlayerPrompt
modify $ progMode.gameStateL.confirmGoalDataFlag .~ True
pMinPlayerPrompt :: Prompt
pMinPlayerPrompt = undefined
pMinPlayerPrompt = selectPlayerPrompt
"Assign penalty minutes to: " $
\case
Nothing -> modify $ progMode.gameStateL.pMinsRecorded .~ True
Just n -> modify $ progMode.gameStateL.selectedPlayer ?~ n
drawSimplePrompt :: String -> ProgState -> C.Update ()
drawSimplePrompt pStr s = C.drawString $ pStr ++ s^.inputBuffer