online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/menus/account/usernamepass.gd')
| -rw-r--r-- | ui/menus/account/usernamepass.gd | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/menus/account/usernamepass.gd b/ui/menus/account/usernamepass.gd index 851152f..40a7ccf 100644 --- a/ui/menus/account/usernamepass.gd +++ b/ui/menus/account/usernamepass.gd @@ -4,6 +4,8 @@ class_name UsernamePass onready var username = $Username onready var pw = $H/Password +signal done + func update_data(data: Dictionary) -> void: username.text = data.user @@ -24,3 +26,8 @@ func export_data() -> Dictionary: func set_enabled(enabled: bool) -> void: username.editable = enabled pw.editable = enabled + + +func _entered(_nt := "") -> void: + if username.text and pw.text: + emit_signal("done") |