16 lines
459 B
Plaintext
16 lines
459 B
Plaintext
extends Control
|
|
|
|
@onready var main : Control = $/root/Main
|
|
func _on_start_pressed() -> void:
|
|
main.on_Start_pressed()
|
|
|
|
func _on_disconnect_pressed() -> void:
|
|
if Steamworks.lobby_members.size() > 1:
|
|
Steam.leaveLobby(Steamworks.lobby_id)
|
|
Steamworks.create_lobby()
|
|
main.on_Disconnect_pressed()
|
|
|
|
|
|
func _on_lobby_member_list_item_activated(index: int) -> void:
|
|
print("You clicked on: " + Steam.getFriendPersonaName(Steamworks.member_index_list.get(index)))
|