Files
itgmania212121/src/ScreenWithMenuElements.h
T

103 lines
3.0 KiB
C++
Raw Normal View History

#ifndef ScreenWithMenuElements_H
#define ScreenWithMenuElements_H
2002-05-19 01:59:48 +00:00
#include "Screen.h"
2003-04-13 01:09:19 +00:00
#include "Transition.h"
2003-11-04 21:49:38 +00:00
#include "ActorUtil.h"
#include "ThemeMetric.h"
2003-11-07 20:10:38 +00:00
class MenuTimer;
class MemoryCardDisplay;
class ScreenWithMenuElements : public Screen
{
public:
2006-01-15 18:54:03 +00:00
ScreenWithMenuElements();
virtual void Init();
virtual void BeginScreen();
virtual ~ScreenWithMenuElements();
virtual void HandleScreenMessage( const ScreenMessage SM );
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
// Sub-classes can hook these and do special actions that won't be triggered automatically by an "On"/"Off" command
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();
2007-03-05 23:27:15 +00:00
void SetHelpText( RString s );
2005-03-22 22:53:39 +00:00
AutoActor m_sprUnderlay;
2006-03-13 23:10:22 +00:00
MemoryCardDisplay *m_MemoryCardDisplay[NUM_PLAYERS];
2003-11-07 20:10:38 +00:00
MenuTimer *m_MenuTimer;
2005-01-05 04:32:12 +00:00
AutoActor m_sprOverlay;
vector<Actor*> m_vDecorations;
2006-03-13 23:10:22 +00:00
Transition m_In;
Transition m_Out;
Transition m_Cancel;
2006-03-13 23:10:22 +00:00
ThemeMetric<bool> PLAY_MUSIC;
ThemeMetric<bool> MUSIC_ALIGN_BEAT;
2006-03-13 23:10:22 +00:00
ThemeMetric<bool> CANCEL_TRANSITIONS_OUT;
ThemeMetric<float> TIMER_SECONDS;
2008-03-26 06:06:00 +00:00
ThemeMetric<RString> TIMER_METRICS_GROUP;
ThemeMetric<bool> RESET_GAMESTATE;
2005-09-22 01:17:35 +00:00
private:
2006-03-13 23:10:22 +00:00
RString m_sPathToMusic;
};
2006-06-24 18:06:05 +00:00
class ScreenWithMenuElementsSimple: public ScreenWithMenuElements
{
public:
2006-09-15 01:47:24 +00:00
void MenuStart( const InputEventPlus &input );
void MenuBack( const InputEventPlus &input );
2006-06-24 18:06:05 +00:00
//
// Lua
//
virtual void PushSelf( lua_State *L );
protected:
};
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.
*/