From 220211bf89e5c873c2ee694b14ab70578188a36c Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Fri, 26 Apr 2024 22:55:30 +0300 Subject: setting mainmenu item --- src/sliceitoff/display/static.py | 2 +- src/sliceitoff/game/mainmenu.py | 3 ++- src/sliceitoff/screens/mainmenu.py | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/sliceitoff/display/static.py b/src/sliceitoff/display/static.py index fdbba3c..5bbea08 100644 --- a/src/sliceitoff/display/static.py +++ b/src/sliceitoff/display/static.py @@ -31,4 +31,4 @@ RAINBOW_COLORS=[ CGA_COLORS[10], CGA_COLORS[14], CGA_COLORS[12], -] \ No newline at end of file +] diff --git a/src/sliceitoff/game/mainmenu.py b/src/sliceitoff/game/mainmenu.py index f9a70e0..8db0536 100644 --- a/src/sliceitoff/game/mainmenu.py +++ b/src/sliceitoff/game/mainmenu.py @@ -15,7 +15,8 @@ class MenuItems(IntEnum): NEWGAME = 0 HISCORES = 1 INSTRUCT = 2 - QUIT = 3 + SETTINGS = 3 + QUIT = 4 class Mainmenu(ExplodeOutGroup): """ sprite group with imputs to make selection """ diff --git a/src/sliceitoff/screens/mainmenu.py b/src/sliceitoff/screens/mainmenu.py index 17def9a..ce69aa1 100644 --- a/src/sliceitoff/screens/mainmenu.py +++ b/src/sliceitoff/screens/mainmenu.py @@ -16,9 +16,11 @@ def mainmenu_screen(selection): f"{chr(active if selection == 2 else inactive)}" f"Instructions\n\n" f"{chr(active if selection == 3 else inactive)}" + f"Settings\n\n" + f"{chr(active if selection == 4 else inactive)}" f"Quit, Why?") return TextPage( text, font = '8x8', size = (16_000, 16_000), - pos = (24_000, 32_000) ) + pos = (32_000, 16_000) ) -- cgit v1.2.3