回合结算自动存档,新游戏自动创建存档组

This commit is contained in:
2026-08-13 23:46:58 +08:00
parent b8e42d3104
commit dc11cab7aa
5 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ size_flags_stretch_ratio = 5.0
[node name="ButtonContinue" type="Button" parent="VBoxContainer/HBoxContainer3" unique_id=472091035]
layout_mode = 2
size_flags_horizontal = 3
text = "继续"
text = "下一回合"
[connection signal="button_up" from="VBoxContainer/HBoxContainer/Button_Esc" to="." method="_on_ButtonEsc_ButtonUp"]
[connection signal="button_up" from="VBoxContainer/HBoxContainer3/ButtonContinue" to="." method="_on_button_continue_button_up"]
+2 -2
View File
@@ -8,8 +8,8 @@ func _draw() -> void:
pass
func _on_MainMenu_NewGame_ButtonUp() -> void:
#var pid := SaveSystem.create_profile()
#GameState.request_new_game(pid)
var pid := SaveSystem.create_profile()
GameState.request_new_game(pid)
get_tree().change_scene_to_file("res://src/Core/MainGame.tscn")
pass # Replace with function body.