split c'tor and Load
This commit is contained in:
@@ -23,6 +23,12 @@ CourseContentsList::CourseContentsList()
|
|||||||
m_fTimeUntilScroll = 0;
|
m_fTimeUntilScroll = 0;
|
||||||
m_fItemAtTopOfList = 0;
|
m_fItemAtTopOfList = 0;
|
||||||
|
|
||||||
|
ContentsBarHeight = 1;
|
||||||
|
ContentsBarWidth = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CourseContentsList::Load()
|
||||||
|
{
|
||||||
m_quad.SetUseZBuffer( true );
|
m_quad.SetUseZBuffer( true );
|
||||||
for( int i = 0; i < MAX_TOTAL_CONTENTS; ++i )
|
for( int i = 0; i < MAX_TOTAL_CONTENTS; ++i )
|
||||||
{
|
{
|
||||||
@@ -36,7 +42,6 @@ CourseContentsList::CourseContentsList()
|
|||||||
ContentsBarWidth = m_CourseContentDisplays[0].GetUnzoomedWidth();
|
ContentsBarWidth = m_CourseContentDisplays[0].GetUnzoomedWidth();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CourseContentsList::SetFromGameState()
|
void CourseContentsList::SetFromGameState()
|
||||||
{
|
{
|
||||||
Course* pCourse = GAMESTATE->m_pCurCourse;
|
Course* pCourse = GAMESTATE->m_pCurCourse;
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ class CourseContentsList : public ActorFrame
|
|||||||
public:
|
public:
|
||||||
CourseContentsList();
|
CourseContentsList();
|
||||||
|
|
||||||
|
void Load();
|
||||||
|
|
||||||
virtual void Update( float fDeltaTime );
|
virtual void Update( float fDeltaTime );
|
||||||
virtual void DrawPrimitives();
|
virtual void DrawPrimitives();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user