stats.xml:

theme more elements
show HighScore details
clean up some tables
This commit is contained in:
Chris Danford
2004-07-19 08:05:14 +00:00
parent e9327c9bb8
commit 9199410e82
11 changed files with 88 additions and 25 deletions
+36
View File
@@ -23,6 +23,7 @@
#define INTERNET_RANKING_HOME_URL THEME->GetMetric ("CatalogXml","InternetRankingHomeUrl")
#define INTERNET_RANKING_UPLOAD_URL THEME->GetMetric ("CatalogXml","InternetRankingUploadUrl")
#define INTERNET_RANKING_VIEW_GUID_URL THEME->GetMetric ("CatalogXml","InternetRankingViewGuidUrl")
#define STATS_TITLE THEME->GetMetric ("CatalogXml","StatsTitle")
#define STATS_HEADER THEME->GetMetric ("CatalogXml","StatsHeader")
#define STATS_FOOTER_TEXT THEME->GetMetric ("CatalogXml","StatsFooterText")
#define STATS_FOOTER_LINK THEME->GetMetric ("CatalogXml","StatsFooterLink")
@@ -183,11 +184,46 @@ void SaveCatalogXml()
pNode2->AppendAttr( "DisplayAs", GradeToThemedString(g) );
}
}
{
FOREACH_TapNoteScore( tns )
{
XNode* pNode2 = pNode->AppendChild( "TapNoteScore", TapNoteScoreToString(tns) );
pNode2->AppendAttr( "DisplayAs", TapNoteScoreToThemedString(tns) );
}
}
{
FOREACH_HoldNoteScore( hns )
{
XNode* pNode2 = pNode->AppendChild( "HoldNoteScore", HoldNoteScoreToString(hns) );
pNode2->AppendAttr( "DisplayAs", HoldNoteScoreToThemedString(hns) );
}
}
{
FOREACH_RadarCategory( rc )
{
XNode* pNode2 = pNode->AppendChild( "RadarValue", RadarCategoryToString(rc) );
pNode2->AppendAttr( "DisplayAs", RadarCategoryToThemedString(rc) );
}
}
{
set<CString> modifiers;
THEME->GetModifierNames( modifiers );
for( set<CString>::const_iterator iter = modifiers.begin(); iter != modifiers.end(); iter++ )
{
XNode* pNode2 = pNode->AppendChild( "Modifier", *iter );
pNode2->AppendAttr( "DisplayAs", PlayerOptions::ThemeMod(*iter) );
}
}
}
xml.AppendChild( "InternetRankingHomeUrl", INTERNET_RANKING_HOME_URL );
xml.AppendChild( "InternetRankingUploadUrl", INTERNET_RANKING_UPLOAD_URL );
xml.AppendChild( "InternetRankingViewGuidUrl", INTERNET_RANKING_VIEW_GUID_URL );
xml.AppendChild( "StatsTitle", STATS_TITLE );
xml.AppendChild( "StatsHeader", STATS_HEADER );
xml.AppendChild( "StatsFooterText", STATS_FOOTER_TEXT );
xml.AppendChild( "StatsFooterLink", STATS_FOOTER_LINK );