play normal Start sound (not separate create sound)
don't show system messages
This commit is contained in:
@@ -199,32 +199,29 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn )
|
|||||||
{
|
{
|
||||||
// Yuck. Doing the memory allocation doesn't seem right since
|
// Yuck. Doing the memory allocation doesn't seem right since
|
||||||
// Song allocates all of the other Steps.
|
// Song allocates all of the other Steps.
|
||||||
Steps* pNewSteps = new Steps;
|
pSteps = new Steps;
|
||||||
switch( action )
|
switch( action )
|
||||||
{
|
{
|
||||||
case EDIT_MENU_ACTION_COPY:
|
case EDIT_MENU_ACTION_COPY:
|
||||||
pNewSteps->CopyFrom( pSourceSteps, st );
|
pSteps->CopyFrom( pSourceSteps, st );
|
||||||
break;
|
break;
|
||||||
case EDIT_MENU_ACTION_AUTOGEN:
|
case EDIT_MENU_ACTION_AUTOGEN:
|
||||||
pNewSteps->AutogenFrom( pSourceSteps, st );
|
pSteps->AutogenFrom( pSourceSteps, st );
|
||||||
pNewSteps->DeAutogen();
|
pSteps->DeAutogen();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ASSERT(0);
|
ASSERT(0);
|
||||||
}
|
}
|
||||||
pNewSteps->SetDifficulty( dc ); // override difficulty with the user's choice
|
pSteps->SetDifficulty( dc ); // override difficulty with the user's choice
|
||||||
CString sEditName = GetCopyDescription(pSourceSteps);
|
CString sEditName = GetCopyDescription(pSourceSteps);
|
||||||
pSong->MakeUniqueEditDescription( st, sEditName );
|
pSong->MakeUniqueEditDescription( st, sEditName );
|
||||||
pNewSteps->SetDescription( sEditName );
|
pSteps->SetDescription( sEditName );
|
||||||
pSong->AddSteps( pNewSteps );
|
pSong->AddSteps( pSteps );
|
||||||
|
|
||||||
SCREENMAN->SystemMessage( "Steps created from AutoGen." );
|
SCREENMAN->PlayStartSound();
|
||||||
SOUND->PlayOnce( THEME->GetPathS(m_sName,"create") );
|
|
||||||
|
|
||||||
GAMESTATE->m_pCurSong.Set( pSong );
|
GAMESTATE->m_pCurSong.Set( pSong );
|
||||||
GAMESTATE->m_pCurSteps[0].Set( pNewSteps );
|
GAMESTATE->m_pCurSteps[0].Set( pSteps );
|
||||||
|
|
||||||
m_Selector.RefreshAll();
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EDIT_MENU_ACTION_BLANK:
|
case EDIT_MENU_ACTION_BLANK:
|
||||||
@@ -232,23 +229,19 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn )
|
|||||||
{
|
{
|
||||||
// Yuck. Doing the memory allocation doesn't seem right since
|
// Yuck. Doing the memory allocation doesn't seem right since
|
||||||
// Song allocates all of the other Steps.
|
// Song allocates all of the other Steps.
|
||||||
Steps* pNewSteps = new Steps;
|
pSteps = new Steps;
|
||||||
pNewSteps->CreateBlank( st );
|
pSteps->CreateBlank( st );
|
||||||
pNewSteps->SetDifficulty( dc );
|
pSteps->SetDifficulty( dc );
|
||||||
pNewSteps->SetMeter( 1 );
|
pSteps->SetMeter( 1 );
|
||||||
CString sEditName = "Blank";
|
CString sEditName = "Blank";
|
||||||
pSong->MakeUniqueEditDescription( st, sEditName );
|
pSong->MakeUniqueEditDescription( st, sEditName );
|
||||||
pNewSteps->SetDescription( sEditName );
|
pSteps->SetDescription( sEditName );
|
||||||
pSong->AddSteps( pNewSteps );
|
pSong->AddSteps( pSteps );
|
||||||
|
|
||||||
SCREENMAN->SystemMessage( "Blank Steps created." );
|
SCREENMAN->PlayStartSound();
|
||||||
SOUND->PlayOnce( THEME->GetPathS(m_sName,"create") );
|
|
||||||
m_Selector.RefreshAll();
|
|
||||||
|
|
||||||
GAMESTATE->m_pCurSong.Set( pSong );
|
GAMESTATE->m_pCurSong.Set( pSong );
|
||||||
GAMESTATE->m_pCurSteps[0].Set( pNewSteps );
|
GAMESTATE->m_pCurSteps[0].Set( pSteps );
|
||||||
|
|
||||||
m_Selector.RefreshAll();
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@@ -256,9 +249,6 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pSteps = m_Selector.GetSelectedSteps();
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Go to the next screen.
|
// Go to the next screen.
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user