added custom nodes
623
project/addons/discord-sdk-gd/nodes/Debug.tscn
Normal file
@@ -0,0 +1,623 @@
|
||||
[gd_scene load_steps=68 format=3 uid="uid://c1slhdnlsv2qt"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cq8lwj2matk6x" path="res://addons/discord-sdk-gd/nodes/assets/flow_spritesheet.png" id="4_gvc3o"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_ak1tp"]
|
||||
resource_name = "Debug"
|
||||
script/source = "extends Node
|
||||
|
||||
func _ready():
|
||||
discord_sdk.connect(\"activity_join_request\",_on_activity_join_request)
|
||||
|
||||
func _process(_delta):
|
||||
if(discord_sdk.get_is_discord_working()):
|
||||
$AnimatedSprite2D.play(\"default\")
|
||||
debug_text_update()
|
||||
else:
|
||||
$AnimatedSprite2D.stop()
|
||||
$AnimatedSprite2D.animation = \"gray\"
|
||||
debug_text_update()
|
||||
|
||||
func debug_text_update():
|
||||
$Info.text = \"Application ID : {id}
|
||||
Details: {details}
|
||||
State: {state}
|
||||
|
||||
Large image key: {lkey}
|
||||
Large image text: {ltext}
|
||||
Small image key: {skey}
|
||||
Small image text: {stext}
|
||||
|
||||
Start timestamp: {stimestamp}
|
||||
End timestamp: {etimestamp}
|
||||
|
||||
Party ID: {partyid}
|
||||
Current party size: {cpartysize}
|
||||
Max party size: {mpartysize}
|
||||
Match secret: {msecret}
|
||||
Join secret: {jsecret}
|
||||
Spectate secret: {ssecret}
|
||||
Is party public: {ppublic} (needs to be activated in Discord client settings)
|
||||
|
||||
Is instanced: {instanced}
|
||||
\"
|
||||
$Info.text = $Info.text.replace(\"{ppublic}\",str(discord_sdk.is_public_party)).replace(\"{instanced}\",str(discord_sdk.instanced)).replace(\"{ssecret}\",discord_sdk.spectate_secret).replace(\"{jsecret}\",discord_sdk.join_secret).replace(\"{msecret}\",discord_sdk.match_secret).replace(\"{mpartysize}\",str(discord_sdk.max_party_size)).replace(\"{cpartysize}\",str(discord_sdk.current_party_size)).replace(\"{partyid}\",discord_sdk.party_id).replace(\"{id}\",str(discord_sdk.app_id)).replace(\"{details}\",discord_sdk.details).replace(\"{state}\",discord_sdk.state).replace(\"{lkey}\",discord_sdk.large_image).replace(\"{ltext}\",discord_sdk.large_image_text).replace(\"{skey}\",discord_sdk.small_image).replace(\"{stext}\",discord_sdk.small_image_text).replace(\"{stimestamp}\",str(discord_sdk.start_timestamp)).replace(\"{etimestamp}\",str(discord_sdk.end_timestamp))
|
||||
|
||||
var user_request = {};
|
||||
|
||||
func _on_activity_join_request(user_requesting):
|
||||
print(user_requesting)
|
||||
user_request = user_requesting
|
||||
|
||||
func _on_button_pressed():
|
||||
if(!user_request.is_empty()):
|
||||
discord_sdk.accept_join_request(user_request.id)
|
||||
|
||||
func _on_line_edit_text_submitted(new_text):
|
||||
discord_sdk.send_invite(int(new_text),true,\"this is a test invite sent from godot\")
|
||||
|
||||
func _on_line_edit_2_text_submitted(new_text):
|
||||
discord_sdk.accept_invite(int(new_text))
|
||||
|
||||
func _on_button_2_pressed():
|
||||
print(discord_sdk.get_current_user())
|
||||
|
||||
func _on_check_button_toggled(button_pressed):
|
||||
if(button_pressed):
|
||||
debug_text_update()
|
||||
else:
|
||||
discord_sdk.clear()
|
||||
debug_text_update()
|
||||
|
||||
"
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_85oj4"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(512, 0, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vv4mb"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1024, 0, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kwv3j"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1536, 0, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ij57t"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(2048, 0, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_w2du1"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(0, 512, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4pma1"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(512, 512, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fcoqp"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1024, 512, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tjcb7"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1536, 512, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_oudh8"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(2048, 512, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_csja0"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(0, 1024, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0xbpk"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(512, 1024, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_p84pv"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1024, 1024, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1gjwh"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1536, 1024, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mrm73"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(2048, 1024, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8rkne"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(0, 1536, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_c15qo"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(512, 1536, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_74tpk"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1024, 1536, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_v5nxq"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1536, 1536, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0mf44"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(2048, 1536, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kb0hn"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(0, 2048, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_o22ug"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(512, 2048, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_21q7w"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1024, 2048, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gitfl"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1536, 2048, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8hg1o"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(2048, 2048, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_niuoc"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(0, 2560, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mt5ft"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(512, 2560, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ub7uo"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1024, 2560, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2uxnl"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1536, 2560, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bh4ts"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(2048, 2560, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lcu0i"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(0, 3072, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mmqt1"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(512, 3072, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_orode"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1024, 3072, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ricn8"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1536, 3072, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6ftll"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(2048, 3072, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fm4jy"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(0, 3584, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7qcot"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(512, 3584, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2y47g"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1024, 3584, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gpr0t"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1536, 3584, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_nn332"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(2048, 3584, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jg384"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(0, 4096, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_g0wvw"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(512, 4096, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_e6fmf"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1024, 4096, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n1rtv"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1536, 4096, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_365g3"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(2048, 4096, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_frkrx"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(0, 4608, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_j8adw"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(512, 4608, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_76fh7"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1024, 4608, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gmmrx"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1536, 4608, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_rlh42"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(2048, 4608, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wijf7"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(0, 5120, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2n5hs"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(512, 5120, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yrp6k"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1024, 5120, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_w411h"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1536, 5120, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pe7po"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(2048, 5120, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_sr5kq"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(0, 5632, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kgesr"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(512, 5632, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vfk6x"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1024, 5632, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4d1t3"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1536, 5632, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6bexm"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(2048, 5632, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tadlo"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(0, 6144, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_g2h20"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(512, 6144, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_x351d"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1024, 6144, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0jq3r"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(1536, 6144, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1eeyl"]
|
||||
atlas = ExtResource("4_gvc3o")
|
||||
region = Rect2(0, 0, 512, 512)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_kudgl"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_85oj4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vv4mb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_kwv3j")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ij57t")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_w2du1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_4pma1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_fcoqp")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tjcb7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_oudh8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_csja0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0xbpk")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_p84pv")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1gjwh")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mrm73")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8rkne")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_c15qo")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_74tpk")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_v5nxq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0mf44")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_kb0hn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_o22ug")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_21q7w")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gitfl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8hg1o")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_niuoc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mt5ft")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ub7uo")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2uxnl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bh4ts")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lcu0i")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mmqt1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_orode")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ricn8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6ftll")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_fm4jy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7qcot")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2y47g")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gpr0t")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_nn332")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jg384")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_g0wvw")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_e6fmf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_n1rtv")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_365g3")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_frkrx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_j8adw")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_76fh7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gmmrx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_rlh42")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wijf7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2n5hs")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_yrp6k")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_w411h")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pe7po")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_sr5kq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_kgesr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vfk6x")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_4d1t3")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6bexm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tadlo")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_g2h20")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_x351d")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0jq3r")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 30.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1eeyl")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"gray",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="DebugNodeGroup" type="Node"]
|
||||
editor_description = "This is a Debug Node wich will show (only if the project runs) some usefull info and buttons/input"
|
||||
script = SubResource("GDScript_ak1tp")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(389, 477.375)
|
||||
scale = Vector2(0.14209, 0.14209)
|
||||
sprite_frames = SubResource("SpriteFrames_kudgl")
|
||||
frame_progress = 0.417812
|
||||
|
||||
[node name="Info" type="RichTextLabel" parent="."]
|
||||
offset_left = 7.0
|
||||
offset_top = 6.0
|
||||
offset_right = 424.0
|
||||
offset_bottom = 312.0
|
||||
theme_override_font_sizes/normal_font_size = 14
|
||||
text = "Application ID : {id}
|
||||
Details: {details}
|
||||
State: {state}
|
||||
|
||||
Large image key: {lkey}
|
||||
Large image text: {ltext}
|
||||
Small image key: {skey}
|
||||
Small image text: {stext}
|
||||
|
||||
Start timestamp: {stimestamp}
|
||||
End timestamp: {etimestamp}
|
||||
|
||||
Party ID: {partyid}
|
||||
Current party size: {cpartysize}
|
||||
Max party size: {mpartysize}
|
||||
Match secret: {msecret}
|
||||
Join secret: {jsecret}
|
||||
Spectate secret: {ssecret}
|
||||
Is party public: {ppublic} (needs to be activated in Discord client settings)
|
||||
|
||||
Is instanced: {instanced}
|
||||
"
|
||||
fit_content = true
|
||||
|
||||
[node name="PrintCurrentUserOnConsole" type="Button" parent="."]
|
||||
anchors_preset = 4
|
||||
anchor_top = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = 7.0
|
||||
offset_top = 141.375
|
||||
offset_right = 240.0
|
||||
offset_bottom = 174.375
|
||||
grow_vertical = 2
|
||||
text = "Print current user on console"
|
||||
|
||||
[node name="AcceptInviteRequest" type="Button" parent="."]
|
||||
anchors_preset = 4
|
||||
anchor_top = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = 7.0
|
||||
offset_top = 178.875
|
||||
offset_right = 149.0
|
||||
offset_bottom = 209.875
|
||||
grow_vertical = 2
|
||||
text = "ACCEPT REQUEST"
|
||||
|
||||
[node name="InviteWithUserID" type="LineEdit" parent="."]
|
||||
anchors_preset = 4
|
||||
anchor_top = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = 6.0
|
||||
offset_top = 215.375
|
||||
offset_right = 205.0
|
||||
offset_bottom = 246.375
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 0
|
||||
placeholder_text = "Invite with user_id here"
|
||||
|
||||
[node name="AcceptWithUserID" type="LineEdit" parent="."]
|
||||
anchors_preset = 4
|
||||
anchor_top = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = 6.0
|
||||
offset_top = 250.875
|
||||
offset_right = 255.0
|
||||
offset_bottom = 281.875
|
||||
grow_vertical = 2
|
||||
placeholder_text = "Accept Invite with user_id here"
|
||||
|
||||
[connection signal="pressed" from="PrintCurrentUserOnConsole" to="." method="_on_button_2_pressed"]
|
||||
[connection signal="pressed" from="AcceptInviteRequest" to="." method="_on_button_pressed"]
|
||||
[connection signal="text_submitted" from="InviteWithUserID" to="." method="_on_line_edit_text_submitted"]
|
||||
[connection signal="text_submitted" from="AcceptWithUserID" to="." method="_on_line_edit_2_text_submitted"]
|
@@ -0,0 +1,7 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://dkbtuqbtdlqnk"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/discord-sdk-gd/nodes/core_updater.gd" id="1_8fjwg"]
|
||||
|
||||
[node name="DiscordSDKLoader" type="Node"]
|
||||
editor_description = "This always needs to run in the background if you want to comunicate with the discord client."
|
||||
script = ExtResource("1_8fjwg")
|
Before Width: | Height: | Size: 926 B After Width: | Height: | Size: 926 B |
@@ -3,15 +3,15 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dnfq6kug4x6o2"
|
||||
path="res://.godot/imported/Checked.svg-f72e721c76a88d84ce4de3fd19f840d5.ctex"
|
||||
path="res://.godot/imported/Checked.svg-152467b95b56fa0b9944b5cc25700916.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/Checked.svg"
|
||||
dest_files=["res://.godot/imported/Checked.svg-f72e721c76a88d84ce4de3fd19f840d5.ctex"]
|
||||
source_file="res://addons/discord-sdk-gd/nodes/assets/Checked.svg"
|
||||
dest_files=["res://.godot/imported/Checked.svg-152467b95b56fa0b9944b5cc25700916.ctex"]
|
||||
|
||||
[params]
|
||||
|
10
project/addons/discord-sdk-gd/nodes/assets/Debug.svg
Normal file
@@ -0,0 +1,10 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_110_26)">
|
||||
<path d="M13.3334 5.33333H11.4601C11.1594 4.81182 10.7446 4.36512 10.2467 4.02667L11.3334 2.94L10.3934 2L8.94675 3.44667C8.64008 3.37333 8.32675 3.33333 8.00008 3.33333C7.67341 3.33333 7.36008 3.37333 7.06008 3.44667L5.60675 2L4.66675 2.94L5.74675 4.02667C5.25341 4.36667 4.84008 4.81333 4.54008 5.33333H2.66675V6.66667H4.06008C4.02675 6.88667 4.00008 7.10667 4.00008 7.33333V8H2.66675V9.33333H4.00008V10C4.00008 10.2267 4.02675 10.4467 4.06008 10.6667H2.66675V12H4.54008C5.23341 13.1933 6.52008 14 8.00008 14C9.48008 14 10.7667 13.1933 11.4601 12H13.3334V10.6667H11.9401C11.9734 10.4467 12.0001 10.2267 12.0001 10V9.33333H13.3334V8H12.0001V7.33333C12.0001 7.10667 11.9734 6.88667 11.9401 6.66667H13.3334V5.33333ZM9.33341 10.6667H6.66675V9.33333H9.33341V10.6667ZM9.33341 8H6.66675V6.66667H9.33341V8Z" fill="#5865F2"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_110_26">
|
||||
<rect width="16" height="16" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.0 KiB |
@@ -2,16 +2,16 @@
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d1dntlgjiapde"
|
||||
path="res://.godot/imported/Debug.svg-dbd0299514a2ed7480404c509868c103.ctex"
|
||||
uid="uid://ufh1hha1ehui"
|
||||
path="res://.godot/imported/Debug.svg-c87ff9d4b4b0e718ec457560f6c420dc.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/Debug.svg"
|
||||
dest_files=["res://.godot/imported/Debug.svg-dbd0299514a2ed7480404c509868c103.ctex"]
|
||||
source_file="res://addons/discord-sdk-gd/nodes/assets/Debug.svg"
|
||||
dest_files=["res://.godot/imported/Debug.svg-c87ff9d4b4b0e718ec457560f6c420dc.ctex"]
|
||||
|
||||
[params]
|
||||
|
4
project/addons/discord-sdk-gd/nodes/assets/Group_1.svg
Normal file
@@ -0,0 +1,4 @@
|
||||
<svg width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.35776 4.35954C0.15745 6.80425 -0.158183 9.20437 0.0679444 11.5772C1.29133 12.4811 2.66066 13.1685 4.11639 13.6096C4.44417 13.1687 4.73422 12.701 4.98346 12.2115C4.51007 12.0346 4.05317 11.8165 3.61804 11.5596C3.73256 11.4765 3.84456 11.3909 3.95279 11.3079C5.21891 11.9033 6.60083 12.212 7.99997 12.212C9.39912 12.212 10.781 11.9033 12.0472 11.3079C12.1566 11.3972 12.2686 11.4828 12.3819 11.5596C11.9459 11.8169 11.4882 12.0355 11.014 12.2127C11.2629 12.7021 11.553 13.1694 11.881 13.6096C13.338 13.1703 14.7084 12.4832 15.932 11.5785C16.1887 8.91658 15.71 6.52885 14.6441 4.35954H1.35776ZM3.90119 8.15294C3.90119 9.03386 4.55307 9.74992 5.34212 9.74992C6.14627 9.74992 6.76795 9.03386 6.78179 8.15294C6.79563 7.27203 6.14879 6.54967 5.3396 6.54967C4.53042 6.54967 3.90119 7.27203 3.90119 8.15294ZM9.21815 8.15294C9.21815 9.03386 9.86752 9.74992 10.6578 9.74992C11.462 9.74992 12.0824 9.03386 12.0962 8.15294C12.1101 7.27203 11.4683 6.54967 10.6578 6.54967C9.84738 6.54967 9.21815 7.27203 9.21815 8.15294Z" fill="#5865F2"/>
|
||||
<path d="M4.31337 0.711094C4.97409 0.378693 5.67883 0.1583 6.39124 0C6.67624 0.478046 6.93634 0.995727 7.16285 1.50181C7.43169 1.45692 7.70147 1.4403 7.97234 1.43708V1.43666C7.97402 1.43666 7.97578 1.43708 7.97746 1.43708C7.97907 1.43708 7.98082 1.43666 7.98271 1.43666V1.43708C8.25308 1.4403 8.5231 1.45692 8.79187 1.50181C9.01852 0.995727 9.27877 0.478046 9.56334 0C10.2761 0.1583 10.9807 0.378693 11.6415 0.711094C11.6264 1.29423 11.5887 1.85296 11.5124 2.42051C11.7685 2.58482 12.0385 2.72584 12.2781 2.91819C12.522 3.10544 12.7702 3.28458 12.9907 3.50357C13.4312 3.21235 13.8976 2.93868 14.3777 2.6971C14.8955 3.25402 15.3798 3.85511 15.7752 4.52774C15.5165 4.9441 15.1789 5.43899 14.8223 5.88763H1.13254C0.823832 5.50544 0.490472 5.01534 0.179688 4.52774C0.575141 3.85511 1.05924 3.25402 1.57697 2.6971C2.05728 2.93868 2.52351 3.21235 2.96401 3.50357C3.18451 3.28458 3.43322 3.10544 3.67673 2.91819C3.9164 2.72584 4.18607 2.58482 4.44266 2.42051C4.3662 1.85296 4.32848 1.29423 4.31337 0.711094Z" fill="#5865F2"/>
|
||||
</svg>
|
After Width: | Height: | Size: 2.1 KiB |
@@ -2,16 +2,16 @@
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://2no2ced378ds"
|
||||
path="res://.godot/imported/Core Updater.svg-75aabb825d7cf085efdd2bf5760ba312.ctex"
|
||||
uid="uid://c70jidlptani4"
|
||||
path="res://.godot/imported/Group_1.svg-8cf36058739c5884a9a47a4dfa7d001a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/Core Updater.svg"
|
||||
dest_files=["res://.godot/imported/Core Updater.svg-75aabb825d7cf085efdd2bf5760ba312.ctex"]
|
||||
source_file="res://addons/discord-sdk-gd/nodes/assets/Group_1.svg"
|
||||
dest_files=["res://.godot/imported/Group_1.svg-8cf36058739c5884a9a47a4dfa7d001a.ctex"]
|
||||
|
||||
[params]
|
||||
|
Before Width: | Height: | Size: 942 B After Width: | Height: | Size: 942 B |
@@ -3,15 +3,15 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://compmm3kviqqe"
|
||||
path="res://.godot/imported/Unchecked.svg-766fb74b3cafb9a423726f8edb81f7ad.ctex"
|
||||
path="res://.godot/imported/Unchecked.svg-91cff67e13e7a1508fbc6a949f5f5f52.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/Unchecked.svg"
|
||||
dest_files=["res://.godot/imported/Unchecked.svg-766fb74b3cafb9a423726f8edb81f7ad.ctex"]
|
||||
source_file="res://addons/discord-sdk-gd/nodes/assets/Unchecked.svg"
|
||||
dest_files=["res://.godot/imported/Unchecked.svg-91cff67e13e7a1508fbc6a949f5f5f52.ctex"]
|
||||
|
||||
[params]
|
||||
|
Before Width: | Height: | Size: 272 KiB After Width: | Height: | Size: 272 KiB |
@@ -3,15 +3,15 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cq8lwj2matk6x"
|
||||
path="res://.godot/imported/flow_spritesheet.png-18c39eee2431173a526b9028a5ff4994.ctex"
|
||||
path="res://.godot/imported/flow_spritesheet.png-4637bb4103771b4d4bbc78a0bb858512.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/flow_spritesheet.png"
|
||||
dest_files=["res://.godot/imported/flow_spritesheet.png-18c39eee2431173a526b9028a5ff4994.ctex"]
|
||||
source_file="res://addons/discord-sdk-gd/nodes/assets/flow_spritesheet.png"
|
||||
dest_files=["res://.godot/imported/flow_spritesheet.png-4637bb4103771b4d4bbc78a0bb858512.ctex"]
|
||||
|
||||
[params]
|
||||
|
5
project/addons/discord-sdk-gd/nodes/core_updater.gd
Normal file
@@ -0,0 +1,5 @@
|
||||
## This always needs to run in the background if you want to comunicate with the discord client.
|
||||
extends Node
|
||||
|
||||
func _process(delta) -> void:
|
||||
discord_sdk.coreupdate()
|
7
project/addons/discord-sdk-gd/nodes/debug.gd
Normal file
@@ -0,0 +1,7 @@
|
||||
## This is a Debug Node wich will show (only if the project runs) some usefull info and buttons/input
|
||||
extends Node
|
||||
|
||||
const DebugNodeGroup = preload("res://addons/discord-sdk-gd/nodes/Debug.tscn")
|
||||
|
||||
func _ready():
|
||||
add_child(DebugNodeGroup.instantiate())
|
@@ -1,13 +1,27 @@
|
||||
@tool
|
||||
extends EditorPlugin
|
||||
|
||||
const ExportPlugin = preload("export.gd")
|
||||
const DiscordSDKLoader = preload("res://addons/discord-sdk-gd/nodes/core_updater.gd")
|
||||
const DiscordSDKLoader_icon = preload("res://addons/discord-sdk-gd/nodes/assets/Group_1.svg")
|
||||
var loaded_DiscordSDKLoader = DiscordSDKLoader.new()
|
||||
|
||||
const DiscordSDKDebug = preload("res://addons/discord-sdk-gd/nodes/debug.gd")
|
||||
const DiscordSDKDebug_icon = preload("res://addons/discord-sdk-gd/nodes/assets/Debug.svg")
|
||||
var loaded_DiscordSDKDebug = DiscordSDKDebug.new()
|
||||
|
||||
|
||||
const ExportPlugin = preload("res://addons/discord-sdk-gd/export.gd")
|
||||
var loaded_exportplugin = ExportPlugin.new()
|
||||
|
||||
func _enter_tree():
|
||||
add_autoload_singleton("updater_discordsdk", "res://addons/discord-sdk-gd/sdk_utility.gd")
|
||||
add_export_plugin(loaded_exportplugin)
|
||||
|
||||
func _enter_tree():
|
||||
add_custom_type("DiscordSDKLoader","Node",DiscordSDKLoader,DiscordSDKLoader_icon)
|
||||
add_custom_type("DiscordSDKDebug","Node",DiscordSDKDebug,DiscordSDKDebug_icon)
|
||||
add_autoload_singleton("DiscordSDKLoader", "res://addons/discord-sdk-gd/nodes/DiscordSDKLoader.tscn")
|
||||
add_export_plugin(loaded_exportplugin)
|
||||
|
||||
func disable_plugin():
|
||||
remove_autoload_singleton("updater_discordsdk")
|
||||
remove_custom_type("DiscordSDKLoader")
|
||||
remove_custom_type("DiscordSDKDebug")
|
||||
remove_autoload_singleton("DiscordSDKLoader")
|
||||
remove_export_plugin(loaded_exportplugin)
|
||||
|
@@ -1,4 +0,0 @@
|
||||
extends Node
|
||||
|
||||
func _process(delta) -> void:
|
||||
discord_sdk.coreupdate()
|
Before Width: | Height: | Size: 6.4 KiB |
@@ -1,34 +0,0 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cm3gqnd84wbvu"
|
||||
path="res://.godot/imported/Core Updater.png-3bb461d6b6e9b42b926c572ac9a4a10f.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/Core Updater.png"
|
||||
dest_files=["res://.godot/imported/Core Updater.png-3bb461d6b6e9b42b926c572ac9a4a10f.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
@@ -1,6 +0,0 @@
|
||||
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g id="Discord Other">
|
||||
<path id="Vector" d="M389.77 149.331V469.331H335.043V149.331L273.052 212.264L234.665 173.064L362.534 42.664L490.666 173.064L452.278 213.064L389.77 149.331Z" fill="#5865F2"/>
|
||||
<path id="Vector_2" d="M122.228 362.666V42.664H176.955L176.955 362.666L238.945 299.731L277.332 338.931L149.462 469.331L21.332 338.931L59.719 298.931L122.228 362.666Z" fill="#5865F2"/>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 493 B |
Before Width: | Height: | Size: 5.2 KiB |
@@ -1,34 +0,0 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b5dn3rnp5eqqp"
|
||||
path="res://.godot/imported/Debug.png-81b23c4a8a55e89d458626f08de3d2fb.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/Debug.png"
|
||||
dest_files=["res://.godot/imported/Debug.png-81b23c4a8a55e89d458626f08de3d2fb.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
@@ -1,5 +0,0 @@
|
||||
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g id="Discord Other">
|
||||
<path id="Vector" d="M426.667 170.667H366.72C357.098 153.978 343.824 139.684 327.893 128.853L362.667 94.08L332.587 64L286.293 110.293C276.48 107.947 266.453 106.667 256 106.667C245.547 106.667 235.52 107.947 225.92 110.293L179.413 64L149.333 94.08L183.893 128.853C168.107 139.733 154.88 154.027 145.28 170.667H85.3333V213.333H129.92C128.853 220.373 128 227.413 128 234.667V256H85.3333V298.667H128V320C128 327.253 128.853 334.293 129.92 341.333H85.3333V384H145.28C167.467 422.187 208.64 448 256 448C303.36 448 344.533 422.187 366.72 384H426.667V341.333H382.08C383.147 334.293 384 327.253 384 320V298.667H426.667V256H384V234.667C384 227.413 383.147 220.373 382.08 213.333H426.667V170.667ZM298.667 341.333H213.333V298.667H298.667V341.333ZM298.667 256H213.333V213.333H298.667V256Z" fill="#5865F2"/>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 930 B |
@@ -1,20 +1,11 @@
|
||||
extends Node
|
||||
|
||||
var invite_pfp
|
||||
|
||||
func _ready():
|
||||
set_activity()
|
||||
discord_sdk.connect("activity_join_request",_on_activity_join_request)
|
||||
discord_sdk.connect("activity_join",_on_activity_join)
|
||||
discord_sdk.connect("activity_spectate",_on_activity_spectate)
|
||||
|
||||
func _process(_delta):
|
||||
if(discord_sdk.get_is_discord_working()):
|
||||
$AnimatedSprite2D.play("default")
|
||||
else:
|
||||
$AnimatedSprite2D.stop()
|
||||
$AnimatedSprite2D.animation = "gray"
|
||||
|
||||
func set_activity():
|
||||
discord_sdk.app_id = 1099618430065324082
|
||||
discord_sdk.details = "A demo activity by vaporvee#1231"
|
||||
@@ -42,32 +33,6 @@ func set_activity():
|
||||
discord_sdk.register_command("C:\\Users\\yanni\\Desktop\\demo\\discord_sdk.exe")
|
||||
#discord_sdk.register_steam(1389990)
|
||||
discord_sdk.refresh()
|
||||
debug_text_update()
|
||||
|
||||
func debug_text_update():
|
||||
$Info.text = "Application ID : {id}
|
||||
Details: {details}
|
||||
State: {state}
|
||||
|
||||
Large image key: {lkey}
|
||||
Large image text: {ltext}
|
||||
Small image key: {skey}
|
||||
Small image text: {stext}
|
||||
|
||||
Start timestamp: {stimestamp}
|
||||
End timestamp: {etimestamp}
|
||||
|
||||
Party ID: {partyid}
|
||||
Current party size: {cpartysize}
|
||||
Max party size: {mpartysize}
|
||||
Match secret: {msecret}
|
||||
Join secret: {jsecret}
|
||||
Spectate secret: {ssecret}
|
||||
Is party public: {ppublic} (needs to be activated in Discord client settings)
|
||||
|
||||
Is instanced: {instanced}
|
||||
"
|
||||
$Info.text = $Info.text.replace("{ppublic}",str(discord_sdk.is_public_party)).replace("{instanced}",str(discord_sdk.instanced)).replace("{ssecret}",discord_sdk.spectate_secret).replace("{jsecret}",discord_sdk.join_secret).replace("{msecret}",discord_sdk.match_secret).replace("{mpartysize}",str(discord_sdk.max_party_size)).replace("{cpartysize}",str(discord_sdk.current_party_size)).replace("{partyid}",discord_sdk.party_id).replace("{id}",str(discord_sdk.app_id)).replace("{details}",discord_sdk.details).replace("{state}",discord_sdk.state).replace("{lkey}",discord_sdk.large_image).replace("{ltext}",discord_sdk.large_image_text).replace("{skey}",discord_sdk.small_image).replace("{stext}",discord_sdk.small_image_text).replace("{stimestamp}",str(discord_sdk.start_timestamp)).replace("{etimestamp}",str(discord_sdk.end_timestamp))
|
||||
|
||||
var user_request = {};
|
||||
|
||||
@@ -83,29 +48,12 @@ func _on_activity_join(secret):
|
||||
discord_sdk.join_secret = secret
|
||||
discord_sdk.spectate_secret = secret.replace("j_","s_")
|
||||
discord_sdk.refresh()
|
||||
$Info.text = $Info.text.replace("{ssecret}",discord_sdk.spectate_secret).replace("{jsecret}",discord_sdk.join_secret).replace("{msecret}",discord_sdk.match_secret).replace("{mpartysize}",str(discord_sdk.max_party_size)).replace("{cpartysize}",str(discord_sdk.current_party_size)).replace("{partyid}",discord_sdk.party_id).replace("{discordinfo}",str(discord_sdk.get_is_discord_working())).replace("{id}",str(discord_sdk.app_id)).replace("{details}",discord_sdk.details).replace("{state}",discord_sdk.state).replace("{lkey}",discord_sdk.large_image).replace("{ltext}",discord_sdk.large_image_text).replace("{skey}",discord_sdk.small_image).replace("{stext}",discord_sdk.small_image_text).replace("{stimestamp}",str(discord_sdk.start_timestamp)).replace("{etimestamp}",str(discord_sdk.end_timestamp))
|
||||
debug_text_update()
|
||||
|
||||
func _on_activity_spectate(secret):
|
||||
print(secret)
|
||||
|
||||
func _on_check_button_toggled(button_pressed):
|
||||
|
||||
func _on_toggle_sdk_toggled(button_pressed):
|
||||
if(button_pressed):
|
||||
set_activity()
|
||||
debug_text_update()
|
||||
else:
|
||||
discord_sdk.clear()
|
||||
debug_text_update()
|
||||
|
||||
func _on_button_pressed():
|
||||
if(!user_request.is_empty()):
|
||||
discord_sdk.accept_join_request(user_request.id)
|
||||
|
||||
func _on_line_edit_text_submitted(new_text):
|
||||
discord_sdk.send_invite(int(new_text),true,"this is a test invite sent from godot")
|
||||
|
||||
func _on_line_edit_2_text_submitted(new_text):
|
||||
discord_sdk.accept_invite(int(new_text))
|
||||
|
||||
func _on_button_2_pressed():
|
||||
print(discord_sdk.get_current_user())
|
||||
|
@@ -1,473 +1,12 @@
|
||||
[gd_scene load_steps=72 format=3 uid="uid://dmx2xuigcpvt4"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dyc3kseph4el7"]
|
||||
|
||||
[ext_resource type="Script" path="res://main.gd" id="1_kl8ri"]
|
||||
[ext_resource type="Texture2D" uid="uid://b3qm246m7pnsx" path="res://assets/Logo_V2.png" id="2_gd222"]
|
||||
[ext_resource type="Texture2D" uid="uid://dnfq6kug4x6o2" path="res://assets/Checked.svg" id="3_ny5eu"]
|
||||
[ext_resource type="Texture2D" uid="uid://compmm3kviqqe" path="res://assets/Unchecked.svg" id="4_xydmq"]
|
||||
[ext_resource type="Texture2D" uid="uid://cq8lwj2matk6x" path="res://assets/flow_spritesheet.png" id="5_iiu0s"]
|
||||
[ext_resource type="Texture2D" uid="uid://dnfq6kug4x6o2" path="res://addons/discord-sdk-gd/nodes/assets/Checked.svg" id="3_wajuo"]
|
||||
[ext_resource type="Texture2D" uid="uid://compmm3kviqqe" path="res://addons/discord-sdk-gd/nodes/assets/Unchecked.svg" id="4_8hvtu"]
|
||||
[ext_resource type="Script" path="res://addons/discord-sdk-gd/nodes/debug.gd" id="6_ujijw"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_1w3f4"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_85oj4"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(512, 0, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vv4mb"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1024, 0, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kwv3j"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1536, 0, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ij57t"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(2048, 0, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_w2du1"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(0, 512, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4pma1"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(512, 512, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fcoqp"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1024, 512, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tjcb7"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1536, 512, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_oudh8"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(2048, 512, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_csja0"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(0, 1024, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0xbpk"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(512, 1024, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_p84pv"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1024, 1024, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1gjwh"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1536, 1024, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mrm73"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(2048, 1024, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8rkne"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(0, 1536, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_c15qo"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(512, 1536, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_74tpk"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1024, 1536, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_v5nxq"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1536, 1536, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0mf44"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(2048, 1536, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kb0hn"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(0, 2048, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_o22ug"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(512, 2048, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_21q7w"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1024, 2048, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gitfl"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1536, 2048, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8hg1o"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(2048, 2048, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_niuoc"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(0, 2560, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mt5ft"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(512, 2560, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ub7uo"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1024, 2560, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2uxnl"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1536, 2560, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bh4ts"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(2048, 2560, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lcu0i"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(0, 3072, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mmqt1"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(512, 3072, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_orode"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1024, 3072, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ricn8"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1536, 3072, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6ftll"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(2048, 3072, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fm4jy"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(0, 3584, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7qcot"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(512, 3584, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2y47g"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1024, 3584, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gpr0t"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1536, 3584, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_nn332"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(2048, 3584, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jg384"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(0, 4096, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_g0wvw"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(512, 4096, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_e6fmf"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1024, 4096, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n1rtv"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1536, 4096, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_365g3"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(2048, 4096, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_frkrx"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(0, 4608, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_j8adw"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(512, 4608, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_76fh7"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1024, 4608, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gmmrx"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1536, 4608, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_rlh42"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(2048, 4608, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wijf7"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(0, 5120, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2n5hs"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(512, 5120, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yrp6k"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1024, 5120, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_w411h"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1536, 5120, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pe7po"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(2048, 5120, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_sr5kq"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(0, 5632, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kgesr"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(512, 5632, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vfk6x"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1024, 5632, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4d1t3"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1536, 5632, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6bexm"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(2048, 5632, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tadlo"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(0, 6144, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_g2h20"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(512, 6144, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_x351d"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1024, 6144, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0jq3r"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(1536, 6144, 512, 512)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1eeyl"]
|
||||
atlas = ExtResource("5_iiu0s")
|
||||
region = Rect2(0, 0, 512, 512)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_kudgl"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_85oj4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vv4mb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_kwv3j")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ij57t")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_w2du1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_4pma1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_fcoqp")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tjcb7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_oudh8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_csja0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0xbpk")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_p84pv")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1gjwh")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mrm73")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8rkne")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_c15qo")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_74tpk")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_v5nxq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0mf44")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_kb0hn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_o22ug")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_21q7w")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gitfl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8hg1o")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_niuoc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mt5ft")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ub7uo")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2uxnl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bh4ts")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lcu0i")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mmqt1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_orode")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ricn8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6ftll")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_fm4jy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7qcot")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2y47g")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gpr0t")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_nn332")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jg384")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_g0wvw")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_e6fmf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_n1rtv")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_365g3")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_frkrx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_j8adw")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_76fh7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gmmrx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_rlh42")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wijf7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2n5hs")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_yrp6k")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_w411h")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pe7po")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_sr5kq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_kgesr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vfk6x")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_4d1t3")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6bexm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tadlo")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_g2h20")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_x351d")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0jq3r")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 30.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1eeyl")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"gray",
|
||||
"speed": 5.0
|
||||
}]
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_phc3u"]
|
||||
|
||||
[node name="Node" type="Node"]
|
||||
script = ExtResource("1_kl8ri")
|
||||
@@ -505,110 +44,22 @@ size_flags_vertical = 4
|
||||
bbcode_enabled = true
|
||||
text = "[center][font s=60]DiscordSDK Test"
|
||||
|
||||
[node name="Info" type="RichTextLabel" parent="."]
|
||||
offset_left = 7.0
|
||||
offset_top = 6.0
|
||||
offset_right = 424.0
|
||||
offset_bottom = 312.0
|
||||
text = "Application ID : {id}
|
||||
Details: {details}
|
||||
State: {state}
|
||||
[node name="DiscordSDKDebug" type="Node" parent="."]
|
||||
script = ExtResource("6_ujijw")
|
||||
|
||||
Large image key: {lkey}
|
||||
Large image text: {ltext}
|
||||
Small image key: {skey}
|
||||
Small image text: {stext}
|
||||
|
||||
Start timestamp: {stimestamp}
|
||||
End timestamp: {etimestamp}
|
||||
|
||||
Party ID: {partyid}
|
||||
Current party size: {cpartysize}
|
||||
Max party size: {mpartysize}
|
||||
Match secret: {msecret}
|
||||
Join secret: {jsecret}
|
||||
Spectate secret: {ssecret}
|
||||
Is party public: {ppublic} (needs to be activated in Discord client settings)
|
||||
|
||||
Is instanced: {instanced}
|
||||
"
|
||||
|
||||
[node name="CheckButton" type="CheckButton" parent="."]
|
||||
anchors_preset = 1
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
offset_left = -128.0
|
||||
offset_top = 26.0
|
||||
offset_right = 718.0
|
||||
offset_bottom = 534.0
|
||||
grow_horizontal = 0
|
||||
scale = Vector2(0.05, 0.05)
|
||||
theme_override_icons/checked = ExtResource("3_ny5eu")
|
||||
theme_override_icons/unchecked = ExtResource("4_xydmq")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_1w3f4")
|
||||
button_pressed = true
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.437
|
||||
anchor_top = 0.844
|
||||
anchor_right = 0.562
|
||||
anchor_bottom = 0.892
|
||||
offset_left = 0.575989
|
||||
offset_top = 0.0879517
|
||||
offset_right = -1.42395
|
||||
offset_bottom = -0.0159912
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
text = "ACCEPT REQUEST"
|
||||
|
||||
[node name="LineEdit" type="LineEdit" parent="."]
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.416
|
||||
anchor_top = 0.904
|
||||
anchor_right = 0.584
|
||||
anchor_bottom = 0.952
|
||||
offset_left = 0.268005
|
||||
offset_top = -4.79205
|
||||
offset_right = -0.268066
|
||||
offset_bottom = -4.896
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
placeholder_text = "Invite with user_id here"
|
||||
|
||||
[node name="LineEdit2" type="LineEdit" parent="."]
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -124.0
|
||||
offset_top = -33.0
|
||||
offset_right = 125.0
|
||||
offset_bottom = -2.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
placeholder_text = "Accept Invite with user_id here"
|
||||
|
||||
[node name="Button2" type="Button" parent="."]
|
||||
[node name="ToggleSDK" type="CheckButton" parent="."]
|
||||
anchors_preset = 4
|
||||
anchor_top = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = 3.0
|
||||
offset_top = -4.0
|
||||
offset_right = 139.0
|
||||
offset_bottom = 29.0
|
||||
offset_left = 293.0
|
||||
offset_top = 142.375
|
||||
offset_right = 1139.0
|
||||
offset_bottom = 650.375
|
||||
grow_vertical = 2
|
||||
text = "Print current user on console"
|
||||
scale = Vector2(0.05, 0.05)
|
||||
theme_override_icons/checked = ExtResource("3_wajuo")
|
||||
theme_override_icons/unchecked = ExtResource("4_8hvtu")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_phc3u")
|
||||
button_pressed = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(1115.38, 36.875)
|
||||
scale = Vector2(0.14209, 0.14209)
|
||||
sprite_frames = SubResource("SpriteFrames_kudgl")
|
||||
frame_progress = 0.417812
|
||||
|
||||
[connection signal="toggled" from="CheckButton" to="." method="_on_check_button_toggled"]
|
||||
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
|
||||
[connection signal="text_submitted" from="LineEdit" to="." method="_on_line_edit_text_submitted"]
|
||||
[connection signal="text_submitted" from="LineEdit2" to="." method="_on_line_edit_2_text_submitted"]
|
||||
[connection signal="pressed" from="Button2" to="." method="_on_button_2_pressed"]
|
||||
[connection signal="toggled" from="ToggleSDK" to="." method="_on_toggle_sdk_toggled"]
|
||||
|
@@ -20,7 +20,7 @@ config/icon="res://assets/Logo_V2.png"
|
||||
|
||||
[autoload]
|
||||
|
||||
updater_discordsdk="*res://addons/discord-sdk-gd/sdk_utility.gd"
|
||||
DiscordSDKLoader="*res://addons/discord-sdk-gd/nodes/DiscordSDKLoader.tscn"
|
||||
|
||||
[display]
|
||||
|
||||
|
@@ -238,7 +238,7 @@ void discord_sdk::clear()
|
||||
small_image_text = "";
|
||||
start_timestamp = 0;
|
||||
end_timestamp = 0;
|
||||
party_id = "-";
|
||||
party_id = "";
|
||||
current_party_size = 0;
|
||||
max_party_size = 0;
|
||||
match_secret = "";
|
||||
|