From 9682aa0af325e3140a9af88b196a2ad2cb8beac9 Mon Sep 17 00:00:00 2001 From: Jonathan Lamothe Date: Thu, 14 Nov 2019 00:26:17 -0500 Subject: [PATCH] implemented editGoalieYtdMenu --- src/Mtlstats/Menu/EditGoalie.hs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Mtlstats/Menu/EditGoalie.hs b/src/Mtlstats/Menu/EditGoalie.hs index 3023747..c1857aa 100644 --- a/src/Mtlstats/Menu/EditGoalie.hs +++ b/src/Mtlstats/Menu/EditGoalie.hs @@ -48,4 +48,15 @@ editGoalieMenu = Menu "*** EDIT GOALTENDER ***" () $ map -- | The 'Goalie' YTD edit menu editGoalieYtdMenu :: Menu () -editGoalieYtdMenu = undefined +editGoalieYtdMenu = Menu "*** EDIT GOALTENDER YEAR-TO-DATE ***" () $ map + (\(key, label, val) -> MenuItem key label $ + modify $ progMode.editGoalieStateL.egsMode .~ val) + -- key, label, value + [ ( '1', "Edit YTD games", EGYtdGames ) + , ( '2', "Edit YTD minutes", EGYtdMins ) + , ( '3', "Edit YTD goals", EGYtdGoals ) + , ( '4', "Edit YTD wins", EGYtdWins ) + , ( '5', "Edit YTD losses", EGYtdLosses ) + , ( '6', "Edit YTD ties", EGYtdTies ) + , ( 'R', "Return to edit menu", EGMenu ) + ]