From 48a26128f175047528fcc1c96590f1a7bbc281eb Mon Sep 17 00:00:00 2001 From: dam Date: Thu, 17 Feb 2022 00:30:16 +0000 Subject: Prototype with custom option set control. --- option_set/option_set.gd | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 option_set/option_set.gd (limited to 'option_set/option_set.gd') diff --git a/option_set/option_set.gd b/option_set/option_set.gd new file mode 100644 index 0000000..e9cac3f --- /dev/null +++ b/option_set/option_set.gd @@ -0,0 +1,15 @@ +extends Control +class_name OptionSet + +var text: String setget set_text, get_text + +func set_text(var value: String): + input.text = value + +func get_text() -> String: + return input.text + + +onready var input := get_node("input") as LineEdit + + -- cgit v1.2.3