cleanup
This commit is contained in:
@@ -45,7 +45,6 @@ void ScreenEditMenu::Init()
|
|||||||
m_Selector.SetXY( 0, 0 );
|
m_Selector.SetXY( 0, 0 );
|
||||||
this->AddChild( &m_Selector );
|
this->AddChild( &m_Selector );
|
||||||
|
|
||||||
|
|
||||||
m_textExplanation.SetName( "Explanation" );
|
m_textExplanation.SetName( "Explanation" );
|
||||||
m_textExplanation.LoadFromFont( THEME->GetPathF(m_sName,"explanation") );
|
m_textExplanation.LoadFromFont( THEME->GetPathF(m_sName,"explanation") );
|
||||||
LOAD_ALL_COMMANDS_AND_SET_XY( m_textExplanation );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_textExplanation );
|
||||||
@@ -59,7 +58,6 @@ void ScreenEditMenu::Init()
|
|||||||
this->AddChild( &m_textNumStepsLoadedFromProfile );
|
this->AddChild( &m_textNumStepsLoadedFromProfile );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ScreenEditMenu::HandleScreenMessage( const ScreenMessage SM )
|
void ScreenEditMenu::HandleScreenMessage( const ScreenMessage SM )
|
||||||
{
|
{
|
||||||
if( SM == SM_RefreshSelector )
|
if( SM == SM_RefreshSelector )
|
||||||
@@ -77,8 +75,8 @@ void ScreenEditMenu::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
pSong->DeleteSteps( pStepsToDelete );
|
pSong->DeleteSteps( pStepsToDelete );
|
||||||
SONGMAN->Invalidate( pSong );
|
SONGMAN->Invalidate( pSong );
|
||||||
|
|
||||||
/* Only save to the main .SM file if the steps we're deleting were loaded
|
/* Only save to the main .SM file if the steps we're deleting
|
||||||
* from it. */
|
* were loaded from it. */
|
||||||
if( bSaveSong )
|
if( bSaveSong )
|
||||||
{
|
{
|
||||||
pSong->Save();
|
pSong->Save();
|
||||||
|
|||||||
Reference in New Issue
Block a user