diff options
author | Viljami Ilola <+@hix.fi> | 2024-04-27 01:29:45 +0300 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-04-27 01:29:45 +0300 |
commit | 7a33e5020f9b1e7cf89bc532e2ddcf681f5bcf9c (patch) | |
tree | 544e868288f05213452dec9b7b789bd1eb208191 /src/sliceitoff/screens/settings.py | |
parent | a4794437d561a01c8bea12d59502e4cc72acfbea (diff) |
volume control
Diffstat (limited to 'src/sliceitoff/screens/settings.py')
-rw-r--r-- | src/sliceitoff/screens/settings.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sliceitoff/screens/settings.py b/src/sliceitoff/screens/settings.py index cb0549a..c987126 100644 --- a/src/sliceitoff/screens/settings.py +++ b/src/sliceitoff/screens/settings.py @@ -2,19 +2,19 @@ from random import randrange from sliceitoff.text import TextPage -def settings_screen(selection): +def settings_screen(selection, sfx_vol, music_vol): """ Screen where current selection is flashing """ active = randrange(0xe9,0xf0) inactive = 0xe7 text = ( f" Settings:\n" f"\n\n" - f"\xe7SFX Volume:\n" + f"\xe7SFX: " f"{chr(active if selection == 0 else inactive)}" - f" [ ]\n\n" - f"\xe7Music Volume:\n" + f"[{'#' * sfx_vol}{' ' * (10 - sfx_vol)}]\n\n" + f"\xe7BGM: " f"{chr(active if selection == 1 else inactive)}" - f" [ ]\n\n" + f"[{'#' * music_vol}{' ' * (10 - music_vol)}]\n\n" f"{chr(active if selection == 2 else inactive)}" f"Back.") return TextPage( |