Skip to content

Commit c33a317

Browse files
Added Volume Mixer
1 parent b02c3d0 commit c33a317

File tree

15 files changed

+124
-41
lines changed

15 files changed

+124
-41
lines changed

AlgoVisual.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def main(fps):
1717
midi = Wrapper.Midi()
1818

1919
screen_group = pygame.sprite.Group()
20+
options_real_group = pygame.sprite.Group()
2021
options_screen_group = pygame.sprite.Group()
2122
sorting_group = pygame.sprite.Group()
2223
aux_sorting_group = pygame.sprite.Group()
@@ -27,7 +28,7 @@ def main(fps):
2728
scroll_bar = []
2829
sorting_actions = None
2930

30-
UI.MainMenuActions.display_main_menu(window, True, screen_group, options_screen_group)
31+
UI.MainMenuActions.display_main_menu(window, True, screen_group, options_screen_group, midi)
3132

3233
while True:
3334
# General Events should be placed here
@@ -46,10 +47,10 @@ def main(fps):
4647
# apparentally python has no switch cases?
4748
# This should only have logic for what to do when its on screen x or something like that
4849
if (window.screen == Wrapper.Screen.MAIN_MENU and window.window_size_change):
49-
UI.MainMenuActions.display_main_menu(window, False, screen_group, options_screen_group)
50+
options_real_group = UI.MainMenuActions.display_main_menu(window, False, screen_group, options_screen_group, midi)
5051
window.window_size_change = False
5152
elif (window.screen == Wrapper.Screen.MAIN_MENU and window.screen_change):
52-
UI.MainMenuActions.display_main_menu(window, True, screen_group, options_screen_group)
53+
options_real_group = UI.MainMenuActions.display_main_menu(window, True, screen_group, options_screen_group, midi)
5354
window.screen_change = False
5455
elif (window.screen == Wrapper.Screen.SORTING_SCREEN and window.screen_change):
5556
sorting_actions = UI.SortingActions(window, screen_group, sorting_group, aux_sorting_group, [scroll_group_1, scroll_group_2], options_screen_group, text_box_group, midi)
@@ -101,6 +102,7 @@ def main(fps):
101102
options_screen_group.update()
102103
text_box_group.draw(window.window)
103104
text_box_group.update(events_list)
105+
options_real_group.update()
104106

105107
# Must have to update
106108
pygame.display.update()
File renamed without changes.
File renamed without changes.

Images/Volume/volume_low.png

9.47 KB
Loading

Images/Volume/volume_max.png

5.8 KB
Loading

Images/Volume/volume_medium.png

14.9 KB
Loading
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)