separate c'tor/Init

This commit is contained in:
Chris Danford
2005-06-23 07:58:09 +00:00
parent 2f126143ec
commit f881b0bf4d
2 changed files with 8 additions and 3 deletions
+6 -3
View File
@@ -27,10 +27,15 @@ ScreenEditCoursesMenu::ScreenEditCoursesMenu( CString sName ) : ScreenWithMenuEl
FOREACH_PlayerNumber( pn )
GAMESTATE->m_bSideIsJoined[pn] = true;
}
void ScreenEditCoursesMenu::Init()
{
ScreenWithMenuElements::Init();
m_Selector.SetXY( 0, 0 );
// m_Selector.AllowNewNotes();
this->AddChild( &m_Selector );
m_textExplanation.SetName( "Explanation" );
m_textExplanation.LoadFromFont( THEME->GetPathF("Common","normal") );
@@ -39,8 +44,6 @@ ScreenEditCoursesMenu::ScreenEditCoursesMenu( CString sName ) : ScreenWithMenuEl
this->AddChild( &m_textExplanation );
this->SortByDrawOrder();
SOUND->PlayMusic( THEME->GetPathS("ScreenEditCoursesMenu","music") );
}
void ScreenEditCoursesMenu::HandleScreenMessage( const ScreenMessage SM )
+2
View File
@@ -10,6 +10,8 @@ class ScreenEditCoursesMenu : public ScreenWithMenuElements
public:
ScreenEditCoursesMenu( CString sName );
void Init();
virtual void HandleScreenMessage( const ScreenMessage SM );
private: