223 lines
8.2 KiB
Text
223 lines
8.2 KiB
Text
[gd_scene load_steps=8 format=2]
|
|
|
|
[ext_resource path="res://assets/GUI/themes/login_theme.theme" type="Theme" id=1]
|
|
[ext_resource path="res://gui_scene/GUI/login/login_menu.gd" type="Script" id=2]
|
|
[ext_resource path="res://assets/GUI/images/Login-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 = 10
|
|
font_data = ExtResource( 4 )
|
|
|
|
[sub_resource type="DynamicFont" id=3]
|
|
size = 20
|
|
font_data = ExtResource( 4 )
|
|
|
|
[node name="login_menu" type="Control"]
|
|
material = SubResource( 1 )
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
theme = ExtResource( 1 )
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="HTTPSalt" type="HTTPRequest" parent="."]
|
|
|
|
[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="."]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
|
|
[node name="container" type="Container" parent="h_box_container"]
|
|
margin_right = 585.0
|
|
margin_bottom = 720.0
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="v_box_container" type="VBoxContainer" parent="h_box_container"]
|
|
margin_left = 589.0
|
|
margin_right = 1280.0
|
|
margin_bottom = 720.0
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="buttons_box" type="HBoxContainer" parent="h_box_container/v_box_container"]
|
|
margin_left = 691.0
|
|
margin_right = 691.0
|
|
margin_bottom = 61.0
|
|
rect_min_size = Vector2( 0, 61 )
|
|
size_flags_horizontal = 10
|
|
custom_constants/separation = 0
|
|
alignment = 2
|
|
|
|
[node name="margin_container" type="MarginContainer" parent="h_box_container/v_box_container"]
|
|
margin_top = 65.0
|
|
margin_right = 691.0
|
|
margin_bottom = 285.0
|
|
custom_constants/margin_right = 32
|
|
custom_constants/margin_top = 32
|
|
custom_constants/margin_left = 32
|
|
custom_constants/margin_bottom = 0
|
|
|
|
[node name="login_box" type="VBoxContainer" parent="h_box_container/v_box_container/margin_container"]
|
|
margin_left = 32.0
|
|
margin_top = 32.0
|
|
margin_right = 659.0
|
|
margin_bottom = 220.0
|
|
custom_constants/separation = 16
|
|
|
|
[node name="email_box" type="VBoxContainer" parent="h_box_container/v_box_container/margin_container/login_box"]
|
|
margin_right = 627.0
|
|
margin_bottom = 58.0
|
|
custom_constants/separation = 8
|
|
|
|
[node name="email_label_box" type="HBoxContainer" parent="h_box_container/v_box_container/margin_container/login_box/email_box"]
|
|
margin_right = 627.0
|
|
margin_bottom = 17.0
|
|
|
|
[node name="label" type="Label" parent="h_box_container/v_box_container/margin_container/login_box/email_box/email_label_box"]
|
|
margin_right = 39.0
|
|
margin_bottom = 17.0
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
text = "Login"
|
|
|
|
[node name="register_button" type="LinkButton" parent="h_box_container/v_box_container/margin_container/login_box/email_box/email_label_box"]
|
|
margin_left = 581.0
|
|
margin_right = 627.0
|
|
margin_bottom = 17.0
|
|
size_flags_horizontal = 10
|
|
custom_fonts/font = SubResource( 2 )
|
|
custom_colors/font_color = Color( 0.0627451, 0.0313726, 0.45098, 1 )
|
|
custom_colors/font_color_hover = Color( 0.329412, 0.317647, 0.466667, 1 )
|
|
custom_colors/font_color_pressed = Color( 0.0627451, 0.0313726, 0.45098, 1 )
|
|
text = "S'inscrire"
|
|
underline = 2
|
|
|
|
[node name="email_edit" type="LineEdit" parent="h_box_container/v_box_container/margin_container/login_box/email_box"]
|
|
margin_top = 25.0
|
|
margin_right = 627.0
|
|
margin_bottom = 58.0
|
|
placeholder_text = "Entrez votre login ici."
|
|
|
|
[node name="password_box" type="VBoxContainer" parent="h_box_container/v_box_container/margin_container/login_box"]
|
|
margin_top = 74.0
|
|
margin_right = 627.0
|
|
margin_bottom = 132.0
|
|
custom_constants/separation = 8
|
|
|
|
[node name="password_label_box" type="HBoxContainer" parent="h_box_container/v_box_container/margin_container/login_box/password_box"]
|
|
margin_right = 627.0
|
|
margin_bottom = 17.0
|
|
|
|
[node name="label" type="Label" parent="h_box_container/v_box_container/margin_container/login_box/password_box/password_label_box"]
|
|
margin_right = 93.0
|
|
margin_bottom = 17.0
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
text = "Mot de passe"
|
|
|
|
[node name="link_button" type="LinkButton" parent="h_box_container/v_box_container/margin_container/login_box/password_box/password_label_box"]
|
|
margin_left = 529.0
|
|
margin_right = 627.0
|
|
margin_bottom = 17.0
|
|
size_flags_horizontal = 10
|
|
custom_fonts/font = SubResource( 2 )
|
|
custom_colors/font_color = Color( 0.0627451, 0.0313726, 0.45098, 1 )
|
|
custom_colors/font_color_hover = Color( 0.329412, 0.317647, 0.466667, 1 )
|
|
custom_colors/font_color_pressed = Color( 0.0627451, 0.0313726, 0.45098, 1 )
|
|
text = "Mot de passe oublié"
|
|
underline = 2
|
|
|
|
[node name="password_edit" type="LineEdit" parent="h_box_container/v_box_container/margin_container/login_box/password_box"]
|
|
margin_top = 25.0
|
|
margin_right = 627.0
|
|
margin_bottom = 58.0
|
|
secret = true
|
|
placeholder_text = "Entrez votre mot de passe ici."
|
|
|
|
[node name="h_box_container" type="HBoxContainer" parent="h_box_container/v_box_container/margin_container/login_box"]
|
|
margin_top = 148.0
|
|
margin_right = 627.0
|
|
margin_bottom = 188.0
|
|
|
|
[node name="checkboxs_box" type="VBoxContainer" parent="h_box_container/v_box_container/margin_container/login_box/h_box_container"]
|
|
editor/display_folded = true
|
|
margin_right = 228.0
|
|
margin_bottom = 40.0
|
|
|
|
[node name="check_box" type="CheckBox" parent="h_box_container/v_box_container/margin_container/login_box/h_box_container/checkboxs_box"]
|
|
margin_right = 228.0
|
|
margin_bottom = 17.0
|
|
custom_colors/font_color_disabled = Color( 0, 0, 0, 1 )
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
custom_colors/font_color_hover = Color( 0, 0, 0, 1 )
|
|
custom_colors/font_color_pressed = Color( 0, 0, 0, 1 )
|
|
text = "Se souvenir du login."
|
|
|
|
[node name="check_box2" type="CheckBox" parent="h_box_container/v_box_container/margin_container/login_box/h_box_container/checkboxs_box"]
|
|
margin_top = 21.0
|
|
margin_right = 228.0
|
|
margin_bottom = 38.0
|
|
custom_colors/font_color_disabled = Color( 0, 0, 0, 1 )
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
custom_colors/font_color_hover = Color( 0, 0, 0, 1 )
|
|
custom_colors/font_color_pressed = Color( 0, 0, 0, 1 )
|
|
text = "Se souvenir du mot de passe."
|
|
|
|
[node name="play_button" type="Button" parent="h_box_container/v_box_container/margin_container/login_box/h_box_container"]
|
|
margin_left = 232.0
|
|
margin_right = 360.0
|
|
margin_bottom = 40.0
|
|
rect_min_size = Vector2( 128, 0 )
|
|
size_flags_horizontal = 10
|
|
custom_fonts/font = SubResource( 3 )
|
|
text = "Jouer"
|
|
|
|
[node name="play_without_connexion" type="Button" parent="h_box_container/v_box_container/margin_container/login_box/h_box_container"]
|
|
margin_left = 364.0
|
|
margin_right = 627.0
|
|
margin_bottom = 40.0
|
|
rect_min_size = Vector2( 128, 0 )
|
|
size_flags_horizontal = 10
|
|
custom_fonts/font = SubResource( 3 )
|
|
text = "Tester sans se connecter"
|
|
|
|
[node name="error_dialog" type="PopupDialog" parent="."]
|
|
margin_right = 400.0
|
|
margin_bottom = 150.0
|
|
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 = 150.0
|
|
size_flags_horizontal = 7
|
|
size_flags_vertical = 7
|
|
alignment = 1
|
|
|
|
[node name="label" type="Label" parent="error_dialog/v_box_container"]
|
|
margin_right = 400.0
|
|
margin_bottom = 17.0
|
|
text = "Error detected"
|
|
align = 1
|
|
valign = 1
|
|
|
|
[node name="button" type="Button" parent="error_dialog/v_box_container"]
|
|
margin_right = 16.0
|
|
margin_bottom = 33.0
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 4
|
|
text = "Ok"
|
|
[connection signal="request_completed" from="HTTPSalt" to="." method="_on_HTTPSalt_request_completed"]
|
|
[connection signal="request_completed" from="HTTPRequest" to="." method="_on_HTTPRequest_request_completed"]
|
|
[connection signal="pressed" from="h_box_container/v_box_container/margin_container/login_box/email_box/email_label_box/register_button" to="." method="_on_register_button_pressed"]
|
|
[connection signal="pressed" from="h_box_container/v_box_container/margin_container/login_box/h_box_container/play_button" to="." method="_on_play_button_pressed"]
|
|
[connection signal="pressed" from="h_box_container/v_box_container/margin_container/login_box/h_box_container/play_without_connexion" to="." method="_on_play_without_connexion_pressed"]
|
|
[connection signal="pressed" from="error_dialog/v_box_container/button" to="." method="_on_error_dialog_button_pressed"]
|