Files
itgmania212121/stepmania/src/MenuElements.h
T

60 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"
2002-05-27 08:23:27 +00:00
#include "MenuTimer.h"
2003-04-13 01:09:19 +00:00
#include "Transition.h"
2003-03-30 18:12:57 +00:00
#include "HelpDisplay.h"
2002-09-29 05:06:18 +00:00
#include "BGAnimation.h"
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-04-12 06:16:12 +00:00
CString m_sName;
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;
2003-03-30 18:12:57 +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