don't show edit description in the item name (it's already in the difficulty meter)
This commit is contained in:
@@ -45,7 +45,7 @@ static RString ROW_Y_NAME( size_t i ) { return ssprintf("Row%dY",int(i+1)); }
|
|||||||
void EditMenu::StripLockedStepsAndDifficulty( vector<StepsAndDifficulty> &v )
|
void EditMenu::StripLockedStepsAndDifficulty( vector<StepsAndDifficulty> &v )
|
||||||
{
|
{
|
||||||
const Song *pSong = GetSelectedSong();
|
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) )
|
if( v[i].pSteps && UNLOCKMAN->StepsIsLocked(pSong, v[i].pSteps) )
|
||||||
v.erase( v.begin()+i );
|
v.erase( v.begin()+i );
|
||||||
@@ -480,16 +480,6 @@ void EditMenu::OnRowValueChanged( EditMenuRow row )
|
|||||||
{
|
{
|
||||||
RString s;
|
RString s;
|
||||||
Steps *pSteps = GetSelectedSteps();
|
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"
|
// UGLY. "Edit" -> "New Edit"
|
||||||
@@ -505,7 +495,6 @@ void EditMenu::OnRowValueChanged( EditMenuRow row )
|
|||||||
default:
|
default:
|
||||||
ASSERT(0);
|
ASSERT(0);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
m_textValue[ROW_STEPS].SetText( s );
|
m_textValue[ROW_STEPS].SetText( s );
|
||||||
}
|
}
|
||||||
if( GetSelectedSteps() )
|
if( GetSelectedSteps() )
|
||||||
@@ -550,8 +539,6 @@ void EditMenu::OnRowValueChanged( EditMenuRow row )
|
|||||||
Steps *pSourceSteps = GetSelectedSourceSteps();
|
Steps *pSourceSteps = GetSelectedSourceSteps();
|
||||||
if( GetSelectedSourceDifficulty() == DIFFICULTY_INVALID )
|
if( GetSelectedSourceDifficulty() == DIFFICULTY_INVALID )
|
||||||
s = BLANK;
|
s = BLANK;
|
||||||
else if( pSourceSteps && GetSelectedSourceDifficulty() == DIFFICULTY_EDIT )
|
|
||||||
s = pSourceSteps->GetDescription() + " (" + DifficultyToLocalizedString(DIFFICULTY_EDIT) + ")";
|
|
||||||
else
|
else
|
||||||
s = DifficultyToLocalizedString(GetSelectedSourceDifficulty());
|
s = DifficultyToLocalizedString(GetSelectedSourceDifficulty());
|
||||||
m_textValue[ROW_SOURCE_STEPS].SetText( s );
|
m_textValue[ROW_SOURCE_STEPS].SetText( s );
|
||||||
|
|||||||
Reference in New Issue
Block a user