prompt whether or not a new player/goalie is active

This commit is contained in:
Jonathan Lamothe 2020-02-13 23:28:10 -05:00
parent 8d7a7997b1
commit 439aab99d3
2 changed files with 16 additions and 2 deletions

View File

@ -57,7 +57,14 @@ getRookieFlagC = Controller
}
getActiveFlagC :: Controller
getActiveFlagC = undefined
getActiveFlagC = Controller
{ drawController = const $ do
C.drawString "Is this goalie active? (Y/N)"
return C.CursorInvisible
, handleController = \e -> do
modify $ progMode.createGoalieStateL.cgsActiveFlag .~ ynHandler e
return True
}
confirmCreateGoalieC :: Controller
confirmCreateGoalieC = Controller

View File

@ -61,7 +61,14 @@ getRookieFlagC = Controller
}
getActiveFlagC :: Controller
getActiveFlagC = undefined
getActiveFlagC = Controller
{ drawController = const $ do
C.drawString "Is the player active? (Y/N)"
return C.CursorInvisible
, handleController = \e -> do
modify $ progMode.createPlayerStateL.cpsActiveFlag .~ ynHandler e
return True
}
confirmCreatePlayerC :: Controller
confirmCreatePlayerC = Controller