feat. leaderboard + fix for building on linux

This commit is contained in:
Fireblade
2026-04-21 13:26:09 -04:00
parent 7ceb0e4420
commit 1d78fdb33a
7 changed files with 688 additions and 68 deletions
@@ -424,6 +424,10 @@ void UIScene_LeaderboardsMenu::handleInput(int iPad, int key, bool repeat, bool
void UIScene_LeaderboardsMenu::ReadStats(int startIndex)
{
// load before so real stats cant get overwritten afterwards
m_labelInfo.setLabel(app.GetString(IDS_LEADERBOARD_LOADING));
m_labelInfo.setVisible(true);
//If startIndex == -1, then use default values
if( startIndex == -1 )
{
@@ -490,10 +494,6 @@ void UIScene_LeaderboardsMenu::ReadStats(int startIndex)
}
break;
}
//Show the loading message
m_labelInfo.setLabel(app.GetString(IDS_LEADERBOARD_LOADING));
m_labelInfo.setVisible(true);
}
bool UIScene_LeaderboardsMenu::OnStatsReadComplete(LeaderboardManager::eStatsReturn retIn, int numResults, LeaderboardManager::ViewOut results)