alai/godot/monitor/EnterButton.gd

17 lines
311 B
GDScript3
Raw Normal View History

2022-07-08 00:57:46 -04:00
extends Button
signal input_validated(player)
func _on_Button_pressed() -> void:
var name = get_node("%Name")
var rut = get_node("%Rut")
var email = get_node("%Email")
var player: Dictionary = {
"name" : name.text,
"rut" : rut.text,
"email" : email.text
}
emit_signal("input_validated", player)