Files
itgmania212121/stepmania/src/MenuElements.h
T

62 lines
1.3 KiB
C++
Raw Normal View History

#ifndef MENUELEMENTS_H
#define MENUELEMENTS_H
/*
-----------------------------------------------------------------------------
File: MenuElements.h
2002-05-27 08:23:27 +00:00
Desc: Displays common components of menu screens:
Background, Top Bar, Bottom Bar, help message, credits or PlayerOptions, style icon,
Menu Timer
2002-05-19 01:59:48 +00:00
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
-----------------------------------------------------------------------------
*/
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"
2002-09-29 05:06:18 +00:00
#include "BGAnimation.h"
2003-11-04 21:49:38 +00:00
#include "ActorUtil.h"
2003-11-07 20:10:38 +00:00
#include "RageSound.h"
2003-11-07 20:10:38 +00:00
class MenuTimer;
2003-11-17 01:01:44 +00:00
class HelpDisplay;
class MenuElements : public ActorFrame
{
public:
MenuElements();
2003-11-07 20:10:38 +00:00
virtual ~MenuElements();
2002-05-19 01:59:48 +00:00
virtual void DrawPrimitives();
void Load( CString sClassName );
void DrawTopLayer();
void DrawBottomLayer();
2003-03-09 00:55:49 +00:00
void StartTransitioning( ScreenMessage smSendWhenDone );
void Back( ScreenMessage smSendWhenDone );
void Update( float fDeltaTime );
2003-03-09 00:55:49 +00:00
bool IsTransitioning();
bool m_bTimerEnabled;
2003-11-07 20:10:38 +00:00
void StopTimer();
2003-03-09 00:55:49 +00:00
public: // let owner tinker with these objects
BGAnimation m_Background;
2003-11-04 21:49:38 +00:00
AutoActor m_autoHeader;
Sprite m_sprStyleIcon;
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;
2003-04-13 01:09:19 +00:00
Transition m_In;
Transition m_Out;
Transition m_Back;
2002-05-27 08:23:27 +00:00
2003-01-02 08:13:34 +00:00
RageSound m_soundBack;
};
#endif