Closed michidk closed 9 years ago
You have to go to Plugins/GameJolt/Scripts/UI/Controllers
and in LeaderboardsWindow.cs:20
you have to modify this piece of Code:
override public void Show(Action<bool> callback)
{
animator.SetTrigger("Leaderboards");
animator.SetTrigger("ShowLoadingIndicator");
this.callback = callback; // <- Add this
//...
}
Hope it helps
Okay, i implmented the callback myself, but your fix is better. Just, tested, works fine. Should i open a PR or do you want to do it?
You can do it, I am just a stranger who saw your issue and wanted to help
Haha, awesome :D Thank you!
Good job guys :+1: Thanks @michidk for the issue and pull request and thanks @WizzardMaker for helping him!
If i execute the following code:
GameJolt.UI.Manager.Instance.ShowLeaderboards((bool test) => { Debug.Log("A very sad callback :c");});
And i close the Leaderboard by pressing the given close button (from the GameJoltAPI-Prefab), nothing happens.