prompt whether or not a new player/goalie is active

This commit is contained in:
Jonathan Lamothe committed 2020-02-13 23:28:10 -05:00
1 parent 8d7a7997b1
commit 439aab99d3
2 files changed
+16 -2

No files matched your search

+8 -1
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
+8 -1
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