Files
itgmania212121/stepmania/src/ScreenWithMenuElements.h
T

96 lines
2.8 KiB
C++
Raw Normal View History

#ifndef ScreenWithMenuElements_H
#define ScreenWithMenuElements_H
2002-05-19 01:59:48 +00:00
#include "Screen.h"
#include "Sprite.h"
2003-04-13 01:09:19 +00:00
#include "Transition.h"
2003-11-04 21:49:38 +00:00
#include "ActorUtil.h"
2003-11-07 20:10:38 +00:00
#include "RageSound.h"
#include "MemoryCardDisplay.h"
#include "ThemeMetric.h"
2003-11-07 20:10:38 +00:00
class MenuTimer;
2003-11-17 01:01:44 +00:00
class HelpDisplay;
class MemoryCardDisplay;
class ScreenWithMenuElements : public Screen
{
public:
ScreenWithMenuElements( CString sName );
virtual void Init();
virtual void BeginScreen();
virtual ~ScreenWithMenuElements();
void Update( float fDeltaTime );
void StartTransitioningScreen( ScreenMessage smSendWhenDone );
2005-09-10 20:02:56 +00:00
virtual void Cancel( ScreenMessage smSendWhenDone );
2003-03-09 00:55:49 +00:00
bool IsTransitioning();
2003-11-07 20:10:38 +00:00
void StopTimer();
2004-05-08 06:42:23 +00:00
void ResetTimer();
2003-11-07 20:10:38 +00:00
2005-07-14 22:36:50 +00:00
virtual void TweenOnScreen();
virtual void TweenOffScreen();
2005-07-12 05:44:54 +00:00
//
// Lua
//
virtual void PushSelf( lua_State *L );
protected:
2005-03-22 22:53:39 +00:00
virtual void StartPlayingMusic();
2005-04-26 06:18:17 +00:00
virtual void LoadHelpText();
2005-03-22 22:53:39 +00:00
2005-09-22 01:27:00 +00:00
/* If true, BeginScreen() will run OnCommand on the whole screen, and
* TweenOnScreen will not be called. (Eventually, all screens should
* use this, and this will be removed.) */
virtual bool GenericTweenOn() const { return false; }
AutoActor m_sprUnderlay;
2003-11-04 21:49:38 +00:00
AutoActor m_autoHeader;
Sprite m_sprStyleIcon;
2005-09-08 20:33:28 +00:00
AutoActor m_sprStage;
MemoryCardDisplay *m_MemoryCardDisplay[NUM_PLAYERS];
2003-11-07 20:10:38 +00:00
MenuTimer *m_MenuTimer;
2003-11-04 21:49:38 +00:00
AutoActor m_autoFooter;
2003-11-17 01:01:44 +00:00
HelpDisplay *m_textHelp;
2005-01-05 04:32:12 +00:00
AutoActor m_sprOverlay;
2003-04-13 01:09:19 +00:00
Transition m_In;
Transition m_Out;
Transition m_Cancel;
ThemeMetric<bool> PLAY_MUSIC;
ThemeMetric<float> TIMER_SECONDS;
2005-09-22 01:17:35 +00:00
private:
CString m_sPathToMusic;
};
2004-05-02 01:36:28 +00:00
#endif
2004-06-08 05:22:33 +00:00
/*
* (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.
*/