one path for parsing and theming player options - fixes "SuperShuffle" not themed

warn in ActiveAttackList if an invalid mod is encountered
don't hard code font name
This commit is contained in:
Chris Danford
2005-04-06 05:32:09 +00:00
parent 759be18af5
commit ea34de2bef
5 changed files with 148 additions and 147 deletions
+8 -1
View File
@@ -232,7 +232,14 @@ void SaveCatalogXml()
for( set<CString>::const_iterator iter = modifiers.begin(); iter != modifiers.end(); iter++ )
{
XNode* pNode2 = pNode->AppendChild( "Modifier", *iter );
pNode2->AppendAttr( "DisplayAs", PlayerOptions::ThemeMod(*iter) );
PlayerOptions po;
CString s = *iter;
po.FromString( s, false );
vector<CString> v;
po.GetThemedMods( v );
if( v.empty() )
continue;
pNode2->AppendAttr( "DisplayAs", join(" ",v) );
}
}
}