Files
itgmania212121/stepmania/src/ScreenNameEntryTraditional.h
T

75 lines
2.0 KiB
C++
Raw Normal View History

2003-10-14 09:51:16 +00:00
/*
-----------------------------------------------------------------------------
Class: ScreenNameEntryTraditional
Desc: Enter you name for a new high score.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "Screen.h"
#include "BitmapText.h"
#include "RandomSample.h"
#include "BGAnimation.h"
#include "MenuElements.h"
#include "GradeDisplay.h"
2003-10-15 04:29:06 +00:00
#include "Banner.h"
2003-10-14 09:51:16 +00:00
class ScreenNameEntryTraditional : public Screen
{
public:
ScreenNameEntryTraditional( CString sName );
~ScreenNameEntryTraditional();
void Update( float fDeltaTime );
void DrawPrimitives();
void HandleScreenMessage( const ScreenMessage SM );
void MenuStart( PlayerNumber pn, const InputEventType type );
void MenuLeft( PlayerNumber pn, const InputEventType type );
void MenuRight( PlayerNumber pn, const InputEventType type );
2003-10-15 04:29:06 +00:00
enum { MAX_DISPLAYED_FEATS=16 };
2003-10-14 09:51:16 +00:00
private:
bool AnyStillEntering() const;
void PositionCharsAndCursor( int pn );
void Finish( PlayerNumber pn );
void UpdateSelectionText( int pn );
2003-10-15 04:29:06 +00:00
void ChangeDisplayedFeat();
2004-02-22 22:44:39 +00:00
void SelectChar( PlayerNumber pn, int c );
2003-10-15 04:29:06 +00:00
int m_NumFeats[NUM_PLAYERS], m_CurFeat[NUM_PLAYERS];
2003-10-14 09:51:16 +00:00
BGAnimation m_Background;
MenuElements m_Menu;
ActorFrame m_Keyboard[NUM_PLAYERS];
Sprite m_sprCursor[NUM_PLAYERS];
vector<BitmapText*> m_textAlphabet[NUM_PLAYERS];
vector<int> m_AlphabetLetter[NUM_PLAYERS];
int m_SelectedChar[NUM_PLAYERS];
2003-10-15 04:29:06 +00:00
/* Feat display: */
GradeDisplay m_Grade[NUM_PLAYERS][MAX_DISPLAYED_FEATS];
BitmapText m_textCategory[NUM_PLAYERS][MAX_DISPLAYED_FEATS];
BitmapText m_textScore[NUM_PLAYERS][MAX_DISPLAYED_FEATS];
Banner m_sprBanner[NUM_PLAYERS][MAX_DISPLAYED_FEATS];
2003-12-18 20:35:37 +00:00
Sprite m_sprBannerFrame[NUM_PLAYERS];
2003-10-15 04:29:06 +00:00
2003-10-14 09:51:16 +00:00
Sprite m_sprNameFrame[NUM_PLAYERS];
2003-10-15 04:29:06 +00:00
RageSound m_soundChange;
2003-10-14 09:51:16 +00:00
RageSound m_soundKey;
BitmapText m_textSelection[NUM_PLAYERS];
wstring m_sSelection[NUM_PLAYERS];
bool m_bStillEnteringName[NUM_PLAYERS];
bool m_bGoToNextScreenWhenCardsRemoved;
2003-10-14 09:51:16 +00:00
};