Files
itgmania212121/stepmania/src/ScreenTitleMenu.h
T

73 lines
1.7 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 "Sprite.h"
#include "BitmapText.h"
#include "TransitionFade.h"
#include "RandomSample.h"
2002-09-29 05:06:18 +00:00
#include "BGAnimation.h"
2002-05-20 08:59:37 +00:00
class ScreenTitleMenu : public Screen
{
public:
ScreenTitleMenu();
virtual ~ScreenTitleMenu();
virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );
virtual void HandleScreenMessage( const ScreenMessage SM );
enum TitleMenuChoice {
2002-05-28 20:01:22 +00:00
CHOICE_GAME_START = 0,
2002-05-20 08:59:37 +00:00
CHOICE_SELECT_GAME,
CHOICE_MAP_INSTRUMENTS,
CHOICE_INPUT_OPTIONS,
CHOICE_MACHINE_OPTIONS,
CHOICE_GRAPHIC_OPTIONS,
2002-07-11 19:02:26 +00:00
CHOICE_APPEARANCE_OPTIONS,
2002-05-20 08:59:37 +00:00
CHOICE_EDIT,
2002-11-19 22:55:51 +00:00
#ifdef _DEBUG
CHOICE_SANDBOX,
#endif
2002-05-20 08:59:37 +00:00
CHOICE_EXIT,
NUM_TITLE_MENU_CHOICES // leave this at the end!
};
private:
void GainFocus( int iChoiceIndex );
void LoseFocus( int iChoiceIndex );
void MenuUp( PlayerNumber pn );
void MenuDown( PlayerNumber pn );
void MenuBack( PlayerNumber pn );
void MenuStart( PlayerNumber pn );
2002-05-20 08:59:37 +00:00
TitleMenuChoice m_TitleMenuChoice;
2002-09-29 05:06:18 +00:00
BGAnimation m_Background;
Sprite m_sprLogo;
BitmapText m_textHelp;
BitmapText m_textVersion;
BitmapText m_textSongs;
BitmapText m_textChoice[NUM_TITLE_MENU_CHOICES];
2002-05-20 08:59:37 +00:00
TransitionFade m_Fade;
2002-05-20 08:59:37 +00:00
2003-01-02 07:10:18 +00:00
RandomSample m_soundAttract;
2002-05-20 08:59:37 +00:00
RandomSample m_soundChange;
RandomSample m_soundSelect;
RandomSample m_soundInvalid;
};