works but again scuffed as hell
This commit is contained in:
Binary file not shown.
@@ -4,3 +4,6 @@ extends Node
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
DiscordSDK.debug()
|
||||
|
||||
func _process(_delta):
|
||||
DiscordSDK.updatedebug()
|
||||
|
@@ -11,6 +11,7 @@ discord::Core *core{};
|
||||
void DiscordSDK::_bind_methods()
|
||||
{
|
||||
ClassDB::bind_method(D_METHOD("debug"), &DiscordSDK::debug);
|
||||
ClassDB::bind_method(D_METHOD("updatedebug"), &DiscordSDK::updatedebug);
|
||||
}
|
||||
|
||||
DiscordSDK *DiscordSDK::get_singleton()
|
||||
@@ -40,5 +41,8 @@ void DiscordSDK::debug()
|
||||
assets.SetLargeImage("test1");
|
||||
assets.SetSmallImage("godot");
|
||||
core->ActivityManager().UpdateActivity(activity, [](discord::Result result) {});
|
||||
}
|
||||
void DiscordSDK::updatedebug()
|
||||
{
|
||||
::core->RunCallbacks();
|
||||
}
|
@@ -22,6 +22,7 @@ public:
|
||||
~DiscordSDK();
|
||||
|
||||
void debug();
|
||||
void updatedebug();
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user