diff --git a/stepmania/src/CatalogXml.cpp b/stepmania/src/CatalogXml.cpp index 250c3e2f46..ac2a153652 100644 --- a/stepmania/src/CatalogXml.cpp +++ b/stepmania/src/CatalogXml.cpp @@ -54,8 +54,8 @@ void CatalogXml::Save( LoadingWindow *loading_window ) const vector &vStepsTypesToShow = CommonMetrics::STEPS_TYPES_TO_SHOW.GetValue(); const vector &vDifficultiesToShow = CommonMetrics::DIFFICULTIES_TO_SHOW.GetValue(); const vector &vCourseDifficultiesToShow = CommonMetrics::COURSE_DIFFICULTIES_TO_SHOW.GetValue(); - const bool bWriteSimpleValues = THEME->GetMetricB( "RadarValues", "WriteSimpleValues" ); - const bool bWriteComplexValues = THEME->GetMetricB( "RadarValues", "WriteComplexValues" ); + const bool bWriteSimpleValues = RadarValues::WRITE_SIMPLE_VALIES; + const bool bWriteComplexValues = RadarValues::WRITE_COMPLEX_VALIES; { XNode* pNode = xml.AppendChild( "Totals" ); diff --git a/stepmania/src/CommonMetrics.cpp b/stepmania/src/CommonMetrics.cpp index f92d9047e8..78f89eb3ce 100644 --- a/stepmania/src/CommonMetrics.cpp +++ b/stepmania/src/CommonMetrics.cpp @@ -22,7 +22,7 @@ ThemeMetric CommonMetrics::TICK_EARLY_SECONDS ("ScreenGameplay","TickE ThemeMetric CommonMetrics::DEFAULT_NOTESKIN_NAME ("Common","DefaultNoteSkinName"); ThemeMetricDifficultiesToShow CommonMetrics::DIFFICULTIES_TO_SHOW ("Common","DifficultiesToShow"); ThemeMetricCourseDifficultiesToShow CommonMetrics::COURSE_DIFFICULTIES_TO_SHOW ("Common","CourseDifficultiesToShow"); -ThemeMetricStepsTypesToShow CommonMetrics::STEPS_TYPES_TO_SHOW ("Common","StepsTypesToHide"); +ThemeMetricStepsTypesToShow CommonMetrics::STEPS_TYPES_TO_SHOW ("Common","StepsTypesToHide"); // This metric takes a list of StepsTypes to hide and returns a list of StepsTypes to show ThemeMetric CommonMetrics::ALL_STEPS_TYPES_IN_ONE_LIST ("Common","AllStepsTypeInOneList"); diff --git a/stepmania/src/HighScore.cpp b/stepmania/src/HighScore.cpp index ab027675d8..45588851bf 100644 --- a/stepmania/src/HighScore.cpp +++ b/stepmania/src/HighScore.cpp @@ -80,8 +80,8 @@ HighScoreImpl::HighScoreImpl() XNode *HighScoreImpl::CreateNode() const { XNode *pNode = new XNode( "HighScore" ); - const bool bWriteSimpleValues = THEME->GetMetricB( "RadarValues", "WriteSimpleValues" ); - const bool bWriteComplexValues = THEME->GetMetricB( "RadarValues", "WriteComplexValues" ); + const bool bWriteSimpleValues = RadarValues::WRITE_SIMPLE_VALIES; + const bool bWriteComplexValues = RadarValues::WRITE_COMPLEX_VALIES; // TRICKY: Don't write "name to fill in" markers. pNode->AppendChild( "Name", IsRankingToFillIn(sName) ? RString("") : sName ); diff --git a/stepmania/src/RadarValues.cpp b/stepmania/src/RadarValues.cpp index f35da1808b..8f1818c6a1 100644 --- a/stepmania/src/RadarValues.cpp +++ b/stepmania/src/RadarValues.cpp @@ -5,6 +5,9 @@ #include "XmlFile.h" #include "ThemeManager.h" +ThemeMetric RadarValues::WRITE_SIMPLE_VALIES( "RadarValues", "WriteSimpleValues" ); +ThemeMetric RadarValues::WRITE_COMPLEX_VALIES( "RadarValues", "WriteComplexValues" ); + RadarValues::RadarValues() { MakeUnknown(); diff --git a/stepmania/src/RadarValues.h b/stepmania/src/RadarValues.h index a666cd4a9a..ba4e47284f 100644 --- a/stepmania/src/RadarValues.h +++ b/stepmania/src/RadarValues.h @@ -4,6 +4,7 @@ #define RARAR_VALUES_H #include "GameConstantsAndTypes.h" +#include "ThemeMetric.h" #define RADAR_VAL_UNKNOWN -1 @@ -65,6 +66,9 @@ struct RadarValues RString ToString( int iMaxValues = -1 ) const; // default = all void FromString( RString sValues ); + static ThemeMetric WRITE_SIMPLE_VALIES; + static ThemeMetric WRITE_COMPLEX_VALIES; + // Lua void PushSelf( lua_State *L ); };