357 lines
13 KiB
Text
357 lines
13 KiB
Text
[gd_scene load_steps=7 format=2]
|
|
|
|
[ext_resource path="res://assets/GUI/themes/login_theme.theme" type="Theme" id=1]
|
|
[ext_resource path="res://gui_scene/GUI/login/register_menu.gd" type="Script" id=2]
|
|
[ext_resource path="res://assets/GUI/images/register-Khanat-background.png" type="Texture" id=3]
|
|
[ext_resource path="res://assets/GUI/fonts/ryzom.ttf" type="DynamicFontData" id=4]
|
|
|
|
[sub_resource type="CanvasItemMaterial" id=1]
|
|
|
|
[sub_resource type="DynamicFont" id=2]
|
|
size = 20
|
|
font_data = ExtResource( 4 )
|
|
|
|
[node name="register_menu" type="Control"]
|
|
material = SubResource( 1 )
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
theme = ExtResource( 1 )
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="HTTPRequest" type="HTTPRequest" parent="."]
|
|
|
|
[node name="background" type="TextureRect" parent="."]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
texture = ExtResource( 3 )
|
|
expand = true
|
|
stretch_mode = 7
|
|
|
|
[node name="h_box_container" type="HBoxContainer" parent="."]
|
|
editor/display_folded = true
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
|
|
[node name="v_box_container" type="VBoxContainer" parent="h_box_container"]
|
|
margin_right = 1280.0
|
|
margin_bottom = 720.0
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="center_container" type="CenterContainer" parent="h_box_container/v_box_container"]
|
|
margin_right = 1280.0
|
|
margin_bottom = 720.0
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
|
|
[node name="register_box" type="VBoxContainer" parent="h_box_container/v_box_container/center_container"]
|
|
margin_left = 509.0
|
|
margin_top = 92.0
|
|
margin_right = 771.0
|
|
margin_bottom = 627.0
|
|
custom_constants/separation = 16
|
|
|
|
[node name="label" type="Label" parent="h_box_container/v_box_container/center_container/register_box"]
|
|
margin_right = 262.0
|
|
margin_bottom = 17.0
|
|
custom_colors/font_color = Color( 0.0627451, 0.0313726, 0.45098, 1 )
|
|
text = "INSCRIPTION"
|
|
align = 1
|
|
|
|
[node name="login_box" type="VBoxContainer" parent="h_box_container/v_box_container/center_container/register_box"]
|
|
margin_top = 33.0
|
|
margin_right = 262.0
|
|
margin_bottom = 116.0
|
|
custom_constants/separation = 8
|
|
|
|
[node name="label" type="Label" parent="h_box_container/v_box_container/center_container/register_box/login_box"]
|
|
margin_right = 262.0
|
|
margin_bottom = 17.0
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
text = "Login"
|
|
|
|
[node name="login_edit" type="LineEdit" parent="h_box_container/v_box_container/center_container/register_box/login_box"]
|
|
margin_top = 25.0
|
|
margin_right = 262.0
|
|
margin_bottom = 58.0
|
|
placeholder_text = "Entrez votre login ici."
|
|
|
|
[node name="comment" type="Label" parent="h_box_container/v_box_container/center_container/register_box/login_box"]
|
|
margin_top = 66.0
|
|
margin_right = 262.0
|
|
margin_bottom = 83.0
|
|
custom_colors/font_color = Color( 0.709804, 0.0666667, 0.0666667, 1 )
|
|
|
|
[node name="password_box" type="VBoxContainer" parent="h_box_container/v_box_container/center_container/register_box"]
|
|
margin_top = 132.0
|
|
margin_right = 262.0
|
|
margin_bottom = 215.0
|
|
custom_constants/separation = 8
|
|
|
|
[node name="label" type="Label" parent="h_box_container/v_box_container/center_container/register_box/password_box"]
|
|
margin_right = 262.0
|
|
margin_bottom = 17.0
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
text = "Mot de passe"
|
|
|
|
[node name="password_edit" type="LineEdit" parent="h_box_container/v_box_container/center_container/register_box/password_box"]
|
|
margin_top = 25.0
|
|
margin_right = 262.0
|
|
margin_bottom = 58.0
|
|
secret = true
|
|
placeholder_text = "Entrez votre mot de passe ici."
|
|
|
|
[node name="comment" type="Label" parent="h_box_container/v_box_container/center_container/register_box/password_box"]
|
|
margin_top = 66.0
|
|
margin_right = 262.0
|
|
margin_bottom = 83.0
|
|
custom_colors/font_color = Color( 0.709804, 0.0666667, 0.0666667, 1 )
|
|
|
|
[node name="password_confirm_box" type="VBoxContainer" parent="h_box_container/v_box_container/center_container/register_box"]
|
|
margin_top = 231.0
|
|
margin_right = 262.0
|
|
margin_bottom = 314.0
|
|
custom_constants/separation = 8
|
|
|
|
[node name="label" type="Label" parent="h_box_container/v_box_container/center_container/register_box/password_confirm_box"]
|
|
margin_right = 262.0
|
|
margin_bottom = 17.0
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
text = "Confirmation du mot de passe"
|
|
|
|
[node name="password_edit" type="LineEdit" parent="h_box_container/v_box_container/center_container/register_box/password_confirm_box"]
|
|
margin_top = 25.0
|
|
margin_right = 262.0
|
|
margin_bottom = 58.0
|
|
secret = true
|
|
placeholder_text = "Entrez votre mot de passe ici."
|
|
|
|
[node name="comment" type="Label" parent="h_box_container/v_box_container/center_container/register_box/password_confirm_box"]
|
|
margin_top = 66.0
|
|
margin_right = 262.0
|
|
margin_bottom = 83.0
|
|
custom_colors/font_color = Color( 0.709804, 0.0666667, 0.0666667, 1 )
|
|
|
|
[node name="email_box" type="VBoxContainer" parent="h_box_container/v_box_container/center_container/register_box"]
|
|
margin_top = 330.0
|
|
margin_right = 262.0
|
|
margin_bottom = 413.0
|
|
custom_constants/separation = 8
|
|
|
|
[node name="label" type="Label" parent="h_box_container/v_box_container/center_container/register_box/email_box"]
|
|
margin_right = 262.0
|
|
margin_bottom = 17.0
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
text = "e-mail"
|
|
|
|
[node name="email_edit" type="LineEdit" parent="h_box_container/v_box_container/center_container/register_box/email_box"]
|
|
margin_top = 25.0
|
|
margin_right = 262.0
|
|
margin_bottom = 58.0
|
|
placeholder_text = "Entrez votre adresse email ici."
|
|
|
|
[node name="comment" type="Label" parent="h_box_container/v_box_container/center_container/register_box/email_box"]
|
|
margin_top = 66.0
|
|
margin_right = 262.0
|
|
margin_bottom = 83.0
|
|
custom_colors/font_color = Color( 0.709804, 0.0666667, 0.0666667, 1 )
|
|
|
|
[node name="license_box" type="HBoxContainer" parent="h_box_container/v_box_container/center_container/register_box"]
|
|
margin_top = 429.0
|
|
margin_right = 262.0
|
|
margin_bottom = 446.0
|
|
|
|
[node name="check_box" type="CheckBox" parent="h_box_container/v_box_container/center_container/register_box/license_box"]
|
|
margin_right = 16.0
|
|
margin_bottom = 17.0
|
|
|
|
[node name="label" type="Label" parent="h_box_container/v_box_container/center_container/register_box/license_box"]
|
|
margin_left = 20.0
|
|
margin_right = 109.0
|
|
margin_bottom = 17.0
|
|
text = "j'accepte les"
|
|
|
|
[node name="license_button" type="LinkButton" parent="h_box_container/v_box_container/center_container/register_box/license_box"]
|
|
margin_left = 113.0
|
|
margin_right = 262.0
|
|
margin_bottom = 17.0
|
|
custom_colors/font_color = Color( 0.0627451, 0.0313726, 0.45098, 1 )
|
|
custom_colors/font_color_hover = Color( 0.305882, 0.294118, 0.454902, 1 )
|
|
custom_colors/font_color_pressed = Color( 0.0627451, 0.0313726, 0.45098, 1 )
|
|
text = "termes et conditions."
|
|
|
|
[node name="comment_last" type="Label" parent="h_box_container/v_box_container/center_container/register_box"]
|
|
margin_top = 462.0
|
|
margin_right = 262.0
|
|
margin_bottom = 479.0
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
|
|
[node name="h_box_container" type="HBoxContainer" parent="h_box_container/v_box_container/center_container/register_box"]
|
|
margin_top = 495.0
|
|
margin_right = 262.0
|
|
margin_bottom = 535.0
|
|
|
|
[node name="cancel_button" type="Button" parent="h_box_container/v_box_container/center_container/register_box/h_box_container"]
|
|
margin_right = 128.0
|
|
margin_bottom = 40.0
|
|
rect_min_size = Vector2( 128, 0 )
|
|
size_flags_horizontal = 6
|
|
custom_fonts/font = SubResource( 2 )
|
|
text = "Annuler"
|
|
|
|
[node name="register_button2" type="Button" parent="h_box_container/v_box_container/center_container/register_box/h_box_container"]
|
|
margin_left = 133.0
|
|
margin_right = 261.0
|
|
margin_bottom = 40.0
|
|
rect_min_size = Vector2( 128, 0 )
|
|
size_flags_horizontal = 6
|
|
custom_fonts/font = SubResource( 2 )
|
|
disabled = true
|
|
text = "S'inscrire"
|
|
|
|
[node name="wait_dialog" type="PopupDialog" parent="."]
|
|
modulate = Color( 0.972549, 0.929412, 0.929412, 1 )
|
|
self_modulate = Color( 0.929412, 0.847059, 0.847059, 1 )
|
|
margin_left = 500.0
|
|
margin_top = 300.0
|
|
margin_right = 740.0
|
|
margin_bottom = 420.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
hint_tooltip = "Server create your account"
|
|
mouse_default_cursor_shape = 4
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
popup_exclusive = true
|
|
|
|
[node name="v_box_container" type="VBoxContainer" parent="wait_dialog"]
|
|
margin_right = 240.0
|
|
margin_bottom = 120.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
custom_constants/separation = 10
|
|
alignment = 1
|
|
|
|
[node name="label" type="Label" parent="wait_dialog/v_box_container"]
|
|
margin_left = 80.0
|
|
margin_top = 27.0
|
|
margin_right = 159.0
|
|
margin_bottom = 44.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
hint_tooltip = "Server will create your account"
|
|
mouse_default_cursor_shape = 5
|
|
size_flags_horizontal = 4
|
|
text = "Please wait"
|
|
align = 1
|
|
valign = 1
|
|
|
|
[node name="button" type="Button" parent="wait_dialog/v_box_container"]
|
|
margin_left = 87.0
|
|
margin_top = 81.0
|
|
margin_right = 152.0
|
|
margin_bottom = 114.0
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 4
|
|
text = "Cancel"
|
|
|
|
[node name="info_dialog" type="PopupDialog" parent="."]
|
|
modulate = Color( 0.972549, 0.929412, 0.929412, 1 )
|
|
self_modulate = Color( 0.929412, 0.847059, 0.847059, 1 )
|
|
margin_left = 500.0
|
|
margin_top = 300.0
|
|
margin_right = 740.0
|
|
margin_bottom = 420.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
hint_tooltip = "Server create your account"
|
|
mouse_default_cursor_shape = 4
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
popup_exclusive = true
|
|
|
|
[node name="v_box_container" type="VBoxContainer" parent="info_dialog"]
|
|
margin_right = 240.0
|
|
margin_bottom = 120.0
|
|
custom_constants/separation = 10
|
|
alignment = 1
|
|
|
|
[node name="label" type="Label" parent="info_dialog/v_box_container"]
|
|
margin_right = 117.0
|
|
margin_bottom = 17.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
hint_tooltip = "Server will create your account"
|
|
mouse_default_cursor_shape = 5
|
|
size_flags_horizontal = 4
|
|
text = "Account created"
|
|
align = 1
|
|
valign = 1
|
|
|
|
[node name="button" type="Button" parent="info_dialog/v_box_container"]
|
|
margin_left = 102.0
|
|
margin_top = 81.0
|
|
margin_right = 137.0
|
|
margin_bottom = 114.0
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 4
|
|
text = "Ok"
|
|
|
|
[node name="error_dialog" type="PopupDialog" parent="."]
|
|
modulate = Color( 0.972549, 0.929412, 0.929412, 1 )
|
|
self_modulate = Color( 0.929412, 0.847059, 0.847059, 1 )
|
|
margin_left = 500.0
|
|
margin_top = 300.0
|
|
margin_right = 900.0
|
|
margin_bottom = 450.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
hint_tooltip = "Server create your account"
|
|
mouse_default_cursor_shape = 4
|
|
size_flags_horizontal = 7
|
|
size_flags_vertical = 7
|
|
popup_exclusive = true
|
|
|
|
[node name="v_box_container" type="VBoxContainer" parent="error_dialog"]
|
|
margin_right = 400.0
|
|
margin_bottom = 140.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 7
|
|
size_flags_vertical = 7
|
|
custom_constants/separation = 10
|
|
alignment = 1
|
|
|
|
[node name="label" type="Label" parent="error_dialog/v_box_container"]
|
|
margin_right = 400.0
|
|
margin_bottom = 17.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
hint_tooltip = "Server will create your account"
|
|
mouse_default_cursor_shape = 5
|
|
size_flags_horizontal = 7
|
|
size_flags_vertical = 7
|
|
text = "Error Detected"
|
|
align = 1
|
|
valign = 1
|
|
|
|
[node name="button" type="Button" parent="error_dialog/v_box_container"]
|
|
margin_left = 102.0
|
|
margin_top = 81.0
|
|
margin_right = 137.0
|
|
margin_bottom = 114.0
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 4
|
|
text = "Ok"
|
|
|
|
[connection signal="request_completed" from="HTTPRequest" to="." method="_on_HTTPRequest_request_completed"]
|
|
[connection signal="text_changed" from="h_box_container/v_box_container/center_container/register_box/login_box/login_edit" to="." method="_on_login_edit_text_changed"]
|
|
[connection signal="text_changed" from="h_box_container/v_box_container/center_container/register_box/password_box/password_edit" to="." method="_on_password_edit_text_changed"]
|
|
[connection signal="text_changed" from="h_box_container/v_box_container/center_container/register_box/password_confirm_box/password_edit" to="." method="_on_password_edit_text_changed"]
|
|
[connection signal="text_changed" from="h_box_container/v_box_container/center_container/register_box/email_box/email_edit" to="." method="_on_email_edit_text_changed"]
|
|
[connection signal="pressed" from="h_box_container/v_box_container/center_container/register_box/license_box/check_box" to="." method="_on_check_box_pressed"]
|
|
[connection signal="pressed" from="h_box_container/v_box_container/center_container/register_box/license_box/license_button" to="." method="_on_license_button_pressed"]
|
|
[connection signal="pressed" from="h_box_container/v_box_container/center_container/register_box/h_box_container/cancel_button" to="." method="_on_cancel_button_pressed"]
|
|
[connection signal="pressed" from="h_box_container/v_box_container/center_container/register_box/h_box_container/register_button2" to="." method="_on_play_button_pressed"]
|
|
[connection signal="pressed" from="wait_dialog/v_box_container/button" to="." method="_on_button_pressed"]
|
|
[connection signal="pressed" from="info_dialog/v_box_container/button" to="." method="_on_info_dialog_button_pressed"]
|
|
[connection signal="pressed" from="error_dialog/v_box_container/button" to="." method="_on_error_dialog_button_pressed"]
|