Basic client that understands factions

This commit is contained in:
2020-09-05 17:45:07 -04:00
parent ab3f05f013
commit ae3ecb03c5
53 changed files with 432 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
extends LineEdit
var invalid_chars = " '.,;/\\,[](){}!@#$%^&*-=|_+1234567890\""
func _ready():
connect("text_changed", self, "validate_name")
func validate_name(name):
var cursor_pos = caret_position
for character in invalid_chars:
if character in text:
text = text.replace(character, "")
caret_position = cursor_pos