Files
itgmania212121/stepmania/src/ScreenTitleMenu.h
T

95 lines
1.9 KiB
C++
Raw Normal View History

2002-05-20 08:59:37 +00:00
/*
-----------------------------------------------------------------------------
2002-05-28 20:01:22 +00:00
Class: ScreenTitleMenu
2002-05-20 08:59:37 +00:00
Desc: The main title screen and menu.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
2002-05-28 20:01:22 +00:00
Chris Danford
2002-05-20 08:59:37 +00:00
-----------------------------------------------------------------------------
*/
#include "Screen.h"
#include "Transition.h"
2002-05-20 08:59:37 +00:00
#include "Sprite.h"
#include "BitmapText.h"
2003-03-09 00:55:49 +00:00
#include "RageSound.h"
2002-09-29 05:06:18 +00:00
#include "BGAnimation.h"
#include "RageTimer.h"
2003-03-09 00:55:49 +00:00
#include "RandomSample.h"
2002-05-20 08:59:37 +00:00
class ScreenTitleMenu : public Screen
2002-05-20 08:59:37 +00:00
{
public:
ScreenTitleMenu();
virtual ~ScreenTitleMenu();
virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );
virtual void Update( float fDelta );
2002-05-20 08:59:37 +00:00
virtual void HandleScreenMessage( const ScreenMessage SM );
2003-01-31 21:34:34 +00:00
enum Choice
{
2002-05-28 20:01:22 +00:00
CHOICE_GAME_START = 0,
2002-05-20 08:59:37 +00:00
CHOICE_SELECT_GAME,
CHOICE_OPTIONS,
2002-05-20 08:59:37 +00:00
CHOICE_EDIT,
2003-08-10 23:48:10 +00:00
CHOICE_EDIT_COURSES,
2003-01-31 21:34:34 +00:00
CHOICE_JUKEBOX,
2003-02-14 22:24:28 +00:00
#ifdef DEBUG
2002-11-19 22:55:51 +00:00
CHOICE_SANDBOX,
#endif
2002-05-20 08:59:37 +00:00
CHOICE_EXIT,
NUM_CHOICES // leave this at the end!
2002-05-20 08:59:37 +00:00
};
2003-01-31 21:34:34 +00:00
CString ChoiceToString( Choice c )
{
const CString s[NUM_CHOICES] = {
"GAME START",
"SELECT GAME",
"OPTIONS",
"EDIT/SYNC SONGS",
2003-08-10 23:48:10 +00:00
"EDIT COURSES",
2003-01-31 21:34:34 +00:00
"JUKEBOX",
2003-02-14 22:24:28 +00:00
#ifdef DEBUG
2003-01-31 21:34:34 +00:00
"SANDBOX",
#endif
"EXIT"
};
return s[c];
}
2002-05-20 08:59:37 +00:00
private:
void GainFocus( int iChoiceIndex );
void LoseFocus( int iChoiceIndex );
Choice m_Choice;
2002-05-20 08:59:37 +00:00
BGAnimation m_Background;
Sprite m_sprLogo;
BitmapText m_textVersion;
BitmapText m_textSongs;
BitmapText m_textHelp;
BitmapText m_textChoice[NUM_CHOICES];
2002-05-20 08:59:37 +00:00
RandomSample m_soundAttract;
2003-03-09 00:55:49 +00:00
RageSound m_soundChange;
RageSound m_soundSelect;
RageSound m_soundInvalid;
RageTimer TimeToDemonstration;
2003-03-09 00:55:49 +00:00
BGAnimation m_CoinMode;
BGAnimation m_JointPremium;
Transition m_In;
Transition m_Out;
Transition m_BeginOut;
2002-05-20 08:59:37 +00:00
};