summaryrefslogtreecommitdiff
path: root/src/sliceitoff/menu/mainmenu.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sliceitoff/menu/mainmenu.py')
-rw-r--r--src/sliceitoff/menu/mainmenu.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/sliceitoff/menu/mainmenu.py b/src/sliceitoff/menu/mainmenu.py
new file mode 100644
index 0000000..9ba9096
--- /dev/null
+++ b/src/sliceitoff/menu/mainmenu.py
@@ -0,0 +1,18 @@
+""" menu.mainmenu - Let's user choose """
+from enum import IntEnum
+
+from sliceitoff.screens import mainmenu_screen
+from .menu import Menu
+
+class MainMenuItems(IntEnum):
+ """ Items in the menu. Should match mainmenu_screen """
+ NEWGAME = 0
+ HISCORES = 1
+ INSTRUCT = 2
+ SETTINGS = 3
+ QUIT = 4
+
+class MainMenu(Menu):
+ """ Main menu """
+ def __init__(self):
+ super().__init__(mainmenu_screen, len(MainMenuItems))