[gd_scene load_steps=13 format=3 uid="uid://bemavktwweaog"] [ext_resource type="Shader" path="res://scenes/main.gdshader" id="1_caff6"] [ext_resource type="PackedScene" uid="uid://cg5uqqd4ibdem" path="res://scenes/player.tscn" id="1_nc7b3"] [ext_resource type="Script" path="res://scenes/main.gd" id="1_ts8of"] [ext_resource type="Script" path="res://scenes/Window.gd" id="3_uwnj8"] [ext_resource type="Texture2D" uid="uid://cc7b2q50tp3yn" path="res://assets/preference.png" id="5_c5esr"] [ext_resource type="Script" path="res://scenes/PreferenceServer.gd" id="6_54nnr"] [sub_resource type="BoxShape3D" id="BoxShape3D_5dcgs"] size = Vector3(1000, 1, 1000) [sub_resource type="ShaderMaterial" id="ShaderMaterial_gypq5"] render_priority = 0 shader = ExtResource("1_caff6") [sub_resource type="BoxMesh" id="BoxMesh_fm2j6"] material = SubResource("ShaderMaterial_gypq5") size = Vector3(1000, 1, 1000) [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_0qg6h"] [sub_resource type="Sky" id="Sky_i4xvw"] sky_material = SubResource("ProceduralSkyMaterial_0qg6h") [sub_resource type="Environment" id="Environment_12j7q"] background_mode = 2 background_color = Color(0.803922, 0.776471, 0.733333, 1) sky = SubResource("Sky_i4xvw") ambient_light_color = Color(0.968627, 0.933333, 0.596078, 1) reflected_light_source = 2 [node name="main" type="Node3D"] script = ExtResource("1_ts8of") [node name="ground" type="StaticBody3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0) [node name="CollisionShape3D" type="CollisionShape3D" parent="ground"] shape = SubResource("BoxShape3D_5dcgs") [node name="MeshInstance3D" type="MeshInstance3D" parent="ground"] mesh = SubResource("BoxMesh_fm2j6") [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] transform = Transform3D(-0.866025, 0, -0.5, -0.25, 0.866025, 0.433013, 0.433013, 0.5, -0.75, 0, 50, 0) shadow_enabled = true shadow_opacity = 0.5 [node name="CharacterBody3D" parent="." instance=ExtResource("1_nc7b3")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0) [node name="Players" type="Node3D" parent="."] [node name="WorldEnvironment" type="WorldEnvironment" parent="."] environment = SubResource("Environment_12j7q") [node name="Window" type="Window" parent="."] title = "Connexion" initial_position = 1 size = Vector2i(300, 200) script = ExtResource("3_uwnj8") [node name="VBoxContainer" type="VBoxContainer" parent="Window"] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="HBoxContainer" type="HBoxContainer" parent="Window/VBoxContainer"] layout_mode = 2 [node name="Label" type="Label" parent="Window/VBoxContainer/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 1 text = "Login" horizontal_alignment = 1 vertical_alignment = 1 [node name="Preference" type="Button" parent="Window/VBoxContainer/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 8 icon = ExtResource("5_c5esr") flat = true [node name="Account" type="LineEdit" parent="Window/VBoxContainer"] layout_mode = 2 size_flags_vertical = 3 placeholder_text = "Account" [node name="Password" type="LineEdit" parent="Window/VBoxContainer"] layout_mode = 2 placeholder_text = "Password" [node name="Button" type="Button" parent="Window/VBoxContainer"] layout_mode = 2 disabled = true text = "OK" [node name="StateAlea" type="Panel" parent="."] offset_right = 199.0 offset_bottom = 36.0 size_flags_horizontal = 3 size_flags_vertical = 3 [node name="VBoxContainer" type="VBoxContainer" parent="StateAlea"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="State" type="Label" parent="StateAlea/VBoxContainer"] layout_mode = 2 size_flags_vertical = 3 text = "ALEA: Not connected" horizontal_alignment = 1 vertical_alignment = 1 [node name="PreferenceServer" type="Window" parent="."] title = "Preference Server" initial_position = 2 size = Vector2i(300, 300) visible = false exclusive = true always_on_top = true script = ExtResource("6_54nnr") [node name="VBoxContainer" type="VBoxContainer" parent="PreferenceServer"] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="TabContainer" type="TabContainer" parent="PreferenceServer/VBoxContainer"] layout_mode = 2 size_flags_vertical = 3 [node name="Alea" type="VBoxContainer" parent="PreferenceServer/VBoxContainer/TabContainer"] layout_mode = 2 [node name="Address" type="LineEdit" parent="PreferenceServer/VBoxContainer/TabContainer/Alea"] layout_mode = 2 size_flags_vertical = 3 text = "127.0.0.1" placeholder_text = "Address" [node name="Port" type="LineEdit" parent="PreferenceServer/VBoxContainer/TabContainer/Alea"] layout_mode = 2 size_flags_vertical = 3 text = "33333" placeholder_text = "Address" [node name="XMPP" type="VBoxContainer" parent="PreferenceServer/VBoxContainer/TabContainer"] visible = false layout_mode = 2 [node name="Address" type="LineEdit" parent="PreferenceServer/VBoxContainer/TabContainer/XMPP"] layout_mode = 2 size_flags_vertical = 3 text = "127.0.0.1" placeholder_text = "Address" [node name="Port" type="LineEdit" parent="PreferenceServer/VBoxContainer/TabContainer/XMPP"] layout_mode = 2 size_flags_vertical = 3 text = "5222" placeholder_text = "Address" [node name="Button" type="Button" parent="PreferenceServer/VBoxContainer"] layout_mode = 2 disabled = true text = "Done" [node name="StateXmpp" type="Panel" parent="."] anchors_preset = 1 anchor_left = 1.0 anchor_right = 1.0 offset_left = -199.0 offset_bottom = 36.0 grow_horizontal = 0 size_flags_horizontal = 3 size_flags_vertical = 3 [node name="VBoxContainer" type="VBoxContainer" parent="StateXmpp"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="State" type="Label" parent="StateXmpp/VBoxContainer"] layout_mode = 2 size_flags_vertical = 3 text = "XMPP: Not connected" horizontal_alignment = 1 vertical_alignment = 1 [connection signal="focus_entered" from="Window" to="Window" method="_on_focus_entered"] [connection signal="focus_exited" from="Window" to="Window" method="_on_focus_exited"] [connection signal="mouse_entered" from="Window" to="Window" method="_on_mouse_entered"] [connection signal="mouse_exited" from="Window" to="Window" method="_on_mouse_exited"] [connection signal="pressed" from="Window/VBoxContainer/HBoxContainer/Preference" to="Window" method="_on_preference_pressed"] [connection signal="text_changed" from="Window/VBoxContainer/Account" to="Window" method="_on_text_edit_text_changed"] [connection signal="text_changed" from="Window/VBoxContainer/Password" to="Window" method="_on_password_text_changed"] [connection signal="pressed" from="Window/VBoxContainer/Button" to="Window" method="_on_button_pressed"] [connection signal="close_requested" from="PreferenceServer" to="PreferenceServer" method="_on_close_requested"] [connection signal="text_changed" from="PreferenceServer/VBoxContainer/TabContainer/Alea/Address" to="PreferenceServer" method="_on_text_changed"] [connection signal="text_changed" from="PreferenceServer/VBoxContainer/TabContainer/Alea/Port" to="PreferenceServer" method="_on_text_changed"] [connection signal="text_changed" from="PreferenceServer/VBoxContainer/TabContainer/XMPP/Address" to="PreferenceServer" method="_on_text_changed"] [connection signal="text_changed" from="PreferenceServer/VBoxContainer/TabContainer/XMPP/Port" to="PreferenceServer" method="_on_text_changed"] [connection signal="pressed" from="PreferenceServer/VBoxContainer/Button" to="PreferenceServer" method="_on_button_pressed"]