blob: 9ba90967c63fd35fdaad057466abf122a37023a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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))
|