14 lines
341 B
GDScript
14 lines
341 B
GDScript
extends Control
|
|
|
|
@onready var label = $PanelContainer/MarginContainer/VBoxContainer/Label
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
visible = false
|
|
|
|
if not GameData.disconnect_reason.is_empty():
|
|
label.text = GameData.disconnect_reason
|
|
visible = true
|
|
|
|
func _on_button_pressed():
|
|
visible = false
|