aboutsummaryrefslogtreecommitdiff
path: root/option_set/option_set.gd
diff options
context:
space:
mode:
authordam <dam@gudinoff>2022-02-17 00:30:16 +0000
committerdam <dam@gudinoff>2022-02-17 00:30:16 +0000
commit48a26128f175047528fcc1c96590f1a7bbc281eb (patch)
tree03cebc078fd30f74da8fdce4469055d9b70b3985 /option_set/option_set.gd
parent00825f2a5664000fa98d36922c0c329b052a724f (diff)
downloadsurgery-log-48a26128f175047528fcc1c96590f1a7bbc281eb.tar.zst
surgery-log-48a26128f175047528fcc1c96590f1a7bbc281eb.zip
Prototype with custom option set control.
Diffstat (limited to 'option_set/option_set.gd')
-rw-r--r--option_set/option_set.gd15
1 files changed, 15 insertions, 0 deletions
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
+
+