forked from team-sg/hero-mark-2
step one to squa
This commit is contained in:
parent
741d734b11
commit
69df2d6ce4
2 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,8 @@ func _notification(what: int) -> void:
|
||||||
NOTIFICATION_WM_FOCUS_OUT:
|
NOTIFICATION_WM_FOCUS_OUT:
|
||||||
animation_player.playback_active = false
|
animation_player.playback_active = false
|
||||||
$FamiVoice.stream_paused = true
|
$FamiVoice.stream_paused = true
|
||||||
|
Audio.ac_music.stream_paused = true
|
||||||
NOTIFICATION_WM_FOCUS_IN:
|
NOTIFICATION_WM_FOCUS_IN:
|
||||||
animation_player.playback_active = true
|
animation_player.playback_active = true
|
||||||
$FamiVoice.stream_paused = false
|
$FamiVoice.stream_paused = false
|
||||||
|
Audio.ac_music.stream_paused = false
|
||||||
|
|
|
@ -5,8 +5,10 @@ func _notification(what: int) -> void:
|
||||||
match what:
|
match what:
|
||||||
NOTIFICATION_WM_FOCUS_OUT:
|
NOTIFICATION_WM_FOCUS_OUT:
|
||||||
$AnimationPlayer.playback_active = false
|
$AnimationPlayer.playback_active = false
|
||||||
|
Audio.ac_music.stream_paused = true
|
||||||
NOTIFICATION_WM_FOCUS_IN:
|
NOTIFICATION_WM_FOCUS_IN:
|
||||||
$AnimationPlayer.playback_active = true
|
$AnimationPlayer.playback_active = true
|
||||||
|
Audio.ac_music.stream_paused = false
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
Fade.fade_in(Options.transition_speed_secs)
|
Fade.fade_in(Options.transition_speed_secs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue