diff --git a/gui_scene/GUI/login/login_menu.gd b/gui_scene/GUI/login/login_menu.gd index 34ac3c7..51d9216 100644 --- a/gui_scene/GUI/login/login_menu.gd +++ b/gui_scene/GUI/login/login_menu.gd @@ -1,8 +1,6 @@ extends Control signal login_button_pressed -signal sound_button_toggled( button_pressed ) - signal register_button_pressed func _on_login_button_pressed(): @@ -15,17 +13,6 @@ func _on_play_button_pressed(): if username != null and username != "" and password != null and password != "": do_request(username, password) - - - -func _on_quit_button_pressed(): - self.get_tree().quit() - - -func _on_sound_button_toggled( button_pressed ): - emit_signal( "sound_button_toggled", button_pressed ) - - func do_request(username, password): var message = load("res://assets/Scripts/Models/nel_login_message.gd").nel_login_message.new("https-login", username, password, "Lirria", "2", "en"); # $HTTPRequest.request("http://lirria.khaganat.net/login/r2_login.php?" + message.get_request_string()); diff --git a/gui_scene/GUI/login/login_menu.tscn b/gui_scene/GUI/login/login_menu.tscn index 41568f8..894587e 100644 --- a/gui_scene/GUI/login/login_menu.tscn +++ b/gui_scene/GUI/login/login_menu.tscn @@ -1,15 +1,9 @@ -[gd_scene load_steps=14 format=2] +[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/images/Login-Khanat-background-buttons.png" type="Texture" id=4] -[ext_resource path="res://assets/GUI/images/Login-Khanat-sound-button.png" type="Texture" id=5] -[ext_resource path="res://assets/GUI/images/Login-Khanat-sound-muted-button.png" type="Texture" id=6] -[ext_resource path="res://assets/GUI/images/Login-Khanat-help-button.png" type="Texture" id=7] -[ext_resource path="res://assets/GUI/images/Login-Khanat-settings-button.png" type="Texture" id=8] -[ext_resource path="res://assets/GUI/images/Login-Khanat-quit-button.png" type="Texture" id=9] -[ext_resource path="res://assets/GUI/fonts/ryzom.ttf" type="DynamicFontData" id=10] +[ext_resource path="res://assets/GUI/fonts/ryzom.ttf" type="DynamicFontData" id=4] [sub_resource type="CanvasItemMaterial" id=1] @@ -17,20 +11,20 @@ render_priority = 0 blend_mode = 0 light_mode = 0 -[sub_resource type="DynamicFont" id=4] +[sub_resource type="DynamicFont" id=2] size = 10 use_mipmaps = false use_filter = false -font_data = ExtResource( 10 ) +font_data = ExtResource( 4 ) _sections_unfolded = [ "Font", "Settings" ] -[sub_resource type="DynamicFont" id=5] +[sub_resource type="DynamicFont" id=3] size = 20 use_mipmaps = false use_filter = false -font_data = ExtResource( 10 ) +font_data = ExtResource( 4 ) _sections_unfolded = [ "Extra Spacing", "Font", "Settings" ] [node name="login_menu" type="Control"] @@ -75,25 +69,7 @@ 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"] +[node name="h_box_container" type="HBoxContainer" parent="." index="2"] anchor_left = 0.0 anchor_top = 0.0 @@ -147,9 +123,10 @@ anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 -margin_left = 422.0 +margin_left = 638.0 margin_right = 638.0 margin_bottom = 61.0 +rect_min_size = Vector2( 0, 61 ) rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 1 @@ -158,99 +135,7 @@ size_flags_horizontal = 10 size_flags_vertical = 1 custom_constants/separation = 0 alignment = 2 -_sections_unfolded = [ "Size Flags", "custom_constants" ] - -[node name="sound_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 = true -enabled_focus_mode = 2 -shortcut = null -group = null -texture_normal = ExtResource( 5 ) -texture_pressed = ExtResource( 6 ) -_sections_unfolded = [ "Size Flags", "Textures" ] - -[node name="help_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( 7 ) -_sections_unfolded = [ "Margin", "Size Flags", "Textures" ] - -[node name="settings_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( 8 ) -_sections_unfolded = [ "Size Flags", "Textures" ] - -[node name="quit_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 = false -enabled_focus_mode = 2 -shortcut = null -group = null -texture_normal = ExtResource( 9 ) -_sections_unfolded = [ "Size Flags", "Textures" ] +_sections_unfolded = [ "Rect", "Size Flags", "custom_constants" ] [node name="margin_container" type="MarginContainer" parent="h_box_container/v_box_container" index="1"] @@ -364,7 +249,7 @@ mouse_filter = 0 mouse_default_cursor_shape = 2 size_flags_horizontal = 10 size_flags_vertical = 1 -custom_fonts/font = SubResource( 4 ) +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 ) @@ -473,7 +358,7 @@ mouse_filter = 0 mouse_default_cursor_shape = 2 size_flags_horizontal = 10 size_flags_vertical = 1 -custom_fonts/font = SubResource( 4 ) +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 ) @@ -619,7 +504,7 @@ mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 10 size_flags_vertical = 1 -custom_fonts/font = SubResource( 5 ) +custom_fonts/font = SubResource( 3 ) toggle_mode = false enabled_focus_mode = 2 shortcut = null @@ -631,10 +516,6 @@ _sections_unfolded = [ "Margin", "Material", "Rect", "Size Flags", "Theme", "Vis [connection signal="request_completed" from="HTTPRequest" to="." method="_on_HTTPRequest_request_completed"] -[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/buttons_box/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"] diff --git a/gui_scene/GUI/login/register_menu.tscn b/gui_scene/GUI/login/register_menu.tscn index f81893e..35628fc 100644 --- a/gui_scene/GUI/login/register_menu.tscn +++ b/gui_scene/GUI/login/register_menu.tscn @@ -1,15 +1,9 @@ -[gd_scene load_steps=13 format=2] +[gd_scene load_steps=7 format=2] [ext_resource path="res://assets/GUI/themes/login_theme.theme" type="Theme" id=1] [ext_resource path="res://gui_scene/GUI/login/register_menu.gd" type="Script" id=2] [ext_resource path="res://assets/GUI/images/register-Khanat-background.png" type="Texture" id=3] -[ext_resource path="res://assets/GUI/images/Login-Khanat-background-buttons.png" type="Texture" id=4] -[ext_resource path="res://assets/GUI/images/Login-Khanat-sound-button.png" type="Texture" id=5] -[ext_resource path="res://assets/GUI/images/Login-Khanat-sound-muted-button.png" type="Texture" id=6] -[ext_resource path="res://assets/GUI/images/Login-Khanat-help-button.png" type="Texture" id=7] -[ext_resource path="res://assets/GUI/images/Login-Khanat-settings-button.png" type="Texture" id=8] -[ext_resource path="res://assets/GUI/images/Login-Khanat-quit-button.png" type="Texture" id=9] -[ext_resource path="res://assets/GUI/fonts/ryzom.ttf" type="DynamicFontData" id=10] +[ext_resource path="res://assets/GUI/fonts/ryzom.ttf" type="DynamicFontData" id=4] [sub_resource type="CanvasItemMaterial" id=1] @@ -17,12 +11,12 @@ render_priority = 0 blend_mode = 0 light_mode = 0 -[sub_resource type="DynamicFont" id=5] +[sub_resource type="DynamicFont" id=2] size = 20 use_mipmaps = false use_filter = false -font_data = ExtResource( 10 ) +font_data = ExtResource( 4 ) _sections_unfolded = [ "Extra Spacing", "Font", "Settings" ] [node name="register_menu" type="Control"] @@ -67,25 +61,7 @@ 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"] +[node name="h_box_container" type="HBoxContainer" parent="." index="2"] anchor_left = 0.0 anchor_top = 0.0 @@ -116,124 +92,12 @@ 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"] +[node name="center_container" type="CenterContainer" 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="sound_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 = true -enabled_focus_mode = 2 -shortcut = null -group = null -texture_normal = ExtResource( 5 ) -texture_pressed = ExtResource( 6 ) -_sections_unfolded = [ "Size Flags", "Textures" ] - -[node name="help_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( 7 ) -_sections_unfolded = [ "Margin", "Size Flags", "Textures" ] - -[node name="settings_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( 8 ) -_sections_unfolded = [ "Size Flags", "Textures" ] - -[node name="quit_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 = false -enabled_focus_mode = 2 -shortcut = null -group = null -texture_normal = 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 ) @@ -252,9 +116,9 @@ anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 509.0 -margin_top = 126.0 +margin_top = 159.0 margin_right = 771.0 -margin_bottom = 528.0 +margin_bottom = 561.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 1 @@ -670,7 +534,7 @@ mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 6 size_flags_vertical = 1 -custom_fonts/font = SubResource( 5 ) +custom_fonts/font = SubResource( 2 ) toggle_mode = false enabled_focus_mode = 2 shortcut = null @@ -697,7 +561,7 @@ mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 6 size_flags_vertical = 1 -custom_fonts/font = SubResource( 5 ) +custom_fonts/font = SubResource( 2 ) toggle_mode = false enabled_focus_mode = 2 shortcut = null @@ -709,10 +573,6 @@ _sections_unfolded = [ "Margin", "Material", "Rect", "Size Flags", "Theme", "Vis [connection signal="request_completed" from="HTTPRequest" to="." method="_on_HTTPRequest_request_completed"] -[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/buttons_box/quit_button" to="." method="_on_quit_button_pressed"] - [connection signal="pressed" from="h_box_container/v_box_container/center_container/register_box/license_box/license_button" to="." method="_on_license_button_pressed"] [connection signal="pressed" from="h_box_container/v_box_container/center_container/register_box/h_box_container/cancel_button" to="." method="_on_cancel_button_pressed"] diff --git a/login_scene/login_scene.gd b/login_scene/login_scene.gd index b8f7b3d..42f23e2 100644 --- a/login_scene/login_scene.gd +++ b/login_scene/login_scene.gd @@ -7,7 +7,6 @@ func _ready(): $login_menu.show() self.connect( "character_creation_finished", global, "_on_login_scene_character_creation_finished" ) - global.get_node( "audio_stream_player" ).stream = load( "res://assets/test/musiques/pre-mix_khanat_main_theme_2018-07-23.ogg" ) global.get_node( "audio_stream_player" ).play() @@ -41,6 +40,10 @@ func _on_character_selection_menu_character_selected( slot ): emit_signal( "character_creation_finished" ) +func _on_quit_button_pressed(): + self.get_tree().quit() + + func _on_sound_button_toggled(button_pressed): if button_pressed: global.get_node( "audio_stream_player" ).stop() @@ -70,3 +73,4 @@ func _on_license_menu_return_button_pressed(): $login_menu.hide() $register_menu.show() $license_menu.hide() + diff --git a/login_scene/login_scene.tscn b/login_scene/login_scene.tscn index 5477df0..e5c42ba 100644 --- a/login_scene/login_scene.tscn +++ b/login_scene/login_scene.tscn @@ -1,12 +1,18 @@ -[gd_scene load_steps=6 format=2] +[gd_scene load_steps=12 format=2] [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://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] [ext_resource path="res://gui_scene/GUI/login/license_menu.tscn" type="PackedScene" id=5] +[ext_resource path="res://assets/GUI/images/Login-Khanat-background-buttons.png" type="Texture" id=6] +[ext_resource path="res://assets/GUI/images/Login-Khanat-sound-button.png" type="Texture" id=7] +[ext_resource path="res://assets/GUI/images/Login-Khanat-sound-muted-button.png" type="Texture" id=8] +[ext_resource path="res://assets/GUI/images/Login-Khanat-help-button.png" type="Texture" id=9] +[ext_resource path="res://assets/GUI/images/Login-Khanat-settings-button.png" type="Texture" id=10] +[ext_resource path="res://assets/GUI/images/Login-Khanat-quit-button.png" type="Texture" id=11] -[node name="login_scene" type="Node"] +[node name="login_scene" type="Node" index="0"] script = ExtResource( 1 ) @@ -27,6 +33,133 @@ visible = false visible = false +[node name="buttons_background" type="TextureRect" parent="." index="4"] + +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( 6 ) +stretch_mode = 0 +_sections_unfolded = [ "Size Flags" ] + +[node name="buttons" type="HBoxContainer" parent="." index="5"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 1.0 +anchor_bottom = 0.0 +rect_min_size = Vector2( 0, 61 ) +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 = 2 +_sections_unfolded = [ "Rect", "Size Flags" ] + +[node name="sound_button" type="TextureButton" parent="buttons" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 1052.0 +margin_right = 1106.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 = 1 +size_flags_vertical = 1 +toggle_mode = true +enabled_focus_mode = 2 +shortcut = null +group = null +texture_normal = ExtResource( 7 ) +texture_pressed = ExtResource( 8 ) +_sections_unfolded = [ "Size Flags", "Textures" ] + +[node name="help_button" type="TextureButton" parent="buttons" index="1"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 1110.0 +margin_right = 1164.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 = 1 +size_flags_vertical = 1 +toggle_mode = false +enabled_focus_mode = 2 +shortcut = null +group = null +texture_normal = ExtResource( 9 ) +_sections_unfolded = [ "Size Flags", "Textures" ] + +[node name="settings_button" type="TextureButton" parent="buttons" index="2"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 1168.0 +margin_right = 1222.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 = 1 +size_flags_vertical = 1 +toggle_mode = false +enabled_focus_mode = 2 +shortcut = null +group = null +texture_normal = ExtResource( 10 ) +_sections_unfolded = [ "Size Flags", "Textures" ] + +[node name="quit_button" type="TextureButton" parent="buttons" index="3"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 1226.0 +margin_right = 1280.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 = 1 +size_flags_vertical = 1 +toggle_mode = false +enabled_focus_mode = 2 +shortcut = null +group = null +texture_normal = ExtResource( 11 ) +_sections_unfolded = [ "Size Flags", "Textures" ] + [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"] @@ -35,8 +168,6 @@ visible = false [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="license_button_pressed" from="register_menu" to="." method="_on_register_menu_license_button_pressed"] @@ -45,4 +176,8 @@ visible = false [connection signal="return_button_pressed" from="license_menu" to="." method="_on_license_menu_return_button_pressed"] +[connection signal="toggled" from="buttons/sound_button" to="." method="_on_sound_button_toggled"] + +[connection signal="pressed" from="buttons/quit_button" to="." method="_on_quit_button_pressed"] +