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.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready():
|
func _ready():
|
||||||
DiscordSDK.debug()
|
DiscordSDK.debug()
|
||||||
|
|
||||||
|
func _process(_delta):
|
||||||
|
DiscordSDK.updatedebug()
|
||||||
|
@@ -11,6 +11,7 @@ discord::Core *core{};
|
|||||||
void DiscordSDK::_bind_methods()
|
void DiscordSDK::_bind_methods()
|
||||||
{
|
{
|
||||||
ClassDB::bind_method(D_METHOD("debug"), &DiscordSDK::debug);
|
ClassDB::bind_method(D_METHOD("debug"), &DiscordSDK::debug);
|
||||||
|
ClassDB::bind_method(D_METHOD("updatedebug"), &DiscordSDK::updatedebug);
|
||||||
}
|
}
|
||||||
|
|
||||||
DiscordSDK *DiscordSDK::get_singleton()
|
DiscordSDK *DiscordSDK::get_singleton()
|
||||||
@@ -40,5 +41,8 @@ void DiscordSDK::debug()
|
|||||||
assets.SetLargeImage("test1");
|
assets.SetLargeImage("test1");
|
||||||
assets.SetSmallImage("godot");
|
assets.SetSmallImage("godot");
|
||||||
core->ActivityManager().UpdateActivity(activity, [](discord::Result result) {});
|
core->ActivityManager().UpdateActivity(activity, [](discord::Result result) {});
|
||||||
|
}
|
||||||
|
void DiscordSDK::updatedebug()
|
||||||
|
{
|
||||||
::core->RunCallbacks();
|
::core->RunCallbacks();
|
||||||
}
|
}
|
@@ -22,6 +22,7 @@ public:
|
|||||||
~DiscordSDK();
|
~DiscordSDK();
|
||||||
|
|
||||||
void debug();
|
void debug();
|
||||||
|
void updatedebug();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
Reference in New Issue
Block a user