Add Multiplayer Demo
This commit is contained in:
12
lobby_list_item.gd
Normal file
12
lobby_list_item.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
class_name LobbyListItem
|
||||
extends HBoxContainer
|
||||
|
||||
@export var lobby: Dictionary
|
||||
signal on_lobby_join_clicked(lobby_id: int)
|
||||
@onready var label: Label = $Label
|
||||
|
||||
func _ready() -> void:
|
||||
label.text = lobby.get("LobbyName")
|
||||
|
||||
func _on_button_pressed() -> void:
|
||||
on_lobby_join_clicked.emit(lobby.get("LobbyId"))
|
||||
Reference in New Issue
Block a user