feat: 完成设置部分和游戏内房主房客身份及IP地址的识别
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user