diff --git a/stepmania/src/OptionRow.h b/stepmania/src/OptionRow.h index a4fa246b67..163e6fd673 100644 --- a/stepmania/src/OptionRow.h +++ b/stepmania/src/OptionRow.h @@ -37,6 +37,7 @@ LayoutType StringToLayoutType( const CString& s ); struct OptionRowDefinition { CString m_sName; + CString m_sExplanationName; bool m_bOneChoiceForAllPlayers; SelectType m_selectType; LayoutType m_layoutType; @@ -57,6 +58,7 @@ struct OptionRowDefinition void Init() { m_sName = ""; + m_sExplanationName = ""; m_bOneChoiceForAllPlayers = false; m_selectType = SELECT_ONE; m_layoutType = LAYOUT_SHOW_ALL_IN_ROW; diff --git a/stepmania/src/ScreenOptions.cpp b/stepmania/src/ScreenOptions.cpp index 6b2a2fd2ec..73be7468af 100644 --- a/stepmania/src/ScreenOptions.cpp +++ b/stepmania/src/ScreenOptions.cpp @@ -389,10 +389,12 @@ CString ScreenOptions::GetExplanationText( int iRow ) const if( !bShowExplanations ) return CString(); - CString sLineName = row.GetRowDef().m_sName; - ASSERT( !sLineName.empty() ); + CString sExplanationName = row.GetRowDef().m_sExplanationName; + if( sExplanationName.empty() ) + sExplanationName = row.GetRowDef().m_sName; + ASSERT( !sExplanationName.empty() ); - return OPTION_EXPLANATION(sLineName); + return OPTION_EXPLANATION(sExplanationName); } BitmapText &ScreenOptions::GetTextItemForRow( PlayerNumber pn, int iRow, int iChoiceOnRow ) diff --git a/stepmania/src/ScreenOptionsManageEditSteps.cpp b/stepmania/src/ScreenOptionsManageEditSteps.cpp index 6be84bac6c..819c5a93a7 100644 --- a/stepmania/src/ScreenOptionsManageEditSteps.cpp +++ b/stepmania/src/ScreenOptionsManageEditSteps.cpp @@ -66,8 +66,6 @@ ScreenOptionsManageEditSteps::ScreenOptionsManageEditSteps( CString sName ) : Sc void ScreenOptionsManageEditSteps::Init() { ScreenOptions::Init(); - - EDIT_MODE.Load(m_sName,"EditMode"); } void ScreenOptionsManageEditSteps::BeginScreen() @@ -83,8 +81,9 @@ void ScreenOptionsManageEditSteps::BeginScreen() { def.m_sName = ""; def.m_bAllowThemeTitle = false; + def.m_sExplanationName = "Create New Edit Steps"; def.m_vsChoices.clear(); - def.m_vsChoices.push_back( "Create New" ); + def.m_vsChoices.push_back( "Create New Edit Steps" ); vDefs.push_back( def ); vHands.push_back( NULL ); iIndex++; @@ -94,11 +93,12 @@ void ScreenOptionsManageEditSteps::BeginScreen() FOREACH_CONST( Steps*, m_vpSteps, s ) { - def.m_sName = GAMEMAN->StepsTypeToThemedString( (*s)->m_StepsType ); - def.m_bAllowThemeTitle = false; + CString sType = GAMEMAN->StepsTypeToThemedString( (*s)->m_StepsType ); + def.m_sName = sType; + def.m_sExplanationName = "Edit Steps"; + def.m_bAllowThemeItems = false; def.m_vsChoices.clear(); def.m_vsChoices.push_back( (*s)->GetDescription() ); - def.m_bAllowThemeItems = false; vDefs.push_back( def ); vHands.push_back( NULL ); iIndex++; diff --git a/stepmania/src/ScreenOptionsManageEditSteps.h b/stepmania/src/ScreenOptionsManageEditSteps.h index fd253f58cc..a2ba661049 100644 --- a/stepmania/src/ScreenOptionsManageEditSteps.h +++ b/stepmania/src/ScreenOptionsManageEditSteps.h @@ -26,8 +26,6 @@ protected: Steps *GetStepsWithFocus() const; vector m_vpSteps; - - ThemeMetricEnum EDIT_MODE; }; #endif