Milestone 9 Development

This commit is contained in:
patrick_pluto 2024-08-31 14:58:41 +02:00
parent 5dc3f6f5c7
commit 785bbd8f05
83 changed files with 1089 additions and 4525 deletions

View file

@ -1,6 +1,7 @@
[gd_scene load_steps=2 format=3 uid="uid://csemv5nsltino"]
[gd_scene load_steps=3 format=3 uid="uid://csemv5nsltino"]
[ext_resource type="Script" path="res://scripts/main_menu.gd" id="1_hvi3a"]
[ext_resource type="Texture2D" uid="uid://caj5uyx2ejf7w" path="res://assets/textures/GPLv3_Logo.svg" id="2_243a7"]
[node name="main_menu" type="Control"]
layout_mode = 3
@ -63,5 +64,17 @@ theme_override_font_sizes/font_size = 32
text = "M9 Development"
horizontal_alignment = 2
[node name="Control" type="Control" parent="."]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
grow_vertical = 0
[node name="GpLv3Logo" type="Sprite2D" parent="Control"]
position = Vector2(96, -48)
scale = Vector2(0.25, 0.25)
texture = ExtResource("2_243a7")
[connection signal="pressed" from="main_content/join" to="." method="_on_join_pressed"]
[connection signal="pressed" from="main_content/settings" to="." method="_on_settings_pressed"]

View file

@ -1,8 +1,9 @@
[gd_scene load_steps=4 format=3 uid="uid://buvl1aa0733mn"]
[gd_scene load_steps=5 format=3 uid="uid://buvl1aa0733mn"]
[ext_resource type="Script" path="res://scripts/settings_multioption.gd" id="1_kmx8a"]
[ext_resource type="Script" path="res://scripts/main_settings.gd" id="1_vdm7d"]
[ext_resource type="Script" path="res://scripts/settings_text.gd" id="3_faw6x"]
[ext_resource type="Script" path="res://scripts/settings_slider.gd" id="4_73ura"]
[node name="Settings" type="Control"]
layout_mode = 3
@ -95,7 +96,26 @@ theme_override_font_sizes/font_size = 32
placeholder_text = "Username"
script = ExtResource("3_faw6x")
[node name="sensitivity" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
[node name="Label" type="Label" parent="VBoxContainer/sensitivity"]
layout_mode = 2
theme_override_font_sizes/font_size = 32
text = "Mouse sensitivity"
[node name="HSlider" type="HSlider" parent="VBoxContainer/sensitivity"]
custom_minimum_size = Vector2(400, 50)
layout_mode = 2
max_value = 1.0
step = 0.01
value = 0.5
script = ExtResource("4_73ura")
[connection signal="item_selected" from="VBoxContainer/fps_counter/OptionButton" to="VBoxContainer/fps_counter/OptionButton" method="_on_item_selected"]
[connection signal="text_changed" from="VBoxContainer/ip/LineEdit" to="VBoxContainer/ip/LineEdit" method="_on_text_changed"]
[connection signal="text_changed" from="VBoxContainer/port/LineEdit" to="VBoxContainer/port/LineEdit" method="_on_text_changed"]
[connection signal="text_changed" from="VBoxContainer/username/LineEdit" to="VBoxContainer/username/LineEdit" method="_on_text_changed"]
[connection signal="drag_ended" from="VBoxContainer/sensitivity/HSlider" to="VBoxContainer/sensitivity/HSlider" method="_on_drag_ended"]