2002-05-20 08:59:37 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
2002-06-14 22:25:22 +00:00
|
|
|
Class: ScreenSelectMusic
|
2002-05-20 08:59:37 +00:00
|
|
|
|
2003-08-03 00:13:55 +00:00
|
|
|
Desc: The screen in PLAY_MODE_ARCADE where you choose a Song and Steps.
|
2002-05-20 08:59:37 +00:00
|
|
|
|
|
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
2002-06-14 22:25:22 +00:00
|
|
|
Chris Danford
|
2002-05-20 08:59:37 +00:00
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "Screen.h"
|
|
|
|
|
#include "Sprite.h"
|
|
|
|
|
#include "BitmapText.h"
|
|
|
|
|
#include "GameConstantsAndTypes.h"
|
|
|
|
|
#include "MusicWheel.h"
|
|
|
|
|
#include "Banner.h"
|
2002-08-13 23:26:46 +00:00
|
|
|
#include "FadingBanner.h"
|
|
|
|
|
#include "BPMDisplay.h"
|
2002-05-20 08:59:37 +00:00
|
|
|
#include "MenuElements.h"
|
|
|
|
|
#include "GrooveRadar.h"
|
2003-04-22 08:43:12 +00:00
|
|
|
#include "GrooveGraph.h"
|
2002-05-20 08:59:37 +00:00
|
|
|
#include "DifficultyIcon.h"
|
2003-03-09 00:55:49 +00:00
|
|
|
#include "DifficultyMeter.h"
|
2002-09-03 06:33:08 +00:00
|
|
|
#include "OptionIconRow.h"
|
2003-06-18 07:10:03 +00:00
|
|
|
#include "DifficultyDisplay.h"
|
2003-11-17 04:29:14 +00:00
|
|
|
#include "DifficultyList.h"
|
2003-07-20 05:13:45 +00:00
|
|
|
#include "CourseContentsList.h"
|
2003-11-17 02:52:03 +00:00
|
|
|
#include "HelpDisplay.h"
|
2003-11-17 06:13:12 +00:00
|
|
|
#include "PaneDisplay.h"
|
2003-11-21 04:35:06 +00:00
|
|
|
#include "Character.h"
|
2003-12-19 09:30:54 +00:00
|
|
|
#include "BGAnimation.h"
|
2002-05-20 08:59:37 +00:00
|
|
|
|
|
|
|
|
class ScreenSelectMusic : public Screen
|
|
|
|
|
{
|
|
|
|
|
public:
|
2003-09-27 22:30:51 +00:00
|
|
|
ScreenSelectMusic( CString sName );
|
2002-05-20 08:59:37 +00:00
|
|
|
virtual ~ScreenSelectMusic();
|
|
|
|
|
|
|
|
|
|
virtual void DrawPrimitives();
|
|
|
|
|
|
2002-08-13 23:26:46 +00:00
|
|
|
virtual void Update( float fDeltaTime );
|
2002-05-20 08:59:37 +00:00
|
|
|
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
|
|
|
virtual void MenuStart( PlayerNumber pn );
|
|
|
|
|
virtual void MenuBack( PlayerNumber pn );
|
2002-05-20 08:59:37 +00:00
|
|
|
|
|
|
|
|
protected:
|
2002-08-28 22:42:40 +00:00
|
|
|
void TweenOnScreen();
|
|
|
|
|
void TweenOffScreen();
|
|
|
|
|
void TweenScoreOnAndOffAfterChangeSort();
|
2003-07-20 05:13:45 +00:00
|
|
|
void EnterCourseDisplayMode();
|
|
|
|
|
void ExitCourseDisplayMode();
|
|
|
|
|
bool m_bInCourseDisplayMode;
|
|
|
|
|
void TweenSongPartsOnScreen( bool Initial );
|
2003-11-16 21:51:02 +00:00
|
|
|
void TweenSongPartsOffScreen( bool Final );
|
2003-07-20 05:13:45 +00:00
|
|
|
void TweenCoursePartsOnScreen( bool Initial );
|
2003-11-16 21:51:02 +00:00
|
|
|
void TweenCoursePartsOffScreen( bool Final );
|
2003-07-20 05:13:45 +00:00
|
|
|
void SkipSongPartTweens();
|
|
|
|
|
void SkipCoursePartTweens();
|
2002-08-28 22:42:40 +00:00
|
|
|
|
2002-09-04 03:49:08 +00:00
|
|
|
void EasierDifficulty( PlayerNumber pn );
|
|
|
|
|
void HarderDifficulty( PlayerNumber pn );
|
2002-05-28 20:01:22 +00:00
|
|
|
|
2002-09-04 03:49:08 +00:00
|
|
|
void AfterNotesChange( PlayerNumber pn );
|
2003-06-25 06:30:13 +00:00
|
|
|
void SwitchToPreferredDifficulty();
|
2002-05-20 08:59:37 +00:00
|
|
|
void AfterMusicChange();
|
2002-08-20 21:00:56 +00:00
|
|
|
void SortOrderChanged();
|
2002-05-20 08:59:37 +00:00
|
|
|
|
2002-08-01 13:42:56 +00:00
|
|
|
void UpdateOptionsDisplays();
|
|
|
|
|
|
2003-08-03 00:13:55 +00:00
|
|
|
vector<Steps*> m_arrayNotes;
|
2002-08-13 23:26:46 +00:00
|
|
|
int m_iSelection[NUM_PLAYERS];
|
2002-05-20 08:59:37 +00:00
|
|
|
|
2002-08-13 23:26:46 +00:00
|
|
|
MenuElements m_Menu;
|
2002-05-20 08:59:37 +00:00
|
|
|
|
2003-11-21 04:35:06 +00:00
|
|
|
Sprite m_sprCharacterIcon[NUM_PLAYERS];
|
2003-05-15 06:09:19 +00:00
|
|
|
Sprite m_sprBannerMask;
|
2002-08-13 23:26:46 +00:00
|
|
|
FadingBanner m_Banner;
|
2003-11-14 17:56:10 +00:00
|
|
|
AutoActor m_sprBannerFrame;
|
2002-08-13 23:26:46 +00:00
|
|
|
BPMDisplay m_BPMDisplay;
|
2003-03-10 00:16:49 +00:00
|
|
|
Sprite m_sprStage;
|
2003-05-20 05:31:38 +00:00
|
|
|
Sprite m_sprCDTitleFront, m_sprCDTitleBack;
|
2002-09-03 06:33:08 +00:00
|
|
|
Sprite m_sprDifficultyFrame[NUM_PLAYERS];
|
2002-08-13 23:26:46 +00:00
|
|
|
DifficultyIcon m_DifficultyIcon[NUM_PLAYERS];
|
2003-01-11 08:55:21 +00:00
|
|
|
Sprite m_AutoGenIcon[NUM_PLAYERS];
|
2003-01-12 18:41:24 +00:00
|
|
|
GrooveRadar m_GrooveRadar;
|
2003-04-22 08:43:12 +00:00
|
|
|
GrooveGraph m_GrooveGraph;
|
2002-08-13 23:26:46 +00:00
|
|
|
BitmapText m_textSongOptions;
|
2002-09-03 06:33:08 +00:00
|
|
|
OptionIconRow m_OptionIconRow[NUM_PLAYERS];
|
|
|
|
|
Sprite m_sprMeterFrame[NUM_PLAYERS];
|
2004-01-22 04:31:31 +00:00
|
|
|
Sprite m_sprNonPresence[NUM_PLAYERS];
|
2003-03-09 00:55:49 +00:00
|
|
|
DifficultyMeter m_DifficultyMeter[NUM_PLAYERS];
|
2002-08-13 23:26:46 +00:00
|
|
|
MusicSortDisplay m_MusicSortDisplay;
|
|
|
|
|
Sprite m_sprHighScoreFrame[NUM_PLAYERS];
|
2003-03-28 23:13:32 +00:00
|
|
|
BitmapText m_textHighScore[NUM_PLAYERS];
|
2002-08-13 23:26:46 +00:00
|
|
|
MusicWheel m_MusicWheel;
|
2003-11-18 21:55:29 +00:00
|
|
|
AutoActor m_MusicWheelUnder;
|
2003-04-21 22:26:07 +00:00
|
|
|
Sprite m_sprBalloon;
|
2003-06-18 07:10:03 +00:00
|
|
|
DifficultyDisplay m_DifficultyDisplay;
|
2003-11-17 04:29:14 +00:00
|
|
|
DifficultyList m_DifficultyList;
|
2003-07-20 05:13:45 +00:00
|
|
|
CourseContentsList m_CourseContentsFrame;
|
2003-11-17 02:52:03 +00:00
|
|
|
HelpDisplay m_Artist;
|
2003-11-17 04:12:20 +00:00
|
|
|
BitmapText m_MachineRank;
|
2003-11-17 06:13:12 +00:00
|
|
|
PaneDisplay m_PaneDisplay[NUM_PLAYERS];
|
2002-05-20 08:59:37 +00:00
|
|
|
|
2002-08-13 23:26:46 +00:00
|
|
|
bool m_bMadeChoice;
|
|
|
|
|
bool m_bGoToOptions;
|
2002-09-22 18:18:50 +00:00
|
|
|
Sprite m_sprOptionsMessage;
|
2002-10-06 16:56:58 +00:00
|
|
|
float m_fPlaySampleCountdown;
|
2003-12-18 08:53:38 +00:00
|
|
|
CString m_sSampleMusicToPlay, m_sSampleMusicTimingData;
|
2003-03-25 22:23:58 +00:00
|
|
|
float m_fSampleStartSeconds, m_fSampleLengthSeconds;
|
2003-02-10 22:10:12 +00:00
|
|
|
bool m_bAllowOptionsMenu, m_bAllowOptionsMenuRepeat;
|
2002-05-20 08:59:37 +00:00
|
|
|
|
2003-12-19 09:30:54 +00:00
|
|
|
BGAnimation m_bgOverlay;
|
2004-02-19 03:56:50 +00:00
|
|
|
Transition m_bgOptionsOut;
|
|
|
|
|
Transition m_bgNoOptionsOut;
|
2003-12-19 09:30:54 +00:00
|
|
|
|
2003-01-02 08:13:34 +00:00
|
|
|
RageSound m_soundSelect;
|
2004-01-10 21:35:39 +00:00
|
|
|
RageSound m_soundDifficultyEasier;
|
|
|
|
|
RageSound m_soundDifficultyHarder;
|
2003-01-02 08:13:34 +00:00
|
|
|
RageSound m_soundOptionsChange;
|
|
|
|
|
RageSound m_soundLocked;
|
2002-05-20 08:59:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|