52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
/*
|
|
-----------------------------------------------------------------------------
|
|
File: ScreenMusicScroll.h
|
|
|
|
Desc: Music plays and song names scroll across the screen.
|
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
Chris Danford
|
|
-----------------------------------------------------------------------------
|
|
*/
|
|
|
|
#include "Screen.h"
|
|
#include "Sprite.h"
|
|
#include "TransitionFade.h"
|
|
#include "RageSoundStream.h"
|
|
#include "Screen.h"
|
|
#include "MenuElements.h"
|
|
|
|
|
|
const unsigned MAX_MUSIC_LINES = 1200;
|
|
const unsigned MAX_CREDIT_LINES = 100;
|
|
const unsigned MAX_TOTAL_LINES = MAX_MUSIC_LINES + MAX_CREDIT_LINES;
|
|
|
|
|
|
class ScreenMusicScroll : public Screen
|
|
{
|
|
public:
|
|
ScreenMusicScroll();
|
|
|
|
virtual void Update( float fDeltaTime );
|
|
virtual void DrawPrimitives();
|
|
|
|
virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );
|
|
virtual void HandleScreenMessage( const ScreenMessage SM );
|
|
|
|
void MenuStart( PlayerNumber pn );
|
|
void MenuBack( PlayerNumber pn );
|
|
|
|
private:
|
|
|
|
BGAnimation m_Background;
|
|
BitmapText m_textLines[MAX_TOTAL_LINES];
|
|
unsigned m_iNumLines;
|
|
float m_fTimeLeftInScreen;
|
|
|
|
TransitionFade m_Fade;
|
|
|
|
RageSoundStream m_soundMusic;
|
|
};
|
|
|
|
|