""" screens.mainmenu - Screen for mainmenu""" from random import randrange from sliceitoff.text import TextPage 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: " f"{chr(active if selection == 0 else inactive)}" f"[{'#' * sfx_vol}{' ' * (10 - sfx_vol)}]\n\n" f"\xe7BGM: " f"{chr(active if selection == 1 else inactive)}" f"[{'#' * music_vol}{' ' * (10 - music_vol)}]\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) )