implemented pMinPlayerPrompt
This commit is contained in:
1 parent
ffe9b7f87f
commit
afd2bac7b5
1 file changed
+5
-1
@@ -236,7 +236,11 @@ recordAssistPrompt game goal assist = selectPlayerPrompt
|
|||||||
modify $ progMode.gameStateL.confirmGoalDataFlag .~ True
|
modify $ progMode.gameStateL.confirmGoalDataFlag .~ True
|
||||||
|
|
||||||
pMinPlayerPrompt :: Prompt
|
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 :: String -> ProgState -> C.Update ()
|
||||||
drawSimplePrompt pStr s = C.drawString $ pStr ++ s^.inputBuffer
|
drawSimplePrompt pStr s = C.drawString $ pStr ++ s^.inputBuffer
|
||||||
Reference in new issue
Block a user