Added Lobby + Linked Channel Nodes
This commit is contained in:
@@ -5,6 +5,9 @@ func _on_user_connected(access_token: String, refresh_token: String, expires_in:
|
||||
|
||||
func _on_user_updated() -> void:
|
||||
print_debug("USER UPDATED")
|
||||
await get_tree().create_timer(2).timeout
|
||||
print("oop")
|
||||
$DiscordLobby.create_or_join_lobby("beanis")
|
||||
|
||||
func _on_user_connection_failed(error: String) -> void:
|
||||
push_error("User connection failed! Error: " + error)
|
||||
|
1
project/discord_lobby.gd
Normal file
1
project/discord_lobby.gd
Normal file
@@ -0,0 +1 @@
|
||||
extends DiscordLobby
|
1
project/discord_lobby.gd.uid
Normal file
1
project/discord_lobby.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://del0aaf7txxn6
|
@@ -1,7 +1,8 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://dyc3kseph4el7"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://dyc3kseph4el7"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b3qm246m7pnsx" path="res://assets/Logo_V2.png" id="2_gd222"]
|
||||
[ext_resource type="Script" uid="uid://kmubk5a6i385" path="res://discord_connector.gd" id="3_h2yge"]
|
||||
[ext_resource type="Script" uid="uid://del0aaf7txxn6" path="res://discord_lobby.gd" id="4_1bvp3"]
|
||||
[ext_resource type="Script" uid="uid://46tue7u6crd6" path="res://addons/discord-rpc-gd/nodes/debug.gd" id="6_ujijw"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_h2yge"]
|
||||
@@ -53,6 +54,10 @@ script = ExtResource("3_h2yge")
|
||||
[node name="DiscordActivity" type="DiscordActivity" parent="DiscordConnector"]
|
||||
root_connector = NodePath("..")
|
||||
|
||||
[node name="DiscordLobby" type="DiscordLobby" parent="DiscordConnector"]
|
||||
root_connector = NodePath("..")
|
||||
script = ExtResource("4_1bvp3")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(789, 330.5)
|
||||
scale = Vector2(0.408203, 0.408203)
|
||||
|
Reference in New Issue
Block a user