More work on pickups, started to implement the UI for data keys, swapped trap selections, FIRST PASS OF MULTIPLAYER CHECKS, title screen swapped.
This commit is contained in:
@@ -2,7 +2,7 @@ extends MultiplayerSpawner
|
||||
|
||||
var host : bool
|
||||
var handle : String
|
||||
|
||||
var room
|
||||
func _ready() -> void:
|
||||
Multiplayer.client_added.connect(_on_client_added)
|
||||
|
||||
@@ -33,8 +33,9 @@ func _on_start_hosting_button_pressed() -> void:
|
||||
#Set fields
|
||||
%ParticipantsText.text = "[color=FFFF00]*%s (HOST)[/color]\n" % handle
|
||||
%"Host Waiting".visible = true
|
||||
%IPLabel.text = Multiplayer.get_local_ip()
|
||||
Multiplayer.become_host()
|
||||
await Multiplayer.become_host()
|
||||
%RoomLabel.text = Multiplayer.room_id
|
||||
|
||||
|
||||
|
||||
func _on_hosting_back_button_pressed() -> void:
|
||||
@@ -62,7 +63,7 @@ func _on_join_button_pressed() -> void:
|
||||
#Check for valid game
|
||||
#If found
|
||||
%Joining.visible = false
|
||||
if await Multiplayer.join_game(handle, %IPEdit.text):
|
||||
if await Multiplayer.join_game(handle, %RoomEdit.text):
|
||||
%"Host Waiting".visible = true
|
||||
%StartButton.visible = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user