feat: 完成设置部分和游戏内房主房客身份及IP地址的识别

This commit is contained in:
2026-01-06 08:12:57 +08:00
parent 7d75cd5660
commit 10e6d2d645
16 changed files with 159 additions and 5 deletions
+1
View File
@@ -6,6 +6,7 @@ func _on_create_game_button_pressed() -> void:
if 2 <= player_num and player_num <= 4:
MultiGame.create_server(int(player_num))
$".".hide()
SceneManager.goto_scene("game")
else:
$Warn.show()
+1
View File
@@ -5,3 +5,4 @@ func _on_join_game_button_pressed() -> void:
var ip: String = $JoinGameEdit.text
MultiGame.create_client(ip)
$".".hide()
SceneManager.goto_scene("game")
+4
View File
@@ -6,3 +6,7 @@ func _on_join_game_pressed() -> void:
func _on_start_game_pressed() -> void:
$CreateGameUI.show()
func _on_setting_button_pressed() -> void:
SceneManager.goto_scene("settings")