Files
itgmania212121/stepmania/src/ScreenSetTime.h
T

75 lines
2.4 KiB
C++
Raw Normal View History

2004-06-08 05:22:33 +00:00
#ifndef SCREEN_SET_TIME_H
#define SCREEN_SET_TIME_H
2004-03-14 06:39:39 +00:00
#include "ScreenWithMenuElements.h"
2004-03-14 06:39:39 +00:00
#include "BitmapText.h"
2006-11-21 17:57:06 +00:00
#include "RageSound.h"
2004-03-14 06:39:39 +00:00
2004-04-18 21:32:36 +00:00
enum SetTimeSelection
{
year,
month,
day,
hour,
minute,
second,
2006-09-26 20:41:53 +00:00
NUM_SetTimeSelection,
SetTimeSelection_Invalid
2004-04-18 21:32:36 +00:00
};
2004-03-14 06:39:39 +00:00
class ScreenSetTime : public ScreenWithMenuElements
2004-03-14 06:39:39 +00:00
{
public:
virtual void Init();
2004-03-14 06:39:39 +00:00
virtual void Update( float fDelta );
virtual void Input( const InputEventPlus &input );
2004-03-14 06:39:39 +00:00
virtual void MenuUp( const InputEventPlus &input );
virtual void MenuDown( const InputEventPlus &input );
virtual void MenuLeft( const InputEventPlus &input );
virtual void MenuRight( const InputEventPlus &input );
virtual void MenuStart( const InputEventPlus &input );
virtual void MenuSelect( const InputEventPlus &input );
virtual void MenuBack( const InputEventPlus &input );
2004-03-14 06:39:39 +00:00
private:
2004-04-18 21:32:36 +00:00
SetTimeSelection m_Selection;
time_t m_TimeOffset;
2004-03-14 06:39:39 +00:00
void ChangeSelection( int iDirection );
void ChangeValue( int iDirection );
2006-11-21 17:57:06 +00:00
RageSound m_soundChangeValue;
RageSound m_soundChangeSelection;
2006-09-26 20:41:53 +00:00
BitmapText m_textTitle[NUM_SetTimeSelection];
BitmapText m_textValue[NUM_SetTimeSelection];
2004-03-14 06:39:39 +00:00
BitmapText m_textDayOfWeek;
};
2004-06-08 05:22:33 +00:00
#endif
/*
* (c) 2004 Chris Danford
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, and/or sell copies of the Software, and to permit persons to
* whom the Software is furnished to do so, provided that the above
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/