added overlay support

This commit is contained in:
Yannik
2023-05-15 19:44:27 +02:00
parent 54d6cebd5c
commit 0013c8c788
6 changed files with 63 additions and 6 deletions

View File

@@ -30,6 +30,7 @@ func set_activity():
discord_sdk.small_image = "boss"
discord_sdk.small_image_text = "Fighting the end boss! D:"
discord_sdk.end_timestamp = int(Time.get_unix_time_from_system()) + 3600 # +1 hour in unix time
print(discord_sdk.get_is_overlay_enabled())
# It is NOT recommended to manage secrets locally! It's meant to be a payload wich the server
# understands and returns the other variables like current_party_size, party_id etc. Most of the values must differ from the others.
@@ -44,7 +45,7 @@ func set_activity():
discord_sdk.is_public_party = true
discord_sdk.instanced = true #required for spectate
#discord_sdk.start_timestamp = int(Time.get_unix_time_from_system())
#discord_sdk.register_command("steam://rungameid/1389990")
discord_sdk.register_command("C:\\Users\\yanni\\Desktop\\demo\\discord_sdk.exe")
#discord_sdk.register_steam(1389990)
discord_sdk.refresh()