blob: 6fa83a551322b3d2d376807772be8a7593bd6193 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
extends Control
@onready var anim = $AnimationPlayer
@onready var options = $Side/Margin/Options
func _ready():
Global.connect_button_sounds(self)
func act():
show()
anim.play("activate")
Global.focus_first_button(options)
func deact():
anim.play_backwards("activate")
await anim.animation_finished
hide()
func _on_main_menu_pressed():
Global.fade_next = true
get_parent().transition_to("res://menu/menu_manager.tscn")
func _on_quit_pressed():
get_parent().quit()
func _on_reconnect_pressed():
get_parent().transition_to("res://game.tscn")
|