Files
itgmania212121/stepmania/src/ScreenSetTime.h
T

57 lines
1.4 KiB
C++
Raw Normal View History

2004-03-14 06:39:39 +00:00
/*
-----------------------------------------------------------------------------
Class: ScreenSetTime
Desc: Show coin drop stats.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "ScreenWithMenuElements.h"
2004-03-14 06:39:39 +00:00
#include "Sprite.h"
#include "BitmapText.h"
#include "PrefsManager.h"
#include "InputMapper.h"
#include "RageInputDevice.h"
2004-04-18 21:32:36 +00:00
enum SetTimeSelection
{
year,
month,
day,
hour,
minute,
second,
NUM_SET_TIME_SELECTIONS
};
2004-03-14 06:39:39 +00:00
class ScreenSetTime : public ScreenWithMenuElements
2004-03-14 06:39:39 +00:00
{
public:
ScreenSetTime( CString sName );
virtual void Update( float fDelta );
virtual void DrawPrimitives();
virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );
virtual void HandleScreenMessage( const ScreenMessage SM );
virtual void MenuUp( PlayerNumber pn );
virtual void MenuDown( PlayerNumber pn );
virtual void MenuLeft( PlayerNumber pn );
virtual void MenuRight( PlayerNumber pn );
virtual void MenuStart( PlayerNumber pn );
virtual void MenuBack( PlayerNumber pn );
private:
2004-04-18 21:32:36 +00:00
SetTimeSelection m_Selection;
2004-03-14 06:39:39 +00:00
void ChangeSelection( int iDirection );
void ChangeValue( int iDirection );
2004-04-18 21:32:36 +00:00
BitmapText m_textTitle[NUM_SET_TIME_SELECTIONS];
BitmapText m_textValue[NUM_SET_TIME_SELECTIONS];
2004-03-14 06:39:39 +00:00
BitmapText m_textDayOfWeek;
};