138 lines
6.9 KiB
Plaintext
138 lines
6.9 KiB
Plaintext
[gd_scene format=3 uid="uid://cwqcybk5tvbly"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://bxd3i06rqpxf0" path="res://sources/menus/register/steps/base_step.tscn" id="1_66bx5"]
|
|
[ext_resource type="Script" uid="uid://cd7tiiy0ir411" path="res://sources/menus/register/steps/credentials_step.gd" id="2_mqaqr"]
|
|
[ext_resource type="Script" uid="uid://dg4qit8mffvjh" path="res://addons/godot-form-validator/control_validator.gd" id="3_hblcf"]
|
|
[ext_resource type="Script" uid="uid://dw5aercmfe4" path="res://addons/godot-form-validator/rules/required_rule.gd" id="4_4ltsd"]
|
|
[ext_resource type="Script" uid="uid://dg17cfvs2w257" path="res://addons/godot-form-validator/rules/validator_rule.gd" id="4_in5so"]
|
|
[ext_resource type="Script" uid="uid://dvpln5snrt4mq" path="res://addons/godot-form-validator/rules/email_rule.gd" id="5_cnymo"]
|
|
[ext_resource type="Script" uid="uid://7uwoocpe7ieu" path="res://sources/utils/binder/control_binder.gd" id="6_ugvpe"]
|
|
[ext_resource type="Script" uid="uid://c1cqwb15yoqb3" path="res://addons/godot-form-validator/validators/line_edit_validator.gd" id="6_viaho"]
|
|
[ext_resource type="Script" uid="uid://cy0n11jleuxih" path="res://sources/menus/register/steps/validation/confirm_rule.gd" id="7_7y5q1"]
|
|
[ext_resource type="LabelSettings" uid="uid://ohvlqccl2oog" path="res://resources/themes/error_label_settings.tres" id="7_sndyb"]
|
|
|
|
[sub_resource type="Resource" id="Resource_os08u"]
|
|
script = ExtResource("4_4ltsd")
|
|
fail_message = "A value is required."
|
|
|
|
[sub_resource type="Resource" id="Resource_6p4qq"]
|
|
script = ExtResource("5_cnymo")
|
|
fail_message = "Value must be a valid email address."
|
|
|
|
[sub_resource type="Resource" id="Resource_84kj5"]
|
|
script = ExtResource("6_viaho")
|
|
validation_method = 1
|
|
rules = Array[ExtResource("4_in5so")]([SubResource("Resource_os08u"), SubResource("Resource_6p4qq")])
|
|
|
|
[sub_resource type="Resource" id="Resource_5jooi"]
|
|
script = ExtResource("4_4ltsd")
|
|
fail_message = "A value is required."
|
|
|
|
[sub_resource type="Resource" id="Resource_104uy"]
|
|
script = ExtResource("7_7y5q1")
|
|
confirm_control_path = NodePath("../../PasswordConfirmField")
|
|
fail_message = "Value must be the same in both fields."
|
|
|
|
[sub_resource type="Resource" id="Resource_icogs"]
|
|
script = ExtResource("6_viaho")
|
|
validation_method = 1
|
|
rules = Array[ExtResource("4_in5so")]([SubResource("Resource_5jooi"), SubResource("Resource_104uy")])
|
|
|
|
[node name="CredentialsStep" unique_id=388589482 instance=ExtResource("1_66bx5")]
|
|
script = ExtResource("2_mqaqr")
|
|
step_name = "credentials"
|
|
question = "CREDENTIALS_PROMPT"
|
|
|
|
[node name="EmailContainer" type="HBoxContainer" parent="FormValidator/FormBinder/Control/Background/FormMargin/FormContainer" parent_id_path=PackedInt32Array(1375940867) index="0" unique_id=130683642]
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
|
|
[node name="EmailFieldLabel" type="Label" parent="FormValidator/FormBinder/Control/Background/FormMargin/FormContainer/EmailContainer" index="0" unique_id=166822472]
|
|
custom_minimum_size = Vector2(400, 0)
|
|
layout_mode = 2
|
|
size_flags_vertical = 1
|
|
theme_override_font_sizes/font_size = 50
|
|
text = "EMAIL"
|
|
autowrap_mode = 3
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="FormValidator/FormBinder/Control/Background/FormMargin/FormContainer/EmailContainer" index="1" unique_id=159998359]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="EmailField" type="LineEdit" parent="FormValidator/FormBinder/Control/Background/FormMargin/FormContainer/EmailContainer/VBoxContainer" index="0" unique_id=773098104]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 70
|
|
placeholder_text = "kalulu@excellolab.org"
|
|
virtual_keyboard_type = 5
|
|
|
|
[node name="ControlValidator" type="Node" parent="FormValidator/FormBinder/Control/Background/FormMargin/FormContainer/EmailContainer/VBoxContainer/EmailField" index="0" unique_id=386015815]
|
|
script = ExtResource("3_hblcf")
|
|
validator = SubResource("Resource_84kj5")
|
|
|
|
[node name="ControlBinder" type="Control" parent="FormValidator/FormBinder/Control/Background/FormMargin/FormContainer/EmailContainer/VBoxContainer/EmailField" index="1" unique_id=1406564469]
|
|
anchors_preset = 0
|
|
script = ExtResource("6_ugvpe")
|
|
property_name = "email"
|
|
|
|
[node name="EmailFieldError" type="Label" parent="FormValidator/FormBinder/Control/Background/FormMargin/FormContainer/EmailContainer/VBoxContainer" index="1" unique_id=329199250]
|
|
visible = false
|
|
layout_mode = 2
|
|
text = "Test"
|
|
label_settings = ExtResource("7_sndyb")
|
|
vertical_alignment = 1
|
|
|
|
[node name="APIEmailFieldError" type="Label" parent="FormValidator/FormBinder/Control/Background/FormMargin/FormContainer/EmailContainer/VBoxContainer" index="2" unique_id=954609510]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 2
|
|
text = "USED_EMAIL_ADDRESS"
|
|
label_settings = ExtResource("7_sndyb")
|
|
vertical_alignment = 1
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="FormValidator/FormBinder/Control/Background/FormMargin/FormContainer" parent_id_path=PackedInt32Array(1375940867) index="1" unique_id=1525578829]
|
|
layout_mode = 2
|
|
size_flags_vertical = 8
|
|
|
|
[node name="PasswordFieldLabel" type="Label" parent="FormValidator/FormBinder/Control/Background/FormMargin/FormContainer/HBoxContainer" index="0" unique_id=2012615490]
|
|
custom_minimum_size = Vector2(400, 0)
|
|
layout_mode = 2
|
|
size_flags_vertical = 1
|
|
theme_override_font_sizes/font_size = 50
|
|
text = "PASSWORD"
|
|
autowrap_mode = 3
|
|
|
|
[node name="PasswordContainer" type="VBoxContainer" parent="FormValidator/FormBinder/Control/Background/FormMargin/FormContainer/HBoxContainer" index="1" unique_id=1117416327]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 20
|
|
|
|
[node name="PasswordField" type="LineEdit" parent="FormValidator/FormBinder/Control/Background/FormMargin/FormContainer/HBoxContainer/PasswordContainer" index="0" unique_id=970541842]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 70
|
|
placeholder_text = "PASSWORD"
|
|
virtual_keyboard_type = 6
|
|
secret = true
|
|
|
|
[node name="ControlValidator" type="Node" parent="FormValidator/FormBinder/Control/Background/FormMargin/FormContainer/HBoxContainer/PasswordContainer/PasswordField" index="0" unique_id=2084505209]
|
|
script = ExtResource("3_hblcf")
|
|
validator = SubResource("Resource_icogs")
|
|
|
|
[node name="ControlBinder" type="Control" parent="FormValidator/FormBinder/Control/Background/FormMargin/FormContainer/HBoxContainer/PasswordContainer/PasswordField" index="1" unique_id=770420827]
|
|
anchors_preset = 0
|
|
script = ExtResource("6_ugvpe")
|
|
property_name = "password"
|
|
|
|
[node name="PasswordConfirmField" type="LineEdit" parent="FormValidator/FormBinder/Control/Background/FormMargin/FormContainer/HBoxContainer/PasswordContainer" index="1" unique_id=489542261]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 70
|
|
placeholder_text = "CONFIRM_PASSWORD"
|
|
virtual_keyboard_type = 6
|
|
secret = true
|
|
|
|
[node name="PasswordFieldError" type="Label" parent="FormValidator/FormBinder/Control/Background/FormMargin/FormContainer/HBoxContainer/PasswordContainer" index="2" unique_id=1222236377]
|
|
visible = false
|
|
layout_mode = 2
|
|
text = "Test"
|
|
label_settings = ExtResource("7_sndyb")
|
|
vertical_alignment = 1
|