added abillity for export scripts
This commit is contained in:
7
project/addons/discord-sdk-gd/export.gd
Normal file
7
project/addons/discord-sdk-gd/export.gd
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
@tool
|
||||||
|
extends EditorExportPlugin
|
||||||
|
|
||||||
|
|
||||||
|
# Called when the node enters the scene tree for the first time.
|
||||||
|
func _export_end():
|
||||||
|
pass
|
@@ -1,9 +1,15 @@
|
|||||||
@tool
|
@tool
|
||||||
extends EditorPlugin
|
extends EditorPlugin
|
||||||
|
|
||||||
|
const ExportPlugin = preload("res://addons/discord-sdk-gd/export.gd")
|
||||||
|
var loaded_exportplugin = ExportPlugin.new()
|
||||||
|
|
||||||
func _enter_tree():
|
func _enter_tree():
|
||||||
add_autoload_singleton("discord_coreupdater", "res://addons/discord-sdk-gd/discord_coreupdater.gd")
|
add_autoload_singleton("discord_coreupdater", "res://addons/discord-sdk-gd/discord_coreupdater.gd")
|
||||||
|
add_export_plugin(loaded_exportplugin)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func disable_plugin():
|
func disable_plugin():
|
||||||
remove_autoload_singleton("discord_coreupdater")
|
remove_autoload_singleton("discord_coreupdater")
|
||||||
|
remove_export_plugin(loaded_exportplugin)
|
||||||
|
@@ -8,7 +8,7 @@ custom_features=""
|
|||||||
export_filter="all_resources"
|
export_filter="all_resources"
|
||||||
include_filter=""
|
include_filter=""
|
||||||
exclude_filter=""
|
exclude_filter=""
|
||||||
export_path="../../Demo/Discord_Activity.exe"
|
export_path="../../demo/Discord_Activity.exe"
|
||||||
encryption_include_filters=""
|
encryption_include_filters=""
|
||||||
encryption_exclude_filters=""
|
encryption_exclude_filters=""
|
||||||
encrypt_pck=false
|
encrypt_pck=false
|
||||||
|
Reference in New Issue
Block a user