separate c'tor/Init
This commit is contained in:
@@ -27,11 +27,16 @@ ScreenEditCoursesMenu::ScreenEditCoursesMenu( CString sName ) : ScreenWithMenuEl
|
|||||||
FOREACH_PlayerNumber( pn )
|
FOREACH_PlayerNumber( pn )
|
||||||
GAMESTATE->m_bSideIsJoined[pn] = true;
|
GAMESTATE->m_bSideIsJoined[pn] = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void ScreenEditCoursesMenu::Init()
|
||||||
|
{
|
||||||
|
ScreenWithMenuElements::Init();
|
||||||
|
|
||||||
m_Selector.SetXY( 0, 0 );
|
m_Selector.SetXY( 0, 0 );
|
||||||
// m_Selector.AllowNewNotes();
|
// m_Selector.AllowNewNotes();
|
||||||
this->AddChild( &m_Selector );
|
this->AddChild( &m_Selector );
|
||||||
|
|
||||||
|
|
||||||
m_textExplanation.SetName( "Explanation" );
|
m_textExplanation.SetName( "Explanation" );
|
||||||
m_textExplanation.LoadFromFont( THEME->GetPathF("Common","normal") );
|
m_textExplanation.LoadFromFont( THEME->GetPathF("Common","normal") );
|
||||||
SET_XY_AND_ON_COMMAND( m_textExplanation );
|
SET_XY_AND_ON_COMMAND( m_textExplanation );
|
||||||
@@ -39,8 +44,6 @@ ScreenEditCoursesMenu::ScreenEditCoursesMenu( CString sName ) : ScreenWithMenuEl
|
|||||||
this->AddChild( &m_textExplanation );
|
this->AddChild( &m_textExplanation );
|
||||||
|
|
||||||
this->SortByDrawOrder();
|
this->SortByDrawOrder();
|
||||||
|
|
||||||
SOUND->PlayMusic( THEME->GetPathS("ScreenEditCoursesMenu","music") );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenEditCoursesMenu::HandleScreenMessage( const ScreenMessage SM )
|
void ScreenEditCoursesMenu::HandleScreenMessage( const ScreenMessage SM )
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ class ScreenEditCoursesMenu : public ScreenWithMenuElements
|
|||||||
public:
|
public:
|
||||||
ScreenEditCoursesMenu( CString sName );
|
ScreenEditCoursesMenu( CString sName );
|
||||||
|
|
||||||
|
void Init();
|
||||||
|
|
||||||
virtual void HandleScreenMessage( const ScreenMessage SM );
|
virtual void HandleScreenMessage( const ScreenMessage SM );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user