From 721d2083b9e3a05379f407569a1180a520846b2a Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Tue, 16 May 2006 05:41:40 +0000 Subject: [PATCH] don't show edit description in the item name (it's already in the difficulty meter) --- stepmania/src/EditMenu.cpp | 41 +++++++++++++------------------------- 1 file changed, 14 insertions(+), 27 deletions(-) diff --git a/stepmania/src/EditMenu.cpp b/stepmania/src/EditMenu.cpp index ee9e516c44..a256a33f9d 100644 --- a/stepmania/src/EditMenu.cpp +++ b/stepmania/src/EditMenu.cpp @@ -45,7 +45,7 @@ static RString ROW_Y_NAME( size_t i ) { return ssprintf("Row%dY",int(i+1)); } void EditMenu::StripLockedStepsAndDifficulty( vector &v ) { const Song *pSong = GetSelectedSong(); - for( int i=(int)v.size(); i>=0; i-- ) + for( int i=(int)v.size()-1; i>=0; i-- ) { if( v[i].pSteps && UNLOCKMAN->StepsIsLocked(pSong, v[i].pSteps) ) v.erase( v.begin()+i ); @@ -480,31 +480,20 @@ void EditMenu::OnRowValueChanged( EditMenuRow row ) { RString s; Steps *pSteps = GetSelectedSteps(); - if( pSteps && GetSelectedDifficulty() == DIFFICULTY_EDIT ) - { - if( pSteps->GetDescription().empty() ) - s += "-no name-"; - else - s += pSteps->GetDescription(); - s += " (" + DifficultyToLocalizedString(DIFFICULTY_EDIT) + ")"; - } - else - { - s = DifficultyToLocalizedString(GetSelectedDifficulty()); + s = DifficultyToLocalizedString(GetSelectedDifficulty()); - // UGLY. "Edit" -> "New Edit" - switch( EDIT_MODE.GetValue() ) - { - case EditMode_Home: - s = "New " + s; - break; - case EditMode_Practice: - case EditMode_CourseMods: - case EditMode_Full: - break; - default: - ASSERT(0); - } + // UGLY. "Edit" -> "New Edit" + switch( EDIT_MODE.GetValue() ) + { + case EditMode_Home: + s = "New " + s; + break; + case EditMode_Practice: + case EditMode_CourseMods: + case EditMode_Full: + break; + default: + ASSERT(0); } m_textValue[ROW_STEPS].SetText( s ); } @@ -550,8 +539,6 @@ void EditMenu::OnRowValueChanged( EditMenuRow row ) Steps *pSourceSteps = GetSelectedSourceSteps(); if( GetSelectedSourceDifficulty() == DIFFICULTY_INVALID ) s = BLANK; - else if( pSourceSteps && GetSelectedSourceDifficulty() == DIFFICULTY_EDIT ) - s = pSourceSteps->GetDescription() + " (" + DifficultyToLocalizedString(DIFFICULTY_EDIT) + ")"; else s = DifficultyToLocalizedString(GetSelectedSourceDifficulty()); m_textValue[ROW_SOURCE_STEPS].SetText( s );