implemented assignPMinsPrompt
This commit is contained in:
parent
1a481ab49d
commit
3d1f6170f6
|
@ -36,6 +36,7 @@ module Mtlstats.Actions
|
|||
, awardGoal
|
||||
, awardAssist
|
||||
, resetGoalData
|
||||
, assignPMins
|
||||
) where
|
||||
|
||||
import Control.Monad.Trans.State (modify)
|
||||
|
@ -210,3 +211,11 @@ resetGoalData ps = ps & progMode.gameStateL
|
|||
%~ (goalBy .~ Nothing)
|
||||
. (assistsBy .~ [])
|
||||
. (confirmGoalDataFlag .~ False)
|
||||
|
||||
-- | Adds penalty minutes to a player
|
||||
assignPMins
|
||||
:: Int
|
||||
-- ^ The number of minutes to add
|
||||
-> ProgState
|
||||
-> ProgState
|
||||
assignPMins = undefined
|
||||
|
|
|
@ -244,7 +244,8 @@ pMinPlayerPrompt = selectPlayerPrompt
|
|||
Just n -> modify $ progMode.gameStateL.selectedPlayer ?~ n
|
||||
|
||||
assignPMinsPrompt :: Prompt
|
||||
assignPMinsPrompt = undefined
|
||||
assignPMinsPrompt = numPrompt "Penalty minutes: " $
|
||||
modify . assignPMins
|
||||
|
||||
drawSimplePrompt :: String -> ProgState -> C.Update ()
|
||||
drawSimplePrompt pStr s = C.drawString $ pStr ++ s^.inputBuffer
|
||||
|
|
Loading…
Reference in New Issue
Block a user