blob: 238a703fb3d9be66fc027e4ec18b9d38eb6444ee (
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
|
extends VBoxContainer
signal clicked
@export var label: String:
set(value):
label = value
$Label.text = value
$Label.visible = !!value
@onready var list := %PlayersList
func _ready():
$Label.visible = !!label
list.remove_child(list.get_child(0))
list.remove_child(list.get_child(0))
func _on_label_gui_input(event: InputEvent) -> void:
if event.is_action("select"):
clicked.emit()
|