summaryrefslogtreecommitdiff
path: root/UI/lobby_setting.gd
blob: a5b9e7ecff621ecfaf6d42da80253019450f1627 (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
extends HBoxContainer


signal value_changed(value: String)

var label := "":
	set(value):
		$Label.text = str(value)
		name = str(value)
	get():
		return $Label.text

var value: Variant = "":
	set(value):
		$TextEdit.text = str(value)
	get():
		return $TextEdit.text

var disabled := false:
	set(value):
		disabled = value
		$TextEdit.editable = !disabled


func _on_text_edit_text_changed(new_text: String) -> void:
	value_changed.emit(new_text)