BeginScreen
This commit is contained in:
@@ -48,8 +48,10 @@ ScreenOptionsEditCourse::ScreenOptionsEditCourse( CString sName ) : ScreenOption
|
|||||||
void ScreenOptionsEditCourse::Init()
|
void ScreenOptionsEditCourse::Init()
|
||||||
{
|
{
|
||||||
ScreenOptions::Init();
|
ScreenOptions::Init();
|
||||||
|
}
|
||||||
|
|
||||||
|
void ScreenOptionsEditCourse::BeginScreen()
|
||||||
|
{
|
||||||
// save a backup that we'll use if we revert.
|
// save a backup that we'll use if we revert.
|
||||||
ASSERT( GAMESTATE->m_pCurCourse );
|
ASSERT( GAMESTATE->m_pCurCourse );
|
||||||
Course *pCourse = GAMESTATE->m_pCurCourse;
|
Course *pCourse = GAMESTATE->m_pCurCourse;
|
||||||
@@ -96,10 +98,7 @@ void ScreenOptionsEditCourse::Init()
|
|||||||
vHands.push_back( NULL );
|
vHands.push_back( NULL );
|
||||||
|
|
||||||
ScreenOptions::InitMenu( vDefs, vHands );
|
ScreenOptions::InitMenu( vDefs, vHands );
|
||||||
}
|
|
||||||
|
|
||||||
void ScreenOptionsEditCourse::BeginScreen()
|
|
||||||
{
|
|
||||||
ScreenOptions::BeginScreen();
|
ScreenOptions::BeginScreen();
|
||||||
|
|
||||||
if( GAMESTATE->m_iEditCourseEntryIndex > -1 )
|
if( GAMESTATE->m_iEditCourseEntryIndex > -1 )
|
||||||
|
|||||||
@@ -54,8 +54,10 @@ ScreenOptionsEditCourseEntry::ScreenOptionsEditCourseEntry( CString sName ) : Sc
|
|||||||
void ScreenOptionsEditCourseEntry::Init()
|
void ScreenOptionsEditCourseEntry::Init()
|
||||||
{
|
{
|
||||||
ScreenOptions::Init();
|
ScreenOptions::Init();
|
||||||
|
}
|
||||||
|
|
||||||
|
void ScreenOptionsEditCourseEntry::BeginScreen()
|
||||||
|
{
|
||||||
// save a backup that we'll use if we revert.
|
// save a backup that we'll use if we revert.
|
||||||
Course *pCourse = GAMESTATE->m_pCurCourse;
|
Course *pCourse = GAMESTATE->m_pCurCourse;
|
||||||
const CourseEntry &ce = pCourse->m_vEntries[ GAMESTATE->m_iEditCourseEntryIndex ];
|
const CourseEntry &ce = pCourse->m_vEntries[ GAMESTATE->m_iEditCourseEntryIndex ];
|
||||||
@@ -131,10 +133,7 @@ void ScreenOptionsEditCourseEntry::Init()
|
|||||||
vHands.push_back( NULL );
|
vHands.push_back( NULL );
|
||||||
|
|
||||||
ScreenOptions::InitMenu( vDefs, vHands );
|
ScreenOptions::InitMenu( vDefs, vHands );
|
||||||
}
|
|
||||||
|
|
||||||
void ScreenOptionsEditCourseEntry::BeginScreen()
|
|
||||||
{
|
|
||||||
ScreenOptions::BeginScreen();
|
ScreenOptions::BeginScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user