Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
7c66fbc474 | ||
|
a8c4f33fdd |
Binary file not shown.
Binary file not shown.
@@ -14,15 +14,15 @@ const ExportPlugin = preload("res://addons/discord-sdk-gd/export.gd")
|
||||
var loaded_exportplugin = ExportPlugin.new()
|
||||
|
||||
|
||||
func _enable_plugin() -> void:
|
||||
print("DiscordSDK Addon got enabled")
|
||||
func _enter_tree() -> void:
|
||||
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/core_updater.gd")
|
||||
add_export_plugin(loaded_exportplugin)
|
||||
|
||||
func _enable_plugin():
|
||||
print("DiscordSDK Addon got enabled")
|
||||
ProjectSettings.set_setting("DiscordSDK/EditorPresence/enabled",false)
|
||||
|
||||
ProjectSettings.set_initial_value("DiscordSDK/EditorPresence/enabled",false)
|
||||
ProjectSettings.set_restart_if_changed("DiscordSDK/EditorPresence/enabled",true)
|
||||
|
||||
|
@@ -8,6 +8,10 @@
|
||||
|
||||
config_version=5
|
||||
|
||||
[DiscordSDK]
|
||||
|
||||
EditorPresence/enabled=true
|
||||
|
||||
[application]
|
||||
|
||||
config/name="GDExtension DiscordSDK Test Project"
|
||||
|
Reference in New Issue
Block a user