diff --git a/assets/GUI/images/Login-Khanat-background-buttons.png b/assets/GUI/images/Login-Khanat-background-buttons.png new file mode 100644 index 0000000..2715cd8 Binary files /dev/null and b/assets/GUI/images/Login-Khanat-background-buttons.png differ diff --git a/assets/GUI/images/Login-Khanat-background.png b/assets/GUI/images/Login-Khanat-background.png new file mode 100644 index 0000000..3768e07 Binary files /dev/null and b/assets/GUI/images/Login-Khanat-background.png differ diff --git a/assets/GUI/images/Login-Khanat-buttons.xcf b/assets/GUI/images/Login-Khanat-buttons.xcf new file mode 100644 index 0000000..611ae40 Binary files /dev/null and b/assets/GUI/images/Login-Khanat-buttons.xcf differ diff --git a/assets/GUI/images/Login-Khanat-help-button.png b/assets/GUI/images/Login-Khanat-help-button.png new file mode 100644 index 0000000..79e59d6 Binary files /dev/null and b/assets/GUI/images/Login-Khanat-help-button.png differ diff --git a/assets/GUI/images/Login-Khanat-quit-button.png b/assets/GUI/images/Login-Khanat-quit-button.png new file mode 100644 index 0000000..4326045 Binary files /dev/null and b/assets/GUI/images/Login-Khanat-quit-button.png differ diff --git a/assets/GUI/images/Login-Khanat-settings-button.png b/assets/GUI/images/Login-Khanat-settings-button.png new file mode 100644 index 0000000..7cb81c5 Binary files /dev/null and b/assets/GUI/images/Login-Khanat-settings-button.png differ diff --git a/gui_scene/GUI/login/login_menu.gd b/gui_scene/GUI/login/login_menu.gd index 48b80e2..16c0a7b 100644 --- a/gui_scene/GUI/login/login_menu.gd +++ b/gui_scene/GUI/login/login_menu.gd @@ -4,3 +4,11 @@ signal login_button_pressed func _on_login_button_pressed(): emit_signal( "login_button_pressed" ) + + +func _on_play_button_pressed(): + emit_signal( "login_button_pressed" ) + + +func _on_quit_button_pressed(): + self.get_tree().quit() diff --git a/gui_scene/GUI/login/login_menu.tscn b/gui_scene/GUI/login/login_menu.tscn index 801b3b2..699d323 100644 --- a/gui_scene/GUI/login/login_menu.tscn +++ b/gui_scene/GUI/login/login_menu.tscn @@ -1,8 +1,13 @@ -[gd_scene load_steps=7 format=2] +[gd_scene load_steps=13 format=2] [ext_resource path="res://gui_scene/GUI/login/login_menu.gd" type="Script" id=1] -[ext_resource path="res://assets/GUI/images/new_launcher_bg_0-1.png" type="Texture" id=2] -[ext_resource path="res://gui_scene/GUI/login/quit_button.gd" type="Script" id=3] +[ext_resource path="res://assets/GUI/images/Login-Khanat-background.png" type="Texture" id=2] +[ext_resource path="res://assets/GUI/images/Login-Khanat-background-buttons.png" type="Texture" id=3] +[ext_resource path="res://gui_scene/GUI/login/quit_button.gd" type="Script" 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/fonts/ryzom.ttf" type="DynamicFontData" id=8] [sub_resource type="CanvasItemMaterial" id=1] @@ -21,7 +26,15 @@ flags = 4 gradient = SubResource( 2 ) width = 2048 -[node name="login_menu" type="Control"] +[sub_resource type="DynamicFont" id=4] + +size = 10 +use_mipmaps = false +use_filter = false +font_data = ExtResource( 8 ) +_sections_unfolded = [ "Font", "Settings" ] + +[node name="login_menu" type="Control" index="0"] material = SubResource( 1 ) anchor_left = 0.0 @@ -37,7 +50,7 @@ size_flags_vertical = 1 script = ExtResource( 1 ) _sections_unfolded = [ "Material", "Theme", "Visibility", "custom_styles" ] -[node name="texture_rect" type="TextureRect" parent="." index="0"] +[node name="background" type="TextureRect" parent="." index="0"] anchor_left = 0.0 anchor_top = 0.0 @@ -54,8 +67,28 @@ expand = true stretch_mode = 7 _sections_unfolded = [ "Visibility" ] -[node name="center_container" type="CenterContainer" parent="." index="1"] +[node name="OLD_buttons_background" type="TextureRect" parent="." index="1"] +anchor_left = 1.0 +anchor_top = 0.0 +anchor_right = 1.0 +anchor_bottom = 0.0 +margin_left = -254.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 = 10 +size_flags_vertical = 1 +texture = ExtResource( 3 ) +stretch_mode = 0 +_sections_unfolded = [ "Size Flags" ] + +[node name="center_container" type="CenterContainer" parent="." index="2"] + +editor/display_folded = true +visible = false anchor_left = 0.0 anchor_top = 0.0 anchor_right = 1.0 @@ -96,9 +129,9 @@ anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 384.0 -margin_top = 170.0 +margin_top = 172.0 margin_right = 640.0 -margin_bottom = 429.0 +margin_bottom = 428.0 rect_min_size = Vector2( 256, 256 ) rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false @@ -312,7 +345,7 @@ group = null text = "Quitter" flat = false align = 1 -script = ExtResource( 3 ) +script = ExtResource( 4 ) [node name="error_label" type="Label" parent="center_container/v_box_container" index="5"] @@ -335,8 +368,523 @@ percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 +[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="container" type="Container" parent="h_box_container" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_right = 510.0 +margin_bottom = 600.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 = 1 +_sections_unfolded = [ "Size Flags" ] + +[node name="v_box_container" type="VBoxContainer" parent="h_box_container" index="1"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 514.0 +margin_right = 1024.0 +margin_bottom = 600.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="h_box_container" 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 = 348.0 +margin_right = 510.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/h_box_container" 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 = [ "Size Flags", "Textures" ] + +[node name="settings_button" type="TextureButton" parent="h_box_container/v_box_container/h_box_container" 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/h_box_container" 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="margin_container" type="MarginContainer" 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 = 510.0 +margin_bottom = 265.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 +custom_constants/margin_right = 32 +custom_constants/margin_top = 32 +custom_constants/margin_left = 32 +custom_constants/margin_bottom = 0 +_sections_unfolded = [ "custom_constants" ] + +[node name="login_box" type="VBoxContainer" parent="h_box_container/v_box_container/margin_container" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 32.0 +margin_top = 32.0 +margin_right = 478.0 +margin_bottom = 200.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="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_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_right = 446.0 +margin_bottom = 42.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="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_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_right = 446.0 +margin_bottom = 14.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 +_sections_unfolded = [ "Margin", "custom_constants" ] + +[node name="label" type="Label" parent="h_box_container/v_box_container/margin_container/login_box/email_box/email_label_box" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_right = 141.0 +margin_bottom = 14.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 (adresse e-mail)" +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 +_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"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 400.0 +margin_right = 446.0 +margin_bottom = 14.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 2 +size_flags_horizontal = 10 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 4 ) +custom_colors/font_color = Color( 0, 0, 0, 1 ) +custom_colors/font_color_hover = Color( 0.503906, 0.503906, 0.503906, 1 ) +custom_colors/font_color_pressed = Color( 0, 0, 0, 1 ) +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "S'inscrire" +underline = 2 +_sections_unfolded = [ "Size Flags", "custom_colors", "custom_constants", "custom_fonts" ] + +[node name="email_edit" type="LineEdit" parent="h_box_container/v_box_container/margin_container/login_box/email_box" index="1"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 18.0 +margin_right = 446.0 +margin_bottom = 42.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="password_box" type="VBoxContainer" parent="h_box_container/v_box_container/margin_container/login_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 = 58.0 +margin_right = 446.0 +margin_bottom = 100.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_box" type="HBoxContainer" parent="h_box_container/v_box_container/margin_container/login_box/password_box" index="0"] + +editor/display_folded = true +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_right = 446.0 +margin_bottom = 14.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 +_sections_unfolded = [ "Margin", "custom_constants" ] + +[node name="label" type="Label" parent="h_box_container/v_box_container/margin_container/login_box/password_box/password_label_box" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_right = 87.0 +margin_bottom = 14.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="link_button" type="LinkButton" parent="h_box_container/v_box_container/margin_container/login_box/password_box/password_label_box" index="1"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 348.0 +margin_right = 446.0 +margin_bottom = 14.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 2 +size_flags_horizontal = 10 +size_flags_vertical = 1 +custom_fonts/font = SubResource( 4 ) +custom_colors/font_color = Color( 0, 0, 0, 1 ) +custom_colors/font_color_hover = Color( 0.503906, 0.503906, 0.503906, 1 ) +custom_colors/font_color_pressed = Color( 0, 0, 0, 1 ) +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "Mot de passe oubliƩ" +underline = 2 +_sections_unfolded = [ "Size Flags", "custom_colors", "custom_constants", "custom_fonts" ] + +[node name="password_edit" type="LineEdit" parent="h_box_container/v_box_container/margin_container/login_box/password_box" index="1"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 18.0 +margin_right = 446.0 +margin_bottom = 42.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 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/margin_container/login_box" index="2"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 116.0 +margin_right = 446.0 +margin_bottom = 168.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="checkboxs_box" type="VBoxContainer" parent="h_box_container/v_box_container/margin_container/login_box/h_box_container" index="0"] + +editor/display_folded = true +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_right = 217.0 +margin_bottom = 52.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="check_box" type="CheckBox" parent="h_box_container/v_box_container/margin_container/login_box/h_box_container/checkboxs_box" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_right = 217.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 = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +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 ) +toggle_mode = true +enabled_focus_mode = 2 +shortcut = null +group = null +text = "Se souvenir de l'e-mail." +flat = false +align = 0 +_sections_unfolded = [ "custom_colors" ] + +[node name="check_box2" type="CheckBox" parent="h_box_container/v_box_container/margin_container/login_box/h_box_container/checkboxs_box" index="1"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 28.0 +margin_right = 217.0 +margin_bottom = 52.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 +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 ) +toggle_mode = true +enabled_focus_mode = 2 +shortcut = null +group = null +text = "Se souvenir du mot de passe." +flat = false +align = 0 +_sections_unfolded = [ "custom_colors" ] + +[node name="play_button" type="Button" parent="h_box_container/v_box_container/margin_container/login_box/h_box_container" index="1"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 318.0 +margin_right = 446.0 +margin_bottom = 52.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 = 10 +size_flags_vertical = 1 +toggle_mode = false +enabled_focus_mode = 2 +shortcut = null +group = null +text = "Jouer" +flat = false +align = 1 +_sections_unfolded = [ "Material", "Rect", "Size Flags", "Theme", "Visibility", "custom_colors", "custom_constants" ] + [connection signal="pressed" from="center_container/v_box_container/login_button" to="." method="_on_login_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="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/h_box_container/play_button" to="." method="_on_play_button_pressed"] +