Swarm/DisconnectInfo.gd

15 lines
341 B
GDScript3
Raw Normal View History

2024-03-16 19:56:22 +01:00
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