Add music in breaks

For #12
This commit is contained in:
2023-06-15 11:30:47 +02:00
parent 1d080dc103
commit e27769c8f3
3 changed files with 6 additions and 0 deletions

View File

@@ -20,8 +20,10 @@ class ImagePlaceholder:
if image_path == "break":
self.is_break = True
image_path = 'assets/images/break.jpg'
self.image_window.play_elevator()
else:
self.is_break = False
self.image_window.elevator_sound.stop()
self.current_original_image = Image.open(image_path)
self.current_image = copy.deepcopy(self.current_original_image)
self.apply_options()