bcirpggithubmirror/Phase2/Networking/Client/Lobby/WaitingRoom.gd

13 lines
292 B
GDScript3
Raw Normal View History

extends Popup
onready var player_list = $CenterContainer/VBoxContainer/ItemList
func _ready():
player_list.clear()
func refresh_players(players):
player_list.clear()
for player_id in players:
var player = players[player_id]["Player_name"]
player_list.add_item(player, null, false)