GUI: Add Statistics dialog to game options

This commit is contained in:
lb_ii 2021-05-31 04:28:35 +03:00 committed by lolbot-iichan
parent ebf6c3973a
commit 3ea4faeab7
4 changed files with 43 additions and 2 deletions

View file

@ -331,13 +331,17 @@ ConfigDialog::ConfigDialog() :
}
//
// The Achievements tab
// The Achievements & The Statistics tabs
//
Common::AchievementsInfo achievementsInfo = metaEngine->getAchievementsInfo(gameDomain);
if (achievementsInfo.descriptions.size() > 0) {
tab->addTab(_("Achievements"), "GlobalConfig_Achievements");
addAchievementsControls(tab, "GlobalConfig_Achievements.", achievementsInfo);
}
if (achievementsInfo.stats.size() > 0) {
tab->addTab(_("Statistics"), "GameOptions_Achievements");
addStatisticsControls(tab, "GameOptions_Achievements.", achievementsInfo);
}
// Activate the first tab
tab->setActiveTab(0);