add toggle for showing coin data

This commit is contained in:
Chris Danford
2006-03-20 09:07:58 +00:00
parent 4ca585dc01
commit 4852da79c8
2 changed files with 6 additions and 1 deletions
+3
View File
@@ -5119,3 +5119,6 @@ Fallback=Screen
[PlayerSyncMachine]
Fallback=Player
ComboOnCommand=hidden,1
[Profile]
ShowCoinData=1
+3 -1
View File
@@ -36,6 +36,8 @@ const RString SCREENSHOTS_SUBDIR = "Screenshots/";
const RString EDIT_STEPS_SUBDIR = "Edits/";
const RString EDIT_COURSES_SUBDIR = "EditCourses/";
ThemeMetric<bool> SHOW_COIN_DATA( "Profile", "ShowCoinData" );
#define GUID_SIZE_BYTES 8
#define MAX_EDITABLE_INI_SIZE_BYTES 2*1024 // 2KB
@@ -924,7 +926,7 @@ XNode *Profile::SaveStatsXmlCreateNode() const
xml->AppendChild( SaveCalorieDataCreateNode() );
xml->AppendChild( SaveRecentSongScoresCreateNode() );
xml->AppendChild( SaveRecentCourseScoresCreateNode() );
if( IsMachine() )
if( SHOW_COIN_DATA.GetValue() && IsMachine() )
xml->AppendChild( SaveCoinDataCreateNode() );
return xml;