online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/menus/account/Restrict.gd')
-rw-r--r--ui/menus/account/Restrict.gd12
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/menus/account/Restrict.gd b/ui/menus/account/Restrict.gd
new file mode 100644
index 0000000..c1b6470
--- /dev/null
+++ b/ui/menus/account/Restrict.gd
@@ -0,0 +1,12 @@
+extends LineEdit
+class_name Restrict
+
+
+func _on_text_changed(new_text: String):
+ var pos = caret_position
+ text = new_text.strip_edges().strip_escapes()
+ caret_position = pos
+
+
+func _ready():
+ connect("text_changed", self, "_on_text_changed")