append Lobby test
This commit is contained in:
@@ -35,7 +35,7 @@ func _ready() -> void:
|
|||||||
multiplayer.connection_failed.connect(_on_connection_failed)
|
multiplayer.connection_failed.connect(_on_connection_failed)
|
||||||
multiplayer.server_disconnected.connect(_on_server_disconnected)
|
multiplayer.server_disconnected.connect(_on_server_disconnected)
|
||||||
|
|
||||||
create_lobby()
|
check_command_line()
|
||||||
|
|
||||||
|
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
|
|||||||
@@ -40,6 +40,10 @@ layout_mode = 2
|
|||||||
theme_override_constants/separation = 10
|
theme_override_constants/separation = 10
|
||||||
alignment = 1
|
alignment = 1
|
||||||
|
|
||||||
|
[node name="Host" type="Button" parent="HBoxContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "HOST"
|
||||||
|
|
||||||
[node name="InviteButton" type="Button" parent="HBoxContainer/VBoxContainer"]
|
[node name="InviteButton" type="Button" parent="HBoxContainer/VBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "INVITE"
|
text = "INVITE"
|
||||||
|
|||||||
@@ -5,6 +5,14 @@ extends Control
|
|||||||
@export var playername_array: Array[String] = []
|
@export var playername_array: Array[String] = []
|
||||||
|
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
$HBoxContainer/VBoxContainer/Host.pressed.connect(host_game)
|
||||||
|
|
||||||
|
|
||||||
|
func host_game():
|
||||||
|
SteamManager.create_lobby()
|
||||||
|
|
||||||
|
|
||||||
func add_new_player(playername: String, total_player_count: int):
|
func add_new_player(playername: String, total_player_count: int):
|
||||||
var new_playername_label = Label.new()
|
var new_playername_label = Label.new()
|
||||||
new_playername_label.text = playername
|
new_playername_label.text = playername
|
||||||
|
|||||||
Reference in New Issue
Block a user