Skip to content

Commit

Permalink
wip: attempt to resume music when naving back to worldmap
Browse files Browse the repository at this point in the history
  • Loading branch information
russmatney committed Feb 7, 2024
1 parent 7ddad5c commit 7219647
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/menus/worldmap/WorldMapMenu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ func _ready():

start_puzzle_set_button.pressed.connect(on_start_button_pressed)

# TODO resume music when naving back to here
# visibility_changed.connect(on_visibility_changed)

# func on_visibility_changed():
# if not Engine.is_editor_hint() and get_children()[0].is_visible_in_tree():
# SoundManager.play_music(Music.late_night_radio)

func set_puzzle_set():
current_puzzle_set_idx = clamp(current_puzzle_set_idx, 0, len(puzzle_sets) - 1)
current_puzzle_set = puzzle_sets[current_puzzle_set_idx]
Expand Down

0 comments on commit 7219647

Please sign in to comment.