From 47aaf5a0eb87fa153ce4419984c1311681f9abc7 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 30 Mar 2005 17:42:41 +0000 Subject: [PATCH] split c'tor and Load --- stepmania/src/CourseContentsList.cpp | 7 ++++++- stepmania/src/CourseContentsList.h | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/stepmania/src/CourseContentsList.cpp b/stepmania/src/CourseContentsList.cpp index 9fd2cbda14..b8efaf2b1b 100644 --- a/stepmania/src/CourseContentsList.cpp +++ b/stepmania/src/CourseContentsList.cpp @@ -23,6 +23,12 @@ CourseContentsList::CourseContentsList() m_fTimeUntilScroll = 0; m_fItemAtTopOfList = 0; + ContentsBarHeight = 1; + ContentsBarWidth = 1; +} + +void CourseContentsList::Load() +{ m_quad.SetUseZBuffer( true ); for( int i = 0; i < MAX_TOTAL_CONTENTS; ++i ) { @@ -36,7 +42,6 @@ CourseContentsList::CourseContentsList() ContentsBarWidth = m_CourseContentDisplays[0].GetUnzoomedWidth(); } - void CourseContentsList::SetFromGameState() { Course* pCourse = GAMESTATE->m_pCurCourse; diff --git a/stepmania/src/CourseContentsList.h b/stepmania/src/CourseContentsList.h index 88d0f02343..65718c2188 100644 --- a/stepmania/src/CourseContentsList.h +++ b/stepmania/src/CourseContentsList.h @@ -22,6 +22,8 @@ class CourseContentsList : public ActorFrame { public: CourseContentsList(); + + void Load(); virtual void Update( float fDeltaTime ); virtual void DrawPrimitives();