blob: cb0549a5561569f85d149cfacc6d4dc5b2e1897d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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) )
|