diff options
author | Viljami Ilola <+@hix.fi> | 2024-04-26 23:21:22 +0300 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-04-26 23:21:22 +0300 |
commit | 54cf5ab6dde77dff1afe177b33a054925569a0cf (patch) | |
tree | 4d37391b38104546ef2321ecb6d48ad2b6624cb2 /src/sliceitoff/screens/settings.py | |
parent | 220211bf89e5c873c2ee694b14ab70578188a36c (diff) |
settings submenu
Diffstat (limited to 'src/sliceitoff/screens/settings.py')
-rw-r--r-- | src/sliceitoff/screens/settings.py | 24 |
1 files changed, 24 insertions, 0 deletions
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) ) |