feat: 优化项目结构,更新引擎版本

This commit is contained in:
2026-04-02 09:15:43 +08:00
parent 2fbc3c80cf
commit 46d5c98b4e
10 changed files with 10 additions and 10 deletions
+165
View File
@@ -0,0 +1,165 @@
[gd_scene format=3 uid="uid://b2rokrdsjgx62"]
[ext_resource type="Script" uid="uid://bnieej0tc51ei" path="res://scripts/main_menu/main_menu.gd" id="1_ekxnf"]
[ext_resource type="FontFile" uid="uid://c2bipf4tpdjj8" path="res://assets/fonts/AlibabaPuHuiTi-3-65-Medium.ttf" id="1_l6cm7"]
[ext_resource type="Script" uid="uid://dxekqwgtgqkg" path="res://scripts/main_menu/create_game_ui.gd" id="3_bqqt6"]
[ext_resource type="Script" uid="uid://cosrsj5i8s26q" path="res://scripts/main_menu/join_game_ui.gd" id="4_wu84c"]
[node name="MainMenu" type="Node2D" unique_id=436810236]
script = ExtResource("1_ekxnf")
[node name="Background" type="ColorRect" parent="." unique_id=1930466338]
offset_left = -24.0
offset_top = -22.0
offset_right = 2631.0
offset_bottom = 1500.0
color = Color(0.7058824, 0.6862745, 0, 1)
[node name="Title" type="Label" parent="." unique_id=1636642337]
offset_left = 796.0
offset_top = 88.0
offset_right = 1375.0
offset_bottom = 207.0
size_flags_horizontal = 4
theme_override_fonts/font = ExtResource("1_l6cm7")
theme_override_font_sizes/font_size = 84
text = "MAINMENU_TITLE"
horizontal_alignment = 1
[node name="StartGame" type="Button" parent="." unique_id=1933485497]
offset_left = 931.0
offset_top = 533.0
offset_right = 1247.0385
offset_bottom = 632.0
theme_override_fonts/font = ExtResource("1_l6cm7")
theme_override_font_sizes/font_size = 36
text = "MAINMENU_CREATEGAME"
[node name="JoinGame" type="Button" parent="." unique_id=1061477634]
offset_left = 932.0
offset_top = 748.0
offset_right = 1248.0385
offset_bottom = 847.0
theme_override_fonts/font = ExtResource("1_l6cm7")
theme_override_font_sizes/font_size = 36
text = "MAINMENU_JOINGAME"
[node name="QuitGame" type="Button" parent="." unique_id=70898198]
offset_left = 932.0
offset_top = 959.0
offset_right = 1248.0386
offset_bottom = 1058.0
theme_override_fonts/font = ExtResource("1_l6cm7")
theme_override_font_sizes/font_size = 36
text = "MAINMENU_QUITGAME"
[node name="CreateGameUI" type="Node2D" parent="." unique_id=462604530]
visible = false
position = Vector2(585, 355)
script = ExtResource("3_bqqt6")
metadata/_edit_group_ = true
[node name="Background" type="ColorRect" parent="CreateGameUI" unique_id=1379723910]
offset_right = 475.0
offset_bottom = 257.0
color = Color(0, 0.7372549, 0, 1)
[node name="CreateGameEdit" type="LineEdit" parent="CreateGameUI" unique_id=1841600293]
offset_left = 65.0
offset_top = 26.0
offset_right = 392.0
offset_bottom = 87.0
[node name="CreateGameButton" type="Button" parent="CreateGameUI" unique_id=1430273388]
offset_left = 128.0
offset_top = 127.0
offset_right = 330.81818
offset_bottom = 224.0
theme_override_fonts/font = ExtResource("1_l6cm7")
theme_override_font_sizes/font_size = 36
text = "MAINMENU_CREATEROOM"
[node name="Label" type="Label" parent="CreateGameUI" unique_id=1494594728]
offset_left = 131.0
offset_top = 88.0
offset_right = 326.0
offset_bottom = 126.0
theme_override_fonts/font = ExtResource("1_l6cm7")
text = "MAINMENU_INPUTPLAYERNUM"
[node name="Warn" type="Node2D" parent="CreateGameUI" unique_id=961920457]
visible = false
[node name="WarnBackground" type="ColorRect" parent="CreateGameUI/Warn" unique_id=2017035604]
offset_left = 86.0
offset_top = 41.0
offset_right = 366.0
offset_bottom = 202.0
color = Color(1, 0.3137255, 1, 1)
[node name="WarnButton" type="Button" parent="CreateGameUI/Warn" unique_id=1006038249]
offset_left = 167.0
offset_top = 125.0
offset_right = 279.0
offset_bottom = 188.0
text = "UI_CONFIRM"
[node name="WarnLabel" type="Label" parent="CreateGameUI/Warn" unique_id=320937650]
offset_left = 126.0
offset_top = 64.0
offset_right = 316.0
offset_bottom = 107.0
theme_override_fonts/font = ExtResource("1_l6cm7")
text = "MAINMENU_PLAYERNUMERROR"
horizontal_alignment = 1
[node name="JoinGameUI" type="Node2D" parent="." unique_id=1134060090]
visible = false
position = Vector2(585, 355)
script = ExtResource("4_wu84c")
metadata/_edit_group_ = true
[node name="Background" type="ColorRect" parent="JoinGameUI" unique_id=1020957244]
offset_right = 475.0
offset_bottom = 257.0
color = Color(0, 0.7372549, 0, 1)
[node name="JoinGameEdit" type="LineEdit" parent="JoinGameUI" unique_id=179057807]
offset_left = 65.0
offset_top = 26.0
offset_right = 392.0
offset_bottom = 87.0
[node name="JoinGameButton" type="Button" parent="JoinGameUI" unique_id=403873003]
offset_left = 128.0
offset_top = 127.0
offset_right = 330.81818
offset_bottom = 224.0
theme_override_fonts/font = ExtResource("1_l6cm7")
theme_override_font_sizes/font_size = 36
text = "MAINMENU_JOINROOM"
[node name="Label" type="Label" parent="JoinGameUI" unique_id=1927653368]
offset_left = 131.0
offset_top = 88.0
offset_right = 326.0
offset_bottom = 126.0
theme_override_fonts/font = ExtResource("1_l6cm7")
text = "MAINMENU_INPUTSERVERIP"
[node name="SettingButton" type="Button" parent="." unique_id=1367541903]
offset_left = 1998.0
offset_top = 130.0
offset_right = 2106.0
offset_bottom = 200.0
theme_override_fonts/font = ExtResource("1_l6cm7")
theme_override_font_sizes/font_size = 30
text = "MAINMENU_SETTINGS"
[connection signal="pressed" from="StartGame" to="." method="_on_start_game_pressed"]
[connection signal="pressed" from="JoinGame" to="." method="_on_join_game_pressed"]
[connection signal="pressed" from="QuitGame" to="." method="_on_quit_game_pressed"]
[connection signal="pressed" from="CreateGameUI/CreateGameButton" to="CreateGameUI" method="_on_create_game_button_pressed"]
[connection signal="pressed" from="CreateGameUI/Warn/WarnButton" to="CreateGameUI" method="_on_warn_button_pressed"]
[connection signal="pressed" from="JoinGameUI/JoinGameButton" to="JoinGameUI" method="_on_join_game_button_pressed"]
[connection signal="pressed" from="SettingButton" to="." method="_on_setting_button_pressed"]
+171
View File
@@ -0,0 +1,171 @@
[gd_scene format=3 uid="uid://bxbycggrcmo3q"]
[ext_resource type="Script" uid="uid://deltvf06kqovt" path="res://scripts/settings/settings.gd" id="1_r6d6q"]
[ext_resource type="FontFile" uid="uid://c2bipf4tpdjj8" path="res://assets/fonts/AlibabaPuHuiTi-3-65-Medium.ttf" id="2_6wm04"]
[node name="Settings" type="Node2D" unique_id=1528483]
script = ExtResource("1_r6d6q")
[node name="Background" type="ColorRect" parent="." unique_id=1213198647]
offset_left = -34.0
offset_top = -27.0
offset_right = 2623.0
offset_bottom = 1500.0
color = Color(0.7058824, 0.6862745, 0, 1)
[node name="DataSetting" type="Node2D" parent="." unique_id=700043200]
metadata/_edit_group_ = true
[node name="DataSetLabel" type="Label" parent="DataSetting" unique_id=1130835123]
offset_left = 45.0
offset_top = 28.0
offset_right = 193.0
offset_bottom = 90.0
theme_override_fonts/font = ExtResource("2_6wm04")
theme_override_font_sizes/font_size = 30
text = "SETTINGS_SETSOURCE"
[node name="LineEdit" type="LineEdit" parent="DataSetting" unique_id=34011310]
offset_left = 217.0
offset_top = 18.0
offset_right = 874.0
offset_bottom = 81.0
theme_override_fonts/font = ExtResource("2_6wm04")
theme_override_font_sizes/font_size = 24
[node name="IPBeginSetting" type="Node2D" parent="." unique_id=1428256194]
position = Vector2(-1, 94)
metadata/_edit_group_ = true
[node name="IPBeginSetLabel" type="Label" parent="IPBeginSetting" unique_id=561890346]
offset_left = 45.0
offset_top = 28.0
offset_right = 193.0
offset_bottom = 90.0
theme_override_fonts/font = ExtResource("2_6wm04")
theme_override_font_sizes/font_size = 30
text = "SETTINGS_IPBEGIN"
[node name="LineEdit" type="LineEdit" parent="IPBeginSetting" unique_id=1179342188]
offset_left = 424.0
offset_top = 18.0
offset_right = 874.0
offset_bottom = 81.0
theme_override_fonts/font = ExtResource("2_6wm04")
theme_override_font_sizes/font_size = 24
[node name="UsernameSetting" type="Node2D" parent="." unique_id=564366013]
position = Vector2(0, 208)
metadata/_edit_group_ = true
[node name="UsernameSetLabel" type="Label" parent="UsernameSetting" unique_id=1569658441]
offset_left = 45.0
offset_top = 28.0
offset_right = 193.0
offset_bottom = 90.0
theme_override_fonts/font = ExtResource("2_6wm04")
theme_override_font_sizes/font_size = 30
text = "SETTINGS_NICKNAME"
[node name="LineEdit" type="LineEdit" parent="UsernameSetting" unique_id=694430941]
offset_left = 424.0
offset_top = 18.0
offset_right = 874.0
offset_bottom = 81.0
theme_override_fonts/font = ExtResource("2_6wm04")
theme_override_font_sizes/font_size = 24
[node name="LoadSource" type="Node2D" parent="." unique_id=230611076]
position = Vector2(44, 314)
metadata/_edit_group_ = true
[node name="LoadSourceLabel" type="Label" parent="LoadSource" unique_id=299353496]
offset_left = 9.0
offset_top = 10.0
offset_right = 132.0
offset_bottom = 40.0
theme_override_fonts/font = ExtResource("2_6wm04")
theme_override_font_sizes/font_size = 30
text = "SETTINGS_LOADDATA"
[node name="ChooseSource" type="OptionButton" parent="LoadSource" unique_id=1045074926]
offset_left = 381.0
offset_top = 5.0
offset_right = 830.0
offset_bottom = 60.0
theme_override_font_sizes/font_size = 25
[node name="ChooseLanguage" type="Node2D" parent="." unique_id=323270128]
position = Vector2(39, 405)
metadata/_edit_group_ = true
[node name="ChooseLanguageLabel" type="Label" parent="ChooseLanguage" unique_id=1719434618]
offset_left = 9.0
offset_top = 10.0
offset_right = 132.0
offset_bottom = 40.0
theme_override_fonts/font = ExtResource("2_6wm04")
theme_override_font_sizes/font_size = 30
text = "SETTINGS_CHOOSELANG"
[node name="ChooseLanguage" type="OptionButton" parent="ChooseLanguage" unique_id=476490830]
offset_left = 381.0
offset_top = 5.0
offset_right = 830.0
offset_bottom = 60.0
theme_override_font_sizes/font_size = 25
item_count = 2
popup/item_0/text = "en"
popup/item_0/id = 0
popup/item_1/text = "zh-cn"
popup/item_1/id = 1
[node name="SaveButton" type="Button" parent="." unique_id=1377249836]
offset_left = 132.0
offset_top = 1315.0
offset_right = 338.0
offset_bottom = 1392.0
theme_override_fonts/font = ExtResource("2_6wm04")
theme_override_font_sizes/font_size = 30
text = "SETTINGS_SAVESETTINGS"
[node name="DownloadButton" type="Button" parent="." unique_id=315804661]
offset_left = 598.0
offset_top = 1316.0
offset_right = 774.0
offset_bottom = 1405.0
theme_override_fonts/font = ExtResource("2_6wm04")
theme_override_font_sizes/font_size = 30
text = "SETTINGS_DOWNLOAD"
[node name="CancelButton" type="Button" parent="." unique_id=135993345]
offset_left = 371.0
offset_top = 1305.0
offset_right = 550.0
offset_bottom = 1394.0
theme_override_fonts/font = ExtResource("2_6wm04")
theme_override_font_sizes/font_size = 30
text = "SETTINGS_BACK"
[node name="LoadButton" type="Button" parent="." unique_id=2015694853]
offset_left = 135.0
offset_top = 1198.0
offset_right = 311.0
offset_bottom = 1287.0
theme_override_fonts/font = ExtResource("2_6wm04")
theme_override_font_sizes/font_size = 30
text = "SETTINGS_LOAD"
[node name="Tips" type="Label" parent="." unique_id=1777076648]
offset_left = 893.0
offset_top = 1318.0
offset_right = 1920.0
offset_bottom = 1388.0
theme_override_fonts/font = ExtResource("2_6wm04")
theme_override_font_sizes/font_size = 50
text = "SETTINGS_TIP_NULL"
[connection signal="pressed" from="SaveButton" to="." method="_on_save_button_pressed"]
[connection signal="pressed" from="DownloadButton" to="." method="_on_download_button_pressed"]
[connection signal="pressed" from="CancelButton" to="." method="_on_cancel_button_pressed"]
[connection signal="pressed" from="LoadButton" to="." method="_on_load_button_pressed"]