Amélioration du menu login et création du menu register.
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 590 KiB After Width: | Height: | Size: 592 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 1.7 KiB |
BIN
assets/GUI/images/register-Khanat-background.png
Normal file
After Width: | Height: | Size: 367 KiB |
|
@ -1,6 +1,9 @@
|
||||||
extends Control
|
extends Control
|
||||||
|
|
||||||
signal login_button_pressed
|
signal login_button_pressed
|
||||||
|
signal sound_button_toggled( button_pressed )
|
||||||
|
|
||||||
|
signal register_button_pressed
|
||||||
|
|
||||||
func _on_login_button_pressed():
|
func _on_login_button_pressed():
|
||||||
emit_signal( "login_button_pressed" )
|
emit_signal( "login_button_pressed" )
|
||||||
|
@ -20,10 +23,7 @@ func _on_quit_button_pressed():
|
||||||
|
|
||||||
|
|
||||||
func _on_sound_button_toggled( button_pressed ):
|
func _on_sound_button_toggled( button_pressed ):
|
||||||
if button_pressed:
|
emit_signal( "sound_button_toggled", button_pressed )
|
||||||
global.get_node( "audio_stream_player" ).stop()
|
|
||||||
else:
|
|
||||||
global.get_node( "audio_stream_player" ).play()
|
|
||||||
|
|
||||||
|
|
||||||
func do_request(username, password):
|
func do_request(username, password):
|
||||||
|
@ -47,3 +47,6 @@ func _make_post_request(url, data_to_send, use_ssl):
|
||||||
# Add 'Content-Type' header:
|
# Add 'Content-Type' header:
|
||||||
var headers = ["Content-Type: application/json"]
|
var headers = ["Content-Type: application/json"]
|
||||||
$HTTPRequest.request(url, headers, use_ssl, HTTPClient.METHOD_POST, query)
|
$HTTPRequest.request(url, headers, use_ssl, HTTPClient.METHOD_POST, query)
|
||||||
|
|
||||||
|
func _on_register_button_pressed():
|
||||||
|
emit_signal( "register_button_pressed" )
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
[gd_scene load_steps=17 format=2]
|
[gd_scene load_steps=14 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://assets/GUI/themes/login_theme.theme" type="Theme" id=1]
|
[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://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/images/Login-Khanat-background.png" type="Texture" id=3]
|
||||||
[ext_resource path="res://assets/GUI/images/Login-Khanat-background-buttons.png" type="Texture" id=4]
|
[ext_resource path="res://assets/GUI/images/Login-Khanat-background-buttons.png" type="Texture" id=4]
|
||||||
[ext_resource path="res://gui_scene/GUI/login/quit_button.gd" type="Script" id=5]
|
[ext_resource path="res://assets/GUI/images/Login-Khanat-help-button.png" type="Texture" id=5]
|
||||||
[ext_resource path="res://assets/GUI/images/Login-Khanat-help-button.png" type="Texture" id=6]
|
[ext_resource path="res://assets/GUI/images/Login-Khanat-settings-button.png" type="Texture" id=6]
|
||||||
[ext_resource path="res://assets/GUI/images/Login-Khanat-settings-button.png" type="Texture" id=7]
|
[ext_resource path="res://assets/GUI/images/Login-Khanat-quit-button.png" type="Texture" id=7]
|
||||||
[ext_resource path="res://assets/GUI/images/Login-Khanat-quit-button.png" type="Texture" id=8]
|
[ext_resource path="res://assets/GUI/images/Login-Khanat-sound-button.png" type="Texture" id=8]
|
||||||
[ext_resource path="res://assets/GUI/fonts/ryzom.ttf" type="DynamicFontData" id=9]
|
[ext_resource path="res://assets/GUI/images/Login-Khanat-sound-muted-button.png" type="Texture" id=9]
|
||||||
[ext_resource path="res://assets/GUI/images/Login-Khanat-sound-button.png" type="Texture" id=10]
|
[ext_resource path="res://assets/GUI/fonts/ryzom.ttf" type="DynamicFontData" id=10]
|
||||||
[ext_resource path="res://assets/GUI/images/Login-Khanat-sound-muted-button.png" type="Texture" id=11]
|
|
||||||
|
|
||||||
[sub_resource type="CanvasItemMaterial" id=1]
|
[sub_resource type="CanvasItemMaterial" id=1]
|
||||||
|
|
||||||
|
@ -18,23 +17,12 @@ render_priority = 0
|
||||||
blend_mode = 0
|
blend_mode = 0
|
||||||
light_mode = 0
|
light_mode = 0
|
||||||
|
|
||||||
[sub_resource type="Gradient" id=2]
|
|
||||||
|
|
||||||
offsets = PoolRealArray( 0, 0.5, 1 )
|
|
||||||
colors = PoolColorArray( 0.417969, 0.417969, 0.417969, 1, 0, 0, 0, 1, 0.415686, 0.415686, 0.415686, 1 )
|
|
||||||
|
|
||||||
[sub_resource type="GradientTexture" id=3]
|
|
||||||
|
|
||||||
flags = 4
|
|
||||||
gradient = SubResource( 2 )
|
|
||||||
width = 2048
|
|
||||||
|
|
||||||
[sub_resource type="DynamicFont" id=4]
|
[sub_resource type="DynamicFont" id=4]
|
||||||
|
|
||||||
size = 10
|
size = 10
|
||||||
use_mipmaps = false
|
use_mipmaps = false
|
||||||
use_filter = false
|
use_filter = false
|
||||||
font_data = ExtResource( 9 )
|
font_data = ExtResource( 10 )
|
||||||
_sections_unfolded = [ "Font", "Settings" ]
|
_sections_unfolded = [ "Font", "Settings" ]
|
||||||
|
|
||||||
[sub_resource type="DynamicFont" id=5]
|
[sub_resource type="DynamicFont" id=5]
|
||||||
|
@ -42,10 +30,10 @@ _sections_unfolded = [ "Font", "Settings" ]
|
||||||
size = 20
|
size = 20
|
||||||
use_mipmaps = false
|
use_mipmaps = false
|
||||||
use_filter = false
|
use_filter = false
|
||||||
font_data = ExtResource( 9 )
|
font_data = ExtResource( 10 )
|
||||||
_sections_unfolded = [ "Extra Spacing", "Font", "Settings" ]
|
_sections_unfolded = [ "Extra Spacing", "Font", "Settings" ]
|
||||||
|
|
||||||
[node name="login_menu" type="Control" index="0"]
|
[node name="login_menu" type="Control"]
|
||||||
|
|
||||||
material = SubResource( 1 )
|
material = SubResource( 1 )
|
||||||
anchor_left = 0.0
|
anchor_left = 0.0
|
||||||
|
@ -87,308 +75,25 @@ expand = true
|
||||||
stretch_mode = 7
|
stretch_mode = 7
|
||||||
_sections_unfolded = [ "Visibility" ]
|
_sections_unfolded = [ "Visibility" ]
|
||||||
|
|
||||||
[node name="OLD_buttons_background" type="TextureRect" parent="." index="2"]
|
[node name="buttons_background" type="TextureRect" parent="." index="2"]
|
||||||
|
|
||||||
anchor_left = 1.0
|
anchor_left = 1.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_left = -254.0
|
margin_left = -307.0
|
||||||
margin_bottom = 65.0
|
margin_bottom = 65.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
mouse_filter = 1
|
mouse_filter = 1
|
||||||
mouse_default_cursor_shape = 0
|
mouse_default_cursor_shape = 0
|
||||||
size_flags_horizontal = 10
|
size_flags_horizontal = 1
|
||||||
size_flags_vertical = 1
|
size_flags_vertical = 1
|
||||||
texture = ExtResource( 4 )
|
texture = ExtResource( 4 )
|
||||||
stretch_mode = 0
|
stretch_mode = 7
|
||||||
_sections_unfolded = [ "Size Flags" ]
|
_sections_unfolded = [ "Size Flags" ]
|
||||||
|
|
||||||
[node name="center_container" type="CenterContainer" parent="." index="3"]
|
[node name="h_box_container" type="HBoxContainer" parent="." index="3"]
|
||||||
|
|
||||||
editor/display_folded = true
|
|
||||||
visible = false
|
|
||||||
anchor_left = 0.0
|
|
||||||
anchor_top = 0.0
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
|
||||||
rect_clip_content = false
|
|
||||||
mouse_filter = 0
|
|
||||||
mouse_default_cursor_shape = 0
|
|
||||||
size_flags_horizontal = 1
|
|
||||||
size_flags_vertical = 1
|
|
||||||
use_top_left = false
|
|
||||||
|
|
||||||
[node name="bacground_control" type="NinePatchRect" parent="center_container" index="0"]
|
|
||||||
|
|
||||||
modulate = Color( 1, 1, 1, 0.501961 )
|
|
||||||
anchor_left = 0.0
|
|
||||||
anchor_top = 0.0
|
|
||||||
anchor_right = 0.0
|
|
||||||
anchor_bottom = 0.0
|
|
||||||
margin_left = 338.0
|
|
||||||
margin_top = 126.0
|
|
||||||
margin_right = 686.0
|
|
||||||
margin_bottom = 474.0
|
|
||||||
rect_min_size = Vector2( 348, 348 )
|
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
|
||||||
rect_clip_content = false
|
|
||||||
mouse_filter = 2
|
|
||||||
mouse_default_cursor_shape = 0
|
|
||||||
size_flags_horizontal = 3
|
|
||||||
size_flags_vertical = 3
|
|
||||||
texture = SubResource( 3 )
|
|
||||||
_sections_unfolded = [ "Patch Margin", "Rect", "Size Flags", "Theme", "Visibility", "custom_styles" ]
|
|
||||||
|
|
||||||
[node name="v_box_container" type="VBoxContainer" parent="center_container" index="1"]
|
|
||||||
|
|
||||||
anchor_left = 0.0
|
|
||||||
anchor_top = 0.0
|
|
||||||
anchor_right = 0.0
|
|
||||||
anchor_bottom = 0.0
|
|
||||||
margin_left = 384.0
|
|
||||||
margin_top = 157.0
|
|
||||||
margin_right = 640.0
|
|
||||||
margin_bottom = 442.0
|
|
||||||
rect_min_size = Vector2( 256, 256 )
|
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
|
||||||
rect_clip_content = false
|
|
||||||
mouse_filter = 1
|
|
||||||
mouse_default_cursor_shape = 0
|
|
||||||
size_flags_horizontal = 3
|
|
||||||
size_flags_vertical = 3
|
|
||||||
custom_constants/separation = 24
|
|
||||||
alignment = 0
|
|
||||||
_sections_unfolded = [ "Focus", "Rect", "Size Flags", "custom_constants" ]
|
|
||||||
|
|
||||||
[node name="login_box" type="HBoxContainer" parent="center_container/v_box_container" index="0"]
|
|
||||||
|
|
||||||
anchor_left = 0.0
|
|
||||||
anchor_top = 0.0
|
|
||||||
anchor_right = 0.0
|
|
||||||
anchor_bottom = 0.0
|
|
||||||
margin_right = 256.0
|
|
||||||
margin_bottom = 24.0
|
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
|
||||||
rect_clip_content = false
|
|
||||||
mouse_filter = 1
|
|
||||||
mouse_default_cursor_shape = 0
|
|
||||||
size_flags_horizontal = 1
|
|
||||||
size_flags_vertical = 1
|
|
||||||
alignment = 0
|
|
||||||
|
|
||||||
[node name="login_label" type="Label" parent="center_container/v_box_container/login_box" index="0"]
|
|
||||||
|
|
||||||
anchor_left = 0.0
|
|
||||||
anchor_top = 0.0
|
|
||||||
anchor_right = 0.0
|
|
||||||
anchor_bottom = 0.0
|
|
||||||
margin_top = 5.0
|
|
||||||
margin_right = 92.0
|
|
||||||
margin_bottom = 19.0
|
|
||||||
rect_min_size = Vector2( 92, 0 )
|
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
|
||||||
rect_clip_content = false
|
|
||||||
mouse_filter = 2
|
|
||||||
mouse_default_cursor_shape = 0
|
|
||||||
size_flags_horizontal = 1
|
|
||||||
size_flags_vertical = 4
|
|
||||||
text = "Utilisateur:"
|
|
||||||
align = 2
|
|
||||||
percent_visible = 1.0
|
|
||||||
lines_skipped = 0
|
|
||||||
max_lines_visible = -1
|
|
||||||
_sections_unfolded = [ "Rect", "Size Flags" ]
|
|
||||||
|
|
||||||
[node name="login_input" type="LineEdit" parent="center_container/v_box_container/login_box" index="1"]
|
|
||||||
|
|
||||||
anchor_left = 0.0
|
|
||||||
anchor_top = 0.0
|
|
||||||
anchor_right = 0.0
|
|
||||||
anchor_bottom = 0.0
|
|
||||||
margin_left = 96.0
|
|
||||||
margin_right = 256.0
|
|
||||||
margin_bottom = 24.0
|
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
|
||||||
rect_clip_content = false
|
|
||||||
focus_mode = 2
|
|
||||||
mouse_filter = 0
|
|
||||||
mouse_default_cursor_shape = 1
|
|
||||||
size_flags_horizontal = 3
|
|
||||||
size_flags_vertical = 1
|
|
||||||
focus_mode = 2
|
|
||||||
context_menu_enabled = true
|
|
||||||
placeholder_text = "Enter your id here."
|
|
||||||
placeholder_alpha = 0.6
|
|
||||||
caret_blink = true
|
|
||||||
caret_blink_speed = 0.65
|
|
||||||
caret_position = 0
|
|
||||||
_sections_unfolded = [ "Caret", "Placeholder", "Rect", "Size Flags" ]
|
|
||||||
|
|
||||||
[node name="password_box" type="HBoxContainer" parent="center_container/v_box_container" index="1"]
|
|
||||||
|
|
||||||
anchor_left = 0.0
|
|
||||||
anchor_top = 0.0
|
|
||||||
anchor_right = 0.0
|
|
||||||
anchor_bottom = 0.0
|
|
||||||
margin_top = 48.0
|
|
||||||
margin_right = 256.0
|
|
||||||
margin_bottom = 72.0
|
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
|
||||||
rect_clip_content = false
|
|
||||||
mouse_filter = 1
|
|
||||||
mouse_default_cursor_shape = 0
|
|
||||||
size_flags_horizontal = 1
|
|
||||||
size_flags_vertical = 1
|
|
||||||
alignment = 0
|
|
||||||
|
|
||||||
[node name="password_label" type="Label" parent="center_container/v_box_container/password_box" index="0"]
|
|
||||||
|
|
||||||
anchor_left = 0.0
|
|
||||||
anchor_top = 0.0
|
|
||||||
anchor_right = 0.0
|
|
||||||
anchor_bottom = 0.0
|
|
||||||
margin_top = 5.0
|
|
||||||
margin_right = 94.0
|
|
||||||
margin_bottom = 19.0
|
|
||||||
rect_min_size = Vector2( 92, 0 )
|
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
|
||||||
rect_clip_content = false
|
|
||||||
mouse_filter = 2
|
|
||||||
mouse_default_cursor_shape = 0
|
|
||||||
size_flags_horizontal = 1
|
|
||||||
size_flags_vertical = 4
|
|
||||||
text = "Mot de passe: "
|
|
||||||
align = 2
|
|
||||||
percent_visible = 1.0
|
|
||||||
lines_skipped = 0
|
|
||||||
max_lines_visible = -1
|
|
||||||
_sections_unfolded = [ "Rect", "Size Flags" ]
|
|
||||||
|
|
||||||
[node name="password_input" type="LineEdit" parent="center_container/v_box_container/password_box" index="1"]
|
|
||||||
|
|
||||||
anchor_left = 0.0
|
|
||||||
anchor_top = 0.0
|
|
||||||
anchor_right = 0.0
|
|
||||||
anchor_bottom = 0.0
|
|
||||||
margin_left = 98.0
|
|
||||||
margin_right = 256.0
|
|
||||||
margin_bottom = 24.0
|
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
|
||||||
rect_clip_content = false
|
|
||||||
focus_mode = 2
|
|
||||||
mouse_filter = 0
|
|
||||||
mouse_default_cursor_shape = 1
|
|
||||||
size_flags_horizontal = 3
|
|
||||||
size_flags_vertical = 1
|
|
||||||
secret = true
|
|
||||||
focus_mode = 2
|
|
||||||
context_menu_enabled = true
|
|
||||||
placeholder_text = "Enter your password here."
|
|
||||||
placeholder_alpha = 0.6
|
|
||||||
caret_blink = true
|
|
||||||
caret_blink_speed = 0.65
|
|
||||||
caret_position = 0
|
|
||||||
_sections_unfolded = [ "Caret", "Placeholder", "Rect", "Size Flags" ]
|
|
||||||
|
|
||||||
[node name="login_button" type="Button" parent="center_container/v_box_container" index="2"]
|
|
||||||
|
|
||||||
anchor_left = 0.0
|
|
||||||
anchor_top = 0.0
|
|
||||||
anchor_right = 0.0
|
|
||||||
anchor_bottom = 0.0
|
|
||||||
margin_top = 96.0
|
|
||||||
margin_right = 256.0
|
|
||||||
margin_bottom = 116.0
|
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
|
||||||
rect_clip_content = false
|
|
||||||
focus_mode = 2
|
|
||||||
mouse_filter = 0
|
|
||||||
mouse_default_cursor_shape = 0
|
|
||||||
size_flags_horizontal = 1
|
|
||||||
size_flags_vertical = 1
|
|
||||||
toggle_mode = false
|
|
||||||
enabled_focus_mode = 2
|
|
||||||
shortcut = null
|
|
||||||
group = null
|
|
||||||
text = "Connexion"
|
|
||||||
flat = false
|
|
||||||
align = 1
|
|
||||||
_sections_unfolded = [ "Rect" ]
|
|
||||||
|
|
||||||
[node name="register_button" type="Button" parent="center_container/v_box_container" index="3"]
|
|
||||||
|
|
||||||
anchor_left = 0.0
|
|
||||||
anchor_top = 0.0
|
|
||||||
anchor_right = 0.0
|
|
||||||
anchor_bottom = 0.0
|
|
||||||
margin_top = 140.0
|
|
||||||
margin_right = 256.0
|
|
||||||
margin_bottom = 160.0
|
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
|
||||||
rect_clip_content = false
|
|
||||||
focus_mode = 2
|
|
||||||
mouse_filter = 0
|
|
||||||
mouse_default_cursor_shape = 0
|
|
||||||
size_flags_horizontal = 1
|
|
||||||
size_flags_vertical = 1
|
|
||||||
toggle_mode = false
|
|
||||||
enabled_focus_mode = 2
|
|
||||||
shortcut = null
|
|
||||||
group = null
|
|
||||||
text = "Créer un compte"
|
|
||||||
flat = false
|
|
||||||
align = 1
|
|
||||||
|
|
||||||
[node name="quit_button" type="Button" parent="center_container/v_box_container" index="4"]
|
|
||||||
|
|
||||||
anchor_left = 0.0
|
|
||||||
anchor_top = 0.0
|
|
||||||
anchor_right = 0.0
|
|
||||||
anchor_bottom = 0.0
|
|
||||||
margin_top = 184.0
|
|
||||||
margin_right = 256.0
|
|
||||||
margin_bottom = 204.0
|
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
|
||||||
rect_clip_content = false
|
|
||||||
focus_mode = 2
|
|
||||||
mouse_filter = 0
|
|
||||||
mouse_default_cursor_shape = 0
|
|
||||||
size_flags_horizontal = 1
|
|
||||||
size_flags_vertical = 1
|
|
||||||
toggle_mode = false
|
|
||||||
enabled_focus_mode = 2
|
|
||||||
shortcut = null
|
|
||||||
group = null
|
|
||||||
text = "Quitter"
|
|
||||||
flat = false
|
|
||||||
align = 1
|
|
||||||
script = ExtResource( 5 )
|
|
||||||
|
|
||||||
[node name="error_label" type="Label" parent="center_container/v_box_container" index="5"]
|
|
||||||
|
|
||||||
anchor_left = 0.0
|
|
||||||
anchor_top = 0.0
|
|
||||||
anchor_right = 0.0
|
|
||||||
anchor_bottom = 0.0
|
|
||||||
margin_top = 228.0
|
|
||||||
margin_right = 256.0
|
|
||||||
margin_bottom = 259.0
|
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
|
||||||
rect_clip_content = false
|
|
||||||
mouse_filter = 2
|
|
||||||
mouse_default_cursor_shape = 0
|
|
||||||
size_flags_horizontal = 1
|
|
||||||
size_flags_vertical = 4
|
|
||||||
text = "Ceci n'est qu'une maquette, cliquer sur connexion pour passer a la suite."
|
|
||||||
autowrap = true
|
|
||||||
percent_visible = 1.0
|
|
||||||
lines_skipped = 0
|
|
||||||
max_lines_visible = -1
|
|
||||||
|
|
||||||
[node name="h_box_container" type="HBoxContainer" parent="." index="4"]
|
|
||||||
|
|
||||||
anchor_left = 0.0
|
anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
|
@ -408,8 +113,8 @@ anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_right = 510.0
|
margin_right = 638.0
|
||||||
margin_bottom = 600.0
|
margin_bottom = 720.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
mouse_filter = 0
|
mouse_filter = 0
|
||||||
|
@ -424,9 +129,9 @@ anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_left = 514.0
|
margin_left = 642.0
|
||||||
margin_right = 1024.0
|
margin_right = 1280.0
|
||||||
margin_bottom = 600.0
|
margin_bottom = 720.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
mouse_filter = 1
|
mouse_filter = 1
|
||||||
|
@ -436,14 +141,14 @@ size_flags_vertical = 1
|
||||||
alignment = 0
|
alignment = 0
|
||||||
_sections_unfolded = [ "Margin", "Size Flags", "custom_constants" ]
|
_sections_unfolded = [ "Margin", "Size Flags", "custom_constants" ]
|
||||||
|
|
||||||
[node name="h_box_container" type="HBoxContainer" parent="h_box_container/v_box_container" index="0"]
|
[node name="buttons_box" type="HBoxContainer" parent="h_box_container/v_box_container" index="0"]
|
||||||
|
|
||||||
anchor_left = 0.0
|
anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_left = 348.0
|
margin_left = 422.0
|
||||||
margin_right = 510.0
|
margin_right = 638.0
|
||||||
margin_bottom = 61.0
|
margin_bottom = 61.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
|
@ -455,7 +160,7 @@ custom_constants/separation = 0
|
||||||
alignment = 2
|
alignment = 2
|
||||||
_sections_unfolded = [ "Size Flags", "custom_constants" ]
|
_sections_unfolded = [ "Size Flags", "custom_constants" ]
|
||||||
|
|
||||||
[node name="help_button" type="TextureButton" parent="h_box_container/v_box_container/h_box_container" index="0"]
|
[node name="help_button" type="TextureButton" parent="h_box_container/v_box_container/buttons_box" index="0"]
|
||||||
|
|
||||||
anchor_left = 0.0
|
anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
|
@ -474,10 +179,10 @@ toggle_mode = false
|
||||||
enabled_focus_mode = 2
|
enabled_focus_mode = 2
|
||||||
shortcut = null
|
shortcut = null
|
||||||
group = null
|
group = null
|
||||||
texture_normal = ExtResource( 6 )
|
texture_normal = ExtResource( 5 )
|
||||||
_sections_unfolded = [ "Size Flags", "Textures" ]
|
_sections_unfolded = [ "Margin", "Size Flags", "Textures" ]
|
||||||
|
|
||||||
[node name="settings_button" type="TextureButton" parent="h_box_container/v_box_container/h_box_container" index="1"]
|
[node name="settings_button" type="TextureButton" parent="h_box_container/v_box_container/buttons_box" index="1"]
|
||||||
|
|
||||||
anchor_left = 0.0
|
anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
|
@ -497,10 +202,10 @@ toggle_mode = false
|
||||||
enabled_focus_mode = 2
|
enabled_focus_mode = 2
|
||||||
shortcut = null
|
shortcut = null
|
||||||
group = null
|
group = null
|
||||||
texture_normal = ExtResource( 7 )
|
texture_normal = ExtResource( 6 )
|
||||||
_sections_unfolded = [ "Size Flags", "Textures" ]
|
_sections_unfolded = [ "Size Flags", "Textures" ]
|
||||||
|
|
||||||
[node name="quit_button" type="TextureButton" parent="h_box_container/v_box_container/h_box_container" index="2"]
|
[node name="quit_button" type="TextureButton" parent="h_box_container/v_box_container/buttons_box" index="2"]
|
||||||
|
|
||||||
anchor_left = 0.0
|
anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
|
@ -520,7 +225,31 @@ toggle_mode = false
|
||||||
enabled_focus_mode = 2
|
enabled_focus_mode = 2
|
||||||
shortcut = null
|
shortcut = null
|
||||||
group = null
|
group = null
|
||||||
|
texture_normal = ExtResource( 7 )
|
||||||
|
_sections_unfolded = [ "Size Flags", "Textures" ]
|
||||||
|
|
||||||
|
[node name="sound_button" type="TextureButton" parent="h_box_container/v_box_container/buttons_box" index="3"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_left = 162.0
|
||||||
|
margin_right = 216.0
|
||||||
|
margin_bottom = 61.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
focus_mode = 2
|
||||||
|
mouse_filter = 0
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 10
|
||||||
|
size_flags_vertical = 1
|
||||||
|
toggle_mode = true
|
||||||
|
enabled_focus_mode = 2
|
||||||
|
shortcut = null
|
||||||
|
group = null
|
||||||
texture_normal = ExtResource( 8 )
|
texture_normal = ExtResource( 8 )
|
||||||
|
texture_pressed = ExtResource( 9 )
|
||||||
_sections_unfolded = [ "Size Flags", "Textures" ]
|
_sections_unfolded = [ "Size Flags", "Textures" ]
|
||||||
|
|
||||||
[node name="margin_container" type="MarginContainer" parent="h_box_container/v_box_container" index="1"]
|
[node name="margin_container" type="MarginContainer" parent="h_box_container/v_box_container" index="1"]
|
||||||
|
@ -530,8 +259,8 @@ anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_top = 65.0
|
margin_top = 65.0
|
||||||
margin_right = 510.0
|
margin_right = 638.0
|
||||||
margin_bottom = 362.0
|
margin_bottom = 285.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
mouse_filter = 0
|
mouse_filter = 0
|
||||||
|
@ -552,8 +281,8 @@ anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_left = 32.0
|
margin_left = 32.0
|
||||||
margin_top = 32.0
|
margin_top = 32.0
|
||||||
margin_right = 478.0
|
margin_right = 606.0
|
||||||
margin_bottom = 297.0
|
margin_bottom = 220.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
mouse_filter = 1
|
mouse_filter = 1
|
||||||
|
@ -566,12 +295,11 @@ _sections_unfolded = [ "Margin", "custom_constants" ]
|
||||||
|
|
||||||
[node name="email_box" type="VBoxContainer" parent="h_box_container/v_box_container/margin_container/login_box" index="0"]
|
[node name="email_box" type="VBoxContainer" parent="h_box_container/v_box_container/margin_container/login_box" index="0"]
|
||||||
|
|
||||||
editor/display_folded = true
|
|
||||||
anchor_left = 0.0
|
anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_right = 446.0
|
margin_right = 574.0
|
||||||
margin_bottom = 58.0
|
margin_bottom = 58.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
|
@ -585,12 +313,11 @@ _sections_unfolded = [ "custom_constants" ]
|
||||||
|
|
||||||
[node name="email_label_box" type="HBoxContainer" parent="h_box_container/v_box_container/margin_container/login_box/email_box" index="0"]
|
[node name="email_label_box" type="HBoxContainer" parent="h_box_container/v_box_container/margin_container/login_box/email_box" index="0"]
|
||||||
|
|
||||||
editor/display_folded = true
|
|
||||||
anchor_left = 0.0
|
anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_right = 446.0
|
margin_right = 574.0
|
||||||
margin_bottom = 17.0
|
margin_bottom = 17.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
|
@ -607,7 +334,7 @@ anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_right = 158.0
|
margin_right = 39.0
|
||||||
margin_bottom = 17.0
|
margin_bottom = 17.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
|
@ -616,20 +343,20 @@ mouse_default_cursor_shape = 0
|
||||||
size_flags_horizontal = 1
|
size_flags_horizontal = 1
|
||||||
size_flags_vertical = 4
|
size_flags_vertical = 4
|
||||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
text = "Login (adresse e-mail)"
|
text = "Login"
|
||||||
percent_visible = 1.0
|
percent_visible = 1.0
|
||||||
lines_skipped = 0
|
lines_skipped = 0
|
||||||
max_lines_visible = -1
|
max_lines_visible = -1
|
||||||
_sections_unfolded = [ "custom_colors" ]
|
_sections_unfolded = [ "custom_colors" ]
|
||||||
|
|
||||||
[node name="link_button" type="LinkButton" parent="h_box_container/v_box_container/margin_container/login_box/email_box/email_label_box" index="1"]
|
[node name="register_button" type="LinkButton" parent="h_box_container/v_box_container/margin_container/login_box/email_box/email_label_box" index="1"]
|
||||||
|
|
||||||
anchor_left = 0.0
|
anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_left = 400.0
|
margin_left = 528.0
|
||||||
margin_right = 446.0
|
margin_right = 574.0
|
||||||
margin_bottom = 17.0
|
margin_bottom = 17.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
|
@ -656,7 +383,7 @@ anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_top = 25.0
|
margin_top = 25.0
|
||||||
margin_right = 446.0
|
margin_right = 574.0
|
||||||
margin_bottom = 58.0
|
margin_bottom = 58.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
|
@ -667,7 +394,7 @@ size_flags_horizontal = 1
|
||||||
size_flags_vertical = 1
|
size_flags_vertical = 1
|
||||||
focus_mode = 2
|
focus_mode = 2
|
||||||
context_menu_enabled = true
|
context_menu_enabled = true
|
||||||
placeholder_text = "Entrez votre adresse email ici."
|
placeholder_text = "Entrez votre login ici."
|
||||||
placeholder_alpha = 0.6
|
placeholder_alpha = 0.6
|
||||||
caret_blink = false
|
caret_blink = false
|
||||||
caret_blink_speed = 0.65
|
caret_blink_speed = 0.65
|
||||||
|
@ -682,7 +409,7 @@ anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_top = 74.0
|
margin_top = 74.0
|
||||||
margin_right = 446.0
|
margin_right = 574.0
|
||||||
margin_bottom = 132.0
|
margin_bottom = 132.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
|
@ -700,7 +427,7 @@ anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_right = 446.0
|
margin_right = 574.0
|
||||||
margin_bottom = 17.0
|
margin_bottom = 17.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
|
@ -738,8 +465,8 @@ anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_left = 348.0
|
margin_left = 476.0
|
||||||
margin_right = 446.0
|
margin_right = 574.0
|
||||||
margin_bottom = 17.0
|
margin_bottom = 17.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
|
@ -766,7 +493,7 @@ anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_top = 25.0
|
margin_top = 25.0
|
||||||
margin_right = 446.0
|
margin_right = 574.0
|
||||||
margin_bottom = 58.0
|
margin_bottom = 58.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
|
@ -793,7 +520,7 @@ anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_top = 148.0
|
margin_top = 148.0
|
||||||
margin_right = 446.0
|
margin_right = 574.0
|
||||||
margin_bottom = 188.0
|
margin_bottom = 188.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
|
@ -883,8 +610,8 @@ anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_left = 318.0
|
margin_left = 446.0
|
||||||
margin_right = 446.0
|
margin_right = 574.0
|
||||||
margin_bottom = 40.0
|
margin_bottom = 40.0
|
||||||
rect_min_size = Vector2( 128, 0 )
|
rect_min_size = Vector2( 128, 0 )
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
@ -904,41 +631,14 @@ flat = false
|
||||||
align = 1
|
align = 1
|
||||||
_sections_unfolded = [ "Margin", "Material", "Rect", "Size Flags", "Theme", "Visibility", "custom_colors", "custom_constants", "custom_fonts" ]
|
_sections_unfolded = [ "Margin", "Material", "Rect", "Size Flags", "Theme", "Visibility", "custom_colors", "custom_constants", "custom_fonts" ]
|
||||||
|
|
||||||
[node name="sound_button" type="TextureButton" parent="h_box_container/v_box_container/margin_container/login_box" index="3"]
|
|
||||||
|
|
||||||
anchor_left = 0.0
|
|
||||||
anchor_top = 0.0
|
|
||||||
anchor_right = 0.0
|
|
||||||
anchor_bottom = 0.0
|
|
||||||
margin_left = 392.0
|
|
||||||
margin_top = 204.0
|
|
||||||
margin_right = 446.0
|
|
||||||
margin_bottom = 265.0
|
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
|
||||||
rect_clip_content = false
|
|
||||||
focus_mode = 2
|
|
||||||
mouse_filter = 0
|
|
||||||
mouse_default_cursor_shape = 0
|
|
||||||
size_flags_horizontal = 10
|
|
||||||
size_flags_vertical = 1
|
|
||||||
toggle_mode = true
|
|
||||||
enabled_focus_mode = 2
|
|
||||||
shortcut = null
|
|
||||||
group = null
|
|
||||||
texture_normal = ExtResource( 10 )
|
|
||||||
texture_pressed = ExtResource( 11 )
|
|
||||||
_sections_unfolded = [ "Size Flags", "Textures" ]
|
|
||||||
|
|
||||||
[connection signal="request_completed" from="HTTPRequest" to="." method="_on_HTTPRequest_request_completed"]
|
[connection signal="request_completed" from="HTTPRequest" to="." method="_on_HTTPRequest_request_completed"]
|
||||||
|
|
||||||
[connection signal="pressed" from="center_container/v_box_container/login_button" to="." method="_on_login_button_pressed"]
|
[connection signal="pressed" from="h_box_container/v_box_container/buttons_box/quit_button" to="." method="_on_quit_button_pressed"]
|
||||||
|
|
||||||
[connection signal="pressed" from="center_container/v_box_container/quit_button" to="center_container/v_box_container/quit_button" method="_on_quit_button_pressed"]
|
[connection signal="toggled" from="h_box_container/v_box_container/buttons_box/sound_button" to="." method="_on_sound_button_toggled"]
|
||||||
|
|
||||||
[connection signal="pressed" from="h_box_container/v_box_container/h_box_container/quit_button" to="." method="_on_quit_button_pressed"]
|
[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_button" to="." method="_on_play_button_pressed"]
|
||||||
|
|
||||||
[connection signal="toggled" from="h_box_container/v_box_container/margin_container/login_box/sound_button" to="." method="_on_sound_button_toggled"]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
12
gui_scene/GUI/login/register_menu.gd
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
extends Control
|
||||||
|
|
||||||
|
signal sound_button_toggled( button_pressed )
|
||||||
|
signal cancel_button_pressed
|
||||||
|
|
||||||
|
|
||||||
|
func _on_sound_button_toggled( button_pressed ):
|
||||||
|
emit_signal( "sound_button_toggled", button_pressed )
|
||||||
|
|
||||||
|
|
||||||
|
func _on_cancel_button_pressed():
|
||||||
|
emit_signal( "cancel_button_pressed" )
|
611
gui_scene/GUI/login/register_menu.tscn
Normal file
|
@ -0,0 +1,611 @@
|
||||||
|
[gd_scene load_steps=13 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/images/Login-Khanat-background-buttons.png" type="Texture" id=4]
|
||||||
|
[ext_resource path="res://assets/GUI/images/Login-Khanat-help-button.png" type="Texture" id=5]
|
||||||
|
[ext_resource path="res://assets/GUI/images/Login-Khanat-settings-button.png" type="Texture" id=6]
|
||||||
|
[ext_resource path="res://assets/GUI/images/Login-Khanat-quit-button.png" type="Texture" id=7]
|
||||||
|
[ext_resource path="res://assets/GUI/images/Login-Khanat-sound-button.png" type="Texture" id=8]
|
||||||
|
[ext_resource path="res://assets/GUI/images/Login-Khanat-sound-muted-button.png" type="Texture" id=9]
|
||||||
|
[ext_resource path="res://assets/GUI/fonts/ryzom.ttf" type="DynamicFontData" id=10]
|
||||||
|
|
||||||
|
[sub_resource type="CanvasItemMaterial" id=1]
|
||||||
|
|
||||||
|
render_priority = 0
|
||||||
|
blend_mode = 0
|
||||||
|
light_mode = 0
|
||||||
|
|
||||||
|
[sub_resource type="DynamicFont" id=5]
|
||||||
|
|
||||||
|
size = 20
|
||||||
|
use_mipmaps = false
|
||||||
|
use_filter = false
|
||||||
|
font_data = ExtResource( 10 )
|
||||||
|
_sections_unfolded = [ "Extra Spacing", "Font", "Settings" ]
|
||||||
|
|
||||||
|
[node name="register_menu" type="Control"]
|
||||||
|
|
||||||
|
material = SubResource( 1 )
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 0
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 1
|
||||||
|
theme = ExtResource( 1 )
|
||||||
|
script = ExtResource( 2 )
|
||||||
|
_sections_unfolded = [ "Material", "Theme", "Visibility", "custom_styles" ]
|
||||||
|
|
||||||
|
[node name="HTTPRequest" type="HTTPRequest" parent="." index="0"]
|
||||||
|
|
||||||
|
download_file = ""
|
||||||
|
use_threads = false
|
||||||
|
body_size_limit = -1
|
||||||
|
max_redirects = 8
|
||||||
|
_sections_unfolded = [ "Pause" ]
|
||||||
|
|
||||||
|
[node name="background" type="TextureRect" parent="." index="1"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 1
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 1
|
||||||
|
texture = ExtResource( 3 )
|
||||||
|
expand = true
|
||||||
|
stretch_mode = 7
|
||||||
|
_sections_unfolded = [ "Visibility" ]
|
||||||
|
|
||||||
|
[node name="buttons_background" type="TextureRect" parent="." index="2"]
|
||||||
|
|
||||||
|
anchor_left = 1.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_left = -307.0
|
||||||
|
margin_bottom = 65.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 1
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 1
|
||||||
|
texture = ExtResource( 4 )
|
||||||
|
stretch_mode = 7
|
||||||
|
_sections_unfolded = [ "Size Flags" ]
|
||||||
|
|
||||||
|
[node name="h_box_container" type="HBoxContainer" parent="." index="3"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 1
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 1
|
||||||
|
alignment = 0
|
||||||
|
|
||||||
|
[node name="v_box_container" type="VBoxContainer" parent="h_box_container" index="0"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_right = 1280.0
|
||||||
|
margin_bottom = 720.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 1
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 1
|
||||||
|
alignment = 0
|
||||||
|
_sections_unfolded = [ "Margin", "Size Flags", "custom_constants" ]
|
||||||
|
|
||||||
|
[node name="buttons_box" type="HBoxContainer" parent="h_box_container/v_box_container" index="0"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_left = 1064.0
|
||||||
|
margin_right = 1280.0
|
||||||
|
margin_bottom = 61.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 1
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 10
|
||||||
|
size_flags_vertical = 1
|
||||||
|
custom_constants/separation = 0
|
||||||
|
alignment = 2
|
||||||
|
_sections_unfolded = [ "Size Flags", "custom_constants" ]
|
||||||
|
|
||||||
|
[node name="help_button" type="TextureButton" parent="h_box_container/v_box_container/buttons_box" index="0"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_right = 54.0
|
||||||
|
margin_bottom = 61.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
focus_mode = 2
|
||||||
|
mouse_filter = 0
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 10
|
||||||
|
size_flags_vertical = 1
|
||||||
|
toggle_mode = false
|
||||||
|
enabled_focus_mode = 2
|
||||||
|
shortcut = null
|
||||||
|
group = null
|
||||||
|
texture_normal = ExtResource( 5 )
|
||||||
|
_sections_unfolded = [ "Margin", "Size Flags", "Textures" ]
|
||||||
|
|
||||||
|
[node name="settings_button" type="TextureButton" parent="h_box_container/v_box_container/buttons_box" index="1"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_left = 54.0
|
||||||
|
margin_right = 108.0
|
||||||
|
margin_bottom = 61.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
focus_mode = 2
|
||||||
|
mouse_filter = 0
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 10
|
||||||
|
size_flags_vertical = 1
|
||||||
|
toggle_mode = false
|
||||||
|
enabled_focus_mode = 2
|
||||||
|
shortcut = null
|
||||||
|
group = null
|
||||||
|
texture_normal = ExtResource( 6 )
|
||||||
|
_sections_unfolded = [ "Size Flags", "Textures" ]
|
||||||
|
|
||||||
|
[node name="quit_button" type="TextureButton" parent="h_box_container/v_box_container/buttons_box" index="2"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_left = 108.0
|
||||||
|
margin_right = 162.0
|
||||||
|
margin_bottom = 61.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
focus_mode = 2
|
||||||
|
mouse_filter = 0
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 10
|
||||||
|
size_flags_vertical = 1
|
||||||
|
toggle_mode = false
|
||||||
|
enabled_focus_mode = 2
|
||||||
|
shortcut = null
|
||||||
|
group = null
|
||||||
|
texture_normal = ExtResource( 7 )
|
||||||
|
_sections_unfolded = [ "Size Flags", "Textures" ]
|
||||||
|
|
||||||
|
[node name="sound_button" type="TextureButton" parent="h_box_container/v_box_container/buttons_box" index="3"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_left = 162.0
|
||||||
|
margin_right = 216.0
|
||||||
|
margin_bottom = 61.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
focus_mode = 2
|
||||||
|
mouse_filter = 0
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 10
|
||||||
|
size_flags_vertical = 1
|
||||||
|
toggle_mode = true
|
||||||
|
enabled_focus_mode = 2
|
||||||
|
shortcut = null
|
||||||
|
group = null
|
||||||
|
texture_normal = ExtResource( 8 )
|
||||||
|
texture_pressed = ExtResource( 9 )
|
||||||
|
_sections_unfolded = [ "Size Flags", "Textures" ]
|
||||||
|
|
||||||
|
[node name="center_container" type="CenterContainer" parent="h_box_container/v_box_container" index="1"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_top = 65.0
|
||||||
|
margin_right = 1280.0
|
||||||
|
margin_bottom = 720.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 0
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 3
|
||||||
|
use_top_left = false
|
||||||
|
_sections_unfolded = [ "Size Flags", "custom_constants" ]
|
||||||
|
|
||||||
|
[node name="register_box" type="VBoxContainer" parent="h_box_container/v_box_container/center_container" index="0"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_left = 510.0
|
||||||
|
margin_top = 159.0
|
||||||
|
margin_right = 770.0
|
||||||
|
margin_bottom = 495.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 1
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 1
|
||||||
|
custom_constants/separation = 16
|
||||||
|
alignment = 0
|
||||||
|
_sections_unfolded = [ "Margin", "custom_constants" ]
|
||||||
|
|
||||||
|
[node name="login_box" type="VBoxContainer" parent="h_box_container/v_box_container/center_container/register_box" index="0"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_right = 260.0
|
||||||
|
margin_bottom = 58.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 1
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 1
|
||||||
|
custom_constants/separation = 8
|
||||||
|
alignment = 0
|
||||||
|
_sections_unfolded = [ "custom_constants" ]
|
||||||
|
|
||||||
|
[node name="label" type="Label" parent="h_box_container/v_box_container/center_container/register_box/login_box" index="0"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_right = 260.0
|
||||||
|
margin_bottom = 17.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 2
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 4
|
||||||
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
|
text = "Login"
|
||||||
|
percent_visible = 1.0
|
||||||
|
lines_skipped = 0
|
||||||
|
max_lines_visible = -1
|
||||||
|
_sections_unfolded = [ "custom_colors" ]
|
||||||
|
|
||||||
|
[node name="login_edit" type="LineEdit" parent="h_box_container/v_box_container/center_container/register_box/login_box" index="1"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_top = 25.0
|
||||||
|
margin_right = 260.0
|
||||||
|
margin_bottom = 58.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
focus_mode = 2
|
||||||
|
mouse_filter = 0
|
||||||
|
mouse_default_cursor_shape = 1
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 1
|
||||||
|
focus_mode = 2
|
||||||
|
context_menu_enabled = true
|
||||||
|
placeholder_text = "Entrez votre login ici."
|
||||||
|
placeholder_alpha = 0.6
|
||||||
|
caret_blink = false
|
||||||
|
caret_blink_speed = 0.65
|
||||||
|
caret_position = 0
|
||||||
|
_sections_unfolded = [ "Material", "Placeholder", "Visibility", "custom_colors", "custom_styles" ]
|
||||||
|
|
||||||
|
[node name="password_box" type="VBoxContainer" parent="h_box_container/v_box_container/center_container/register_box" index="1"]
|
||||||
|
|
||||||
|
editor/display_folded = true
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_top = 74.0
|
||||||
|
margin_right = 260.0
|
||||||
|
margin_bottom = 132.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 1
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 1
|
||||||
|
custom_constants/separation = 8
|
||||||
|
alignment = 0
|
||||||
|
_sections_unfolded = [ "custom_constants" ]
|
||||||
|
|
||||||
|
[node name="label" type="Label" parent="h_box_container/v_box_container/center_container/register_box/password_box" index="0"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_right = 260.0
|
||||||
|
margin_bottom = 17.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 2
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 4
|
||||||
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
|
text = "Mot de passe"
|
||||||
|
percent_visible = 1.0
|
||||||
|
lines_skipped = 0
|
||||||
|
max_lines_visible = -1
|
||||||
|
_sections_unfolded = [ "custom_colors" ]
|
||||||
|
|
||||||
|
[node name="password_edit" type="LineEdit" parent="h_box_container/v_box_container/center_container/register_box/password_box" index="1"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_top = 25.0
|
||||||
|
margin_right = 260.0
|
||||||
|
margin_bottom = 58.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
focus_mode = 2
|
||||||
|
mouse_filter = 0
|
||||||
|
mouse_default_cursor_shape = 1
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 1
|
||||||
|
secret = true
|
||||||
|
focus_mode = 2
|
||||||
|
context_menu_enabled = true
|
||||||
|
placeholder_text = "Entrez votre mot de passe ici."
|
||||||
|
placeholder_alpha = 0.6
|
||||||
|
caret_blink = false
|
||||||
|
caret_blink_speed = 0.65
|
||||||
|
caret_position = 0
|
||||||
|
_sections_unfolded = [ "Material", "Placeholder", "Visibility", "custom_colors", "custom_styles" ]
|
||||||
|
|
||||||
|
[node name="password_confirm_box" type="VBoxContainer" parent="h_box_container/v_box_container/center_container/register_box" index="2"]
|
||||||
|
|
||||||
|
editor/display_folded = true
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_top = 148.0
|
||||||
|
margin_right = 260.0
|
||||||
|
margin_bottom = 206.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 1
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 1
|
||||||
|
custom_constants/separation = 8
|
||||||
|
alignment = 0
|
||||||
|
_sections_unfolded = [ "custom_constants" ]
|
||||||
|
|
||||||
|
[node name="label" type="Label" parent="h_box_container/v_box_container/center_container/register_box/password_confirm_box" index="0"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_right = 260.0
|
||||||
|
margin_bottom = 17.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 2
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 4
|
||||||
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
|
text = "Confirmation du ot de passe"
|
||||||
|
percent_visible = 1.0
|
||||||
|
lines_skipped = 0
|
||||||
|
max_lines_visible = -1
|
||||||
|
_sections_unfolded = [ "custom_colors" ]
|
||||||
|
|
||||||
|
[node name="password_edit" type="LineEdit" parent="h_box_container/v_box_container/center_container/register_box/password_confirm_box" index="1"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_top = 25.0
|
||||||
|
margin_right = 260.0
|
||||||
|
margin_bottom = 58.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
focus_mode = 2
|
||||||
|
mouse_filter = 0
|
||||||
|
mouse_default_cursor_shape = 1
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 1
|
||||||
|
secret = true
|
||||||
|
focus_mode = 2
|
||||||
|
context_menu_enabled = true
|
||||||
|
placeholder_text = "Entrez votre mot de passe ici."
|
||||||
|
placeholder_alpha = 0.6
|
||||||
|
caret_blink = false
|
||||||
|
caret_blink_speed = 0.65
|
||||||
|
caret_position = 0
|
||||||
|
_sections_unfolded = [ "Material", "Placeholder", "Visibility", "custom_colors", "custom_styles" ]
|
||||||
|
|
||||||
|
[node name="email_box" type="VBoxContainer" parent="h_box_container/v_box_container/center_container/register_box" index="3"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_top = 222.0
|
||||||
|
margin_right = 260.0
|
||||||
|
margin_bottom = 280.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 1
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 1
|
||||||
|
custom_constants/separation = 8
|
||||||
|
alignment = 0
|
||||||
|
_sections_unfolded = [ "custom_constants" ]
|
||||||
|
|
||||||
|
[node name="label" type="Label" parent="h_box_container/v_box_container/center_container/register_box/email_box" index="0"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_right = 260.0
|
||||||
|
margin_bottom = 17.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 2
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 4
|
||||||
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
|
text = "e-mail"
|
||||||
|
percent_visible = 1.0
|
||||||
|
lines_skipped = 0
|
||||||
|
max_lines_visible = -1
|
||||||
|
_sections_unfolded = [ "custom_colors" ]
|
||||||
|
|
||||||
|
[node name="email_edit" type="LineEdit" parent="h_box_container/v_box_container/center_container/register_box/email_box" index="1"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_top = 25.0
|
||||||
|
margin_right = 260.0
|
||||||
|
margin_bottom = 58.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
focus_mode = 2
|
||||||
|
mouse_filter = 0
|
||||||
|
mouse_default_cursor_shape = 1
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 1
|
||||||
|
focus_mode = 2
|
||||||
|
context_menu_enabled = true
|
||||||
|
placeholder_text = "Entrez votre adresse email ici."
|
||||||
|
placeholder_alpha = 0.6
|
||||||
|
caret_blink = false
|
||||||
|
caret_blink_speed = 0.65
|
||||||
|
caret_position = 0
|
||||||
|
_sections_unfolded = [ "Material", "Placeholder", "Visibility", "custom_colors", "custom_styles" ]
|
||||||
|
|
||||||
|
[node name="h_box_container" type="HBoxContainer" parent="h_box_container/v_box_container/center_container/register_box" index="4"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_top = 296.0
|
||||||
|
margin_right = 260.0
|
||||||
|
margin_bottom = 336.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 1
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 1
|
||||||
|
alignment = 0
|
||||||
|
|
||||||
|
[node name="cancel_button" type="Button" parent="h_box_container/v_box_container/center_container/register_box/h_box_container" index="0"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_right = 128.0
|
||||||
|
margin_bottom = 40.0
|
||||||
|
rect_min_size = Vector2( 128, 0 )
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
focus_mode = 2
|
||||||
|
mouse_filter = 0
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 6
|
||||||
|
size_flags_vertical = 1
|
||||||
|
custom_fonts/font = SubResource( 5 )
|
||||||
|
toggle_mode = false
|
||||||
|
enabled_focus_mode = 2
|
||||||
|
shortcut = null
|
||||||
|
group = null
|
||||||
|
text = "Annuler"
|
||||||
|
flat = false
|
||||||
|
align = 1
|
||||||
|
_sections_unfolded = [ "Margin", "Material", "Rect", "Size Flags", "Theme", "Visibility", "custom_colors", "custom_constants", "custom_fonts" ]
|
||||||
|
|
||||||
|
[node name="register_button2" type="Button" parent="h_box_container/v_box_container/center_container/register_box/h_box_container" index="1"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 0.0
|
||||||
|
anchor_bottom = 0.0
|
||||||
|
margin_left = 132.0
|
||||||
|
margin_right = 260.0
|
||||||
|
margin_bottom = 40.0
|
||||||
|
rect_min_size = Vector2( 128, 0 )
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
focus_mode = 2
|
||||||
|
mouse_filter = 0
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 6
|
||||||
|
size_flags_vertical = 1
|
||||||
|
custom_fonts/font = SubResource( 5 )
|
||||||
|
toggle_mode = false
|
||||||
|
enabled_focus_mode = 2
|
||||||
|
shortcut = null
|
||||||
|
group = null
|
||||||
|
text = "S'inscrire"
|
||||||
|
flat = false
|
||||||
|
align = 1
|
||||||
|
_sections_unfolded = [ "Margin", "Material", "Rect", "Size Flags", "Theme", "Visibility", "custom_colors", "custom_constants", "custom_fonts" ]
|
||||||
|
|
||||||
|
[connection signal="request_completed" from="HTTPRequest" to="." method="_on_HTTPRequest_request_completed"]
|
||||||
|
|
||||||
|
[connection signal="pressed" from="h_box_container/v_box_container/buttons_box/quit_button" to="." method="_on_quit_button_pressed"]
|
||||||
|
|
||||||
|
[connection signal="toggled" from="h_box_container/v_box_container/buttons_box/sound_button" to="." method="_on_sound_button_toggled"]
|
||||||
|
|
||||||
|
[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"]
|
||||||
|
|
||||||
|
|
|
@ -35,3 +35,20 @@ func _on_character_selection_menu_character_selected( slot ):
|
||||||
character.update()
|
character.update()
|
||||||
|
|
||||||
emit_signal( "character_creation_finished" )
|
emit_signal( "character_creation_finished" )
|
||||||
|
|
||||||
|
|
||||||
|
func _on_sound_button_toggled(button_pressed):
|
||||||
|
if button_pressed:
|
||||||
|
global.get_node( "audio_stream_player" ).stop()
|
||||||
|
else:
|
||||||
|
global.get_node( "audio_stream_player" ).play()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_login_menu_register_button_pressed():
|
||||||
|
$login_menu.hide()
|
||||||
|
$register_menu.show()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_register_menu_cancel_button_pressed():
|
||||||
|
$login_menu.show()
|
||||||
|
$register_menu.hide()
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
[gd_scene load_steps=4 format=2]
|
[gd_scene load_steps=5 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://login_scene/login_scene.gd" type="Script" id=1]
|
[ext_resource path="res://login_scene/login_scene.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://login_scene/character_selection_menu.tscn" type="PackedScene" id=2]
|
[ext_resource path="res://login_scene/character_selection_menu.tscn" type="PackedScene" id=2]
|
||||||
[ext_resource path="res://gui_scene/GUI/login/login_menu.tscn" type="PackedScene" id=3]
|
[ext_resource path="res://gui_scene/GUI/login/login_menu.tscn" type="PackedScene" id=3]
|
||||||
|
[ext_resource path="res://gui_scene/GUI/login/register_menu.tscn" type="PackedScene" id=4]
|
||||||
|
|
||||||
[node name="login_scene" type="Node"]
|
[node name="login_scene" type="Node" index="0"]
|
||||||
|
|
||||||
script = ExtResource( 1 )
|
script = ExtResource( 1 )
|
||||||
|
|
||||||
|
@ -17,10 +18,22 @@ visible = false
|
||||||
margin_top = -1.0
|
margin_top = -1.0
|
||||||
margin_bottom = -1.0
|
margin_bottom = -1.0
|
||||||
|
|
||||||
|
[node name="register_menu" parent="." index="2" instance=ExtResource( 4 )]
|
||||||
|
|
||||||
|
visible = false
|
||||||
|
|
||||||
[connection signal="character_selected" from="character_selection_menu" to="." method="_on_character_selection_menu_character_selected"]
|
[connection signal="character_selected" from="character_selection_menu" to="." method="_on_character_selection_menu_character_selected"]
|
||||||
|
|
||||||
[connection signal="return_button_pressed" from="character_selection_menu" to="." method="_on_character_selection_menu_return_button_pressed"]
|
[connection signal="return_button_pressed" from="character_selection_menu" to="." method="_on_character_selection_menu_return_button_pressed"]
|
||||||
|
|
||||||
[connection signal="login_button_pressed" from="login_menu" to="." method="_on_login_menu_login_button_pressed"]
|
[connection signal="login_button_pressed" from="login_menu" to="." method="_on_login_menu_login_button_pressed"]
|
||||||
|
|
||||||
|
[connection signal="register_button_pressed" from="login_menu" to="." method="_on_login_menu_register_button_pressed"]
|
||||||
|
|
||||||
|
[connection signal="sound_button_toggled" from="login_menu" to="." method="_on_sound_button_toggled"]
|
||||||
|
|
||||||
|
[connection signal="cancel_button_pressed" from="register_menu" to="." method="_on_register_menu_cancel_button_pressed"]
|
||||||
|
|
||||||
|
[connection signal="sound_button_toggled" from="register_menu" to="." method="_on_sound_button_toggled"]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,8 @@ character="*res://game_scene/Game/Character/Character.tscn"
|
||||||
|
|
||||||
[display]
|
[display]
|
||||||
|
|
||||||
|
window/size/width=1280
|
||||||
|
window/size/height=720
|
||||||
window/size/test_width=1024
|
window/size/test_width=1024
|
||||||
window/size/test_height=600
|
window/size/test_height=600
|
||||||
|
|
||||||
|
|