Files
itgmania212121/stepmania/src/ScreenTitleMenu.h
T

62 lines
1.4 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"
#include "RageTimer.h"
2003-09-27 01:55:04 +00:00
#include "ScreenSelect.h"
2002-05-20 08:59:37 +00:00
2003-09-27 01:55:04 +00:00
#define MAX_MODE_CHOICES 30
2002-05-20 08:59:37 +00:00
2003-09-27 01:55:04 +00:00
class ScreenTitleMenu : public ScreenSelect
2002-05-20 08:59:37 +00:00
{
public:
2003-09-27 22:30:51 +00:00
ScreenTitleMenu( CString sName );
2002-05-20 08:59:37 +00:00
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 );
private:
2003-09-27 01:55:04 +00:00
int GetSelectionIndex( PlayerNumber pn ) { return m_Choice; }
void UpdateSelectableChoices();
2002-05-20 08:59:37 +00:00
void GainFocus( int iChoiceIndex );
void LoseFocus( int iChoiceIndex );
2003-09-26 09:03:48 +00:00
void MoveCursor( bool up );
2002-05-20 08:59:37 +00:00
2003-09-27 01:55:04 +00:00
unsigned m_Choice;
2002-05-20 08:59:37 +00:00
Sprite m_sprLogo;
BitmapText m_textVersion;
BitmapText m_textSongs;
BitmapText m_textHelp;
2003-09-27 01:55:04 +00:00
BitmapText m_textChoice[MAX_MODE_CHOICES];
2002-05-20 08:59:37 +00:00
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;
2003-09-27 01:55:04 +00:00
Transition m_AttractOut;
2002-05-20 08:59:37 +00:00
};