mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-01 20:42:01 +02:00
Add first background music, always move focus back to the command line
This commit is contained in:
parent
13dc516edf
commit
b9b32c66e4
11 changed files with 90 additions and 17 deletions
scenes
|
@ -66,7 +66,7 @@ func load_level(level_id):
|
|||
$Menu/CLIBadge.active = true
|
||||
$Menu/CLIBadge.sparkling = false
|
||||
|
||||
AudioServer.set_bus_mute(AudioServer.get_bus_index("Master"), true)
|
||||
AudioServer.set_bus_mute(AudioServer.get_bus_index("SFX"), true)
|
||||
|
||||
levels.chapters[game.current_chapter].levels[game.current_level].construct()
|
||||
|
||||
|
@ -112,7 +112,7 @@ func load_level(level_id):
|
|||
add_child(t)
|
||||
t.start()
|
||||
yield(t, "timeout")
|
||||
AudioServer.set_bus_mute(AudioServer.get_bus_index("Master"), false)
|
||||
AudioServer.set_bus_mute(AudioServer.get_bus_index("SFX"), false)
|
||||
# FIXME: Need to clean these up when switching levels somehow.
|
||||
|
||||
# chapter_select.select(game.current_chapter)
|
||||
|
@ -204,6 +204,8 @@ func update_repos():
|
|||
var repo = repositories[r]
|
||||
repo.update_everything()
|
||||
file_browser.update()
|
||||
|
||||
input.grab_focus()
|
||||
|
||||
func toggle_cards():
|
||||
cards.visible = not cards.visible
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue