implement position selection prompt on player creation/edit
This commit is contained in:
parent
b9d8b263df
commit
dfd226c7bd
|
@ -238,7 +238,7 @@ playerNamePrompt = namePrompt "Player name: " $
|
|||
|
||||
-- | Prompts for a new player's position
|
||||
playerPosPrompt :: Prompt
|
||||
playerPosPrompt = ucStrPrompt "Player position: " $
|
||||
playerPosPrompt = selectPositionPrompt "Player position: " $
|
||||
modify . (progMode.createPlayerStateL.cpsPosition .~)
|
||||
|
||||
-- | Prompts tor the goalie's number
|
||||
|
|
|
@ -62,7 +62,7 @@ editPlayerPosPrompt
|
|||
:: Action ()
|
||||
-- ^ The action to be performed upon completion
|
||||
-> Prompt
|
||||
editPlayerPosPrompt callback = ucStrPrompt "Player position: " $ \pos -> do
|
||||
editPlayerPosPrompt callback = selectPositionPrompt "Player position: " $ \pos -> do
|
||||
if null pos
|
||||
then goto EPMenu
|
||||
else doEdit EPMenu $ pPosition .~ pos
|
||||
|
|
Loading…
Reference in New Issue
Block a user