summaryrefslogtreecommitdiff
path: root/src/sliceitoff/screens
diff options
context:
space:
mode:
Diffstat (limited to 'src/sliceitoff/screens')
-rw-r--r--src/sliceitoff/screens/__init__.py1
-rw-r--r--src/sliceitoff/screens/settings.py24
2 files changed, 25 insertions, 0 deletions
diff --git a/src/sliceitoff/screens/__init__.py b/src/sliceitoff/screens/__init__.py
index 6b5165e..ac83714 100644
--- a/src/sliceitoff/screens/__init__.py
+++ b/src/sliceitoff/screens/__init__.py
@@ -6,5 +6,6 @@ from .level import level_screen
from .initials import initials_screen
from .hiscores import hiscores_screen
from .mainmenu import mainmenu_screen
+from .settings import settings_screen
from .instructions1 import instructions1_screen
from .instructions2 import instructions2_screen
diff --git a/src/sliceitoff/screens/settings.py b/src/sliceitoff/screens/settings.py
new file mode 100644
index 0000000..cb0549a
--- /dev/null
+++ b/src/sliceitoff/screens/settings.py
@@ -0,0 +1,24 @@
+""" screens.mainmenu - Screen for mainmenu"""
+from random import randrange
+from sliceitoff.text import TextPage
+
+def settings_screen(selection):
+ """ Screen where current selection is flashing """
+ active = randrange(0xe9,0xf0)
+ inactive = 0xe7
+ text = (
+ f" Settings:\n"
+ f"\n\n"
+ f"\xe7SFX Volume:\n"
+ f"{chr(active if selection == 0 else inactive)}"
+ f" [ ]\n\n"
+ f"\xe7Music Volume:\n"
+ f"{chr(active if selection == 1 else inactive)}"
+ f" [ ]\n\n"
+ f"{chr(active if selection == 2 else inactive)}"
+ f"Back.")
+ return TextPage(
+ text,
+ font = '8x8',
+ size = (16_000, 16_000),
+ pos = (32_000, 16_000) )