回合结算自动存档,新游戏自动创建存档组
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user