2002-05-20 08:59:37 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
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"
|
2003-01-02 07:54:28 +00:00
|
|
|
#include "RageSoundManager.h"
|
2002-05-20 08:59:37 +00:00
|
|
|
#include "MenuElements.h"
|
|
|
|
|
|
|
|
|
|
|
2002-10-31 03:16:02 +00:00
|
|
|
const unsigned MAX_MUSIC_LINES = 1200;
|
|
|
|
|
const unsigned MAX_CREDIT_LINES = 100;
|
|
|
|
|
const unsigned MAX_TOTAL_LINES = MAX_MUSIC_LINES + MAX_CREDIT_LINES;
|
2002-05-20 08:59:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
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 );
|
|
|
|
|
|
2002-09-04 03:49:08 +00:00
|
|
|
void MenuStart( PlayerNumber pn );
|
|
|
|
|
void MenuBack( PlayerNumber pn );
|
2002-05-20 08:59:37 +00:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
2002-09-29 05:06:18 +00:00
|
|
|
BGAnimation m_Background;
|
2002-09-23 07:35:47 +00:00
|
|
|
BitmapText m_textLines[MAX_TOTAL_LINES];
|
2002-10-31 03:16:02 +00:00
|
|
|
unsigned m_iNumLines;
|
2002-09-23 07:35:47 +00:00
|
|
|
float m_fTimeLeftInScreen;
|
2002-05-20 08:59:37 +00:00
|
|
|
|
|
|
|
|
TransitionFade m_Fade;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|