GUI: Add Statistics dialog to game options
This commit is contained in:
parent
ebf6c3973a
commit
3ea4faeab7
4 changed files with 43 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue