Files
itgmania212121/stepmania/src/MenuElements.h
T

66 lines
1.4 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"
2002-05-27 08:23:27 +00:00
#include "MenuTimer.h"
2003-03-09 00:55:49 +00:00
#include "TransitionBGAnimation.h"
2002-07-23 01:41:40 +00:00
#include "TipDisplay.h"
2002-09-29 05:06:18 +00:00
#include "BGAnimation.h"
2002-07-28 20:28:37 +00:00
const float MENU_ELEMENTS_TWEEN_TIME = 0.5f;
class MenuElements : public ActorFrame
{
public:
MenuElements();
2002-05-19 01:59:48 +00:00
virtual void DrawPrimitives();
2003-03-09 00:55:49 +00:00
void Load( CString sClassName, bool bEnableTimer = true, bool bLoadStyleIcon = true );
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();
2003-03-09 00:55:49 +00:00
public: // let owner tinker with these objects
2002-05-28 20:01:22 +00:00
2003-03-09 00:55:49 +00:00
CString m_sClassName;
2003-03-09 00:55:49 +00:00
BGAnimation m_Background;
2003-03-09 00:55:49 +00:00
Sprite m_sprHeader;
Sprite m_sprStyleIcon;
MenuTimer m_MenuTimer;
2003-03-09 00:55:49 +00:00
Sprite m_sprFooter;
TipDisplay m_textHelp;
2003-03-09 00:55:49 +00:00
TransitionBGAnimation m_In;
TransitionBGAnimation m_Out;
TransitionBGAnimation m_Back;
2002-05-27 08:23:27 +00:00
2003-01-02 08:13:34 +00:00
RageSound m_soundBack;
bool m_bStartedTransitionIn;
};
#endif