From 7a33e5020f9b1e7cf89bc532e2ddcf681f5bcf9c Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Sat, 27 Apr 2024 01:29:45 +0300 Subject: volume control --- src/sliceitoff/screens/settings.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/sliceitoff/screens/settings.py') 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( -- cgit v1.2.3