online multiplayer chess game (note server currently down)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extends CenterContainer
class_name BackButton

var button := Button.new()


func _ready():
	add_child(button)
	Events.connect("game_over", self, "_game_over")
	button.text = "go back"
	button.connect("pressed", Events, "emit_signal", ["go_back", "", true])


func _game_over(_why: String) -> void:
	show()