Files
itgmania212121/stepmania/src/CourseContentsFrame.h
T

70 lines
1.5 KiB
C++
Raw Normal View History

#ifndef COURSECONTENTSFRAME_H
#define COURSECONTENTSFRAME_H
2002-06-14 22:25:22 +00:00
/*
-----------------------------------------------------------------------------
Class: CourseContentsFrame
Desc: Holds course name and banner.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "FootMeter.h"
#include "BitmapText.h"
2002-07-23 01:41:40 +00:00
#include "TextBanner.h"
2002-06-14 22:25:22 +00:00
#include "ActorFrame.h"
2002-07-23 01:41:40 +00:00
#include "Sprite.h"
#include "Quad.h"
2002-06-14 22:25:22 +00:00
class Course;
2002-07-23 01:41:40 +00:00
class Song;
struct Notes;
const int MAX_VISIBLE_CONTENTS = 5;
const int MAX_TOTAL_CONTENTS = 56;
class CourseContentDisplay : public ActorFrame
{
public:
CourseContentDisplay();
void LoadFromSongAndNotes( int iNum, Song* pSong, Notes* pNotes );
void LoadFromDifficulty( int iNum, Difficulty dc );
void LoadFromMeterRange( int iNum, int iLow, int iHigh );
2002-07-23 01:41:40 +00:00
Sprite m_sprFrame;
BitmapText m_textNumber;
TextBanner m_TextBanner;
BitmapText m_textFoot;
BitmapText m_textDifficultyNumber;
};
2002-06-14 22:25:22 +00:00
class CourseContentsFrame : public ActorFrame
{
public:
CourseContentsFrame();
2002-07-23 01:41:40 +00:00
virtual void Update( float fDeltaTime );
virtual void DrawPrimitives();
2002-06-14 22:25:22 +00:00
void SetFromCourse( Course* pCourse );
2003-02-17 00:59:46 +00:00
void TweenInAfterChangedCourse();
2002-06-14 22:25:22 +00:00
protected:
2002-07-23 01:41:40 +00:00
Quad m_quad;
int m_iNumContents;
CourseContentDisplay m_CourseContentDisplays[MAX_TOTAL_CONTENTS];
int ContentsBarHeight, ContentsBarWidth;
2002-07-23 01:41:40 +00:00
float m_fTimeUntilScroll;
float m_fItemAtTopOfList; // between 0 and m_iNumContents
2002-06-14 22:25:22 +00:00
};
#endif