update: 更新到godot4.4.1,并大量重构代码
This commit is contained in:
@ -1,9 +1,11 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://c6gxufppw1fu3"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://c6gxufppw1fu3"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://intlbeu8h82r" path="res://Asserts/defaultTheme.tres" id="1_6yfoi"]
|
||||
[ext_resource type="Script" uid="uid://71ril3nh84rw" path="res://Scripts/Controllers/Setting.cs" id="1_xbvb3"]
|
||||
[ext_resource type="PackedScene" uid="uid://pc83bstfltn" path="res://Scenes/Entities/ServerStatus.tscn" id="3_e50hu"]
|
||||
|
||||
[sub_resource type="ButtonGroup" id="ButtonGroup_efio3"]
|
||||
|
||||
[node name="Setting" type="MarginContainer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@ -21,14 +23,21 @@ layout_mode = 2
|
||||
|
||||
[node name="Back" type="Button" parent="BoxContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
text = "Back"
|
||||
text = "KEY_BackHome"
|
||||
|
||||
[node name="MarginContainer7" type="MarginContainer" parent="BoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Button" type="Button" parent="BoxContainer/MarginContainer7"]
|
||||
layout_mode = 2
|
||||
text = "Save"
|
||||
text = "KEY_SaveConfigFile"
|
||||
|
||||
[node name="MarginContainer9" type="MarginContainer" parent="BoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Button" type="Button" parent="BoxContainer/MarginContainer9"]
|
||||
layout_mode = 2
|
||||
text = "KEY_GetConfigDir"
|
||||
|
||||
[node name="MarginContainer2" type="MarginContainer" parent="BoxContainer"]
|
||||
layout_mode = 2
|
||||
@ -38,7 +47,7 @@ layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="BoxContainer/MarginContainer2/Server"]
|
||||
layout_mode = 2
|
||||
text = "Server IP"
|
||||
text = "KEY_ServerIP"
|
||||
|
||||
[node name="LineEdit" type="LineEdit" parent="BoxContainer/MarginContainer2/Server"]
|
||||
layout_mode = 2
|
||||
@ -52,7 +61,7 @@ layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="BoxContainer/MarginContainer3/Name"]
|
||||
layout_mode = 2
|
||||
text = "Name"
|
||||
text = "KEY_UserName"
|
||||
|
||||
[node name="LineEdit" type="LineEdit" parent="BoxContainer/MarginContainer3/Name"]
|
||||
layout_mode = 2
|
||||
@ -86,7 +95,7 @@ layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="BoxContainer/MarginContainer5/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Font Size"
|
||||
text = "KEY_GlobalFontSize"
|
||||
|
||||
[node name="FontSize" type="LineEdit" parent="BoxContainer/MarginContainer5/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
@ -103,6 +112,30 @@ min_value = 10.0
|
||||
max_value = 50.0
|
||||
value = 10.0
|
||||
|
||||
[node name="HBoxContainer2" type="HFlowContainer" parent="BoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="BoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Button" type="Button" parent="BoxContainer/HBoxContainer2/MarginContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
toggle_mode = true
|
||||
button_group = SubResource("ButtonGroup_efio3")
|
||||
text = "简体中文"
|
||||
|
||||
[node name="MarginContainer2" type="MarginContainer" parent="BoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Button2" type="Button" parent="BoxContainer/HBoxContainer2/MarginContainer2"]
|
||||
layout_mode = 2
|
||||
toggle_mode = true
|
||||
button_group = SubResource("ButtonGroup_efio3")
|
||||
text = "English"
|
||||
|
||||
[node name="HBoxContainer" type="HFlowContainer" parent="BoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
@ -161,9 +194,12 @@ text = "Trace Color"
|
||||
|
||||
[connection signal="pressed" from="BoxContainer/MarginContainer/Back" to="." method="OnBack"]
|
||||
[connection signal="pressed" from="BoxContainer/MarginContainer7/Button" to="." method="OnSave"]
|
||||
[connection signal="pressed" from="BoxContainer/MarginContainer9/Button" to="." method="OnGetSettingsFile"]
|
||||
[connection signal="text_changed" from="BoxContainer/MarginContainer2/Server/LineEdit" to="." method="OnServerUrlChanged"]
|
||||
[connection signal="text_changed" from="BoxContainer/MarginContainer3/Name/LineEdit" to="." method="OnNameChanged"]
|
||||
[connection signal="value_changed" from="BoxContainer/MarginContainer6/FontSizeBar" to="." method="OnFontSizeChanged"]
|
||||
[connection signal="toggled" from="BoxContainer/HBoxContainer2/MarginContainer/Button" to="." method="ChangeLangZHCN"]
|
||||
[connection signal="toggled" from="BoxContainer/HBoxContainer2/MarginContainer2/Button2" to="." method="ChangeLangEN"]
|
||||
[connection signal="pressed" from="BoxContainer/HBoxContainer/MarginContainer2/Button2" to="." method="OnClearUserData"]
|
||||
[connection signal="pressed" from="BoxContainer/HFlowContainer/Button" to="." method="OnGetCacheDir"]
|
||||
[connection signal="pressed" from="BoxContainer/HFlowContainer/Button2" to="." method="OnGetConfigDir"]
|
||||
|
Reference in New Issue
Block a user