Ajout de l'intégration twitch
This commit is contained in:
@@ -21,11 +21,15 @@ func _on_close_button_pressed():
|
||||
|
||||
func open_window():
|
||||
show()
|
||||
%ControlAnimationPlayer.appear()
|
||||
modulate.a = 0.
|
||||
var tween = create_tween()
|
||||
tween.tween_property(self, 'modulate:a', 1, 0.3)
|
||||
|
||||
func close_window():
|
||||
if visible:
|
||||
%ControlAnimationPlayer.disappear(0.3)
|
||||
await get_tree().create_timer(0.3).timeout
|
||||
modulate.a = 1.
|
||||
var tween = create_tween()
|
||||
tween.tween_property(self, 'modulate:a', 0, 0.3)
|
||||
await tween.finished
|
||||
hide()
|
||||
closed.emit()
|
||||
|
||||
Reference in New Issue
Block a user