60 lines
1.3 KiB
C++
60 lines
1.3 KiB
C++
#ifndef MENUELEMENTS_H
|
|
#define MENUELEMENTS_H
|
|
/*
|
|
-----------------------------------------------------------------------------
|
|
File: MenuElements.h
|
|
|
|
Desc: Displays common components of menu screens:
|
|
Background, Top Bar, Bottom Bar, help message, credits or PlayerOptions, style icon,
|
|
Menu Timer
|
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
-----------------------------------------------------------------------------
|
|
*/
|
|
|
|
#include "Screen.h"
|
|
#include "Sprite.h"
|
|
#include "MenuTimer.h"
|
|
#include "Transition.h"
|
|
#include "HelpDisplay.h"
|
|
#include "BGAnimation.h"
|
|
|
|
|
|
class MenuElements : public ActorFrame
|
|
{
|
|
public:
|
|
MenuElements();
|
|
|
|
virtual void DrawPrimitives();
|
|
|
|
void Load( CString sClassName, bool bEnableTimer = true, bool bLoadStyleIcon = true );
|
|
|
|
void DrawTopLayer();
|
|
void DrawBottomLayer();
|
|
|
|
void StartTransitioning( ScreenMessage smSendWhenDone );
|
|
void Back( ScreenMessage smSendWhenDone );
|
|
void Update( float fDeltaTime );
|
|
bool IsTransitioning();
|
|
|
|
public: // let owner tinker with these objects
|
|
|
|
CString m_sName;
|
|
|
|
BGAnimation m_Background;
|
|
|
|
Sprite m_sprHeader;
|
|
Sprite m_sprStyleIcon;
|
|
MenuTimer m_MenuTimer;
|
|
Sprite m_sprFooter;
|
|
HelpDisplay m_textHelp;
|
|
|
|
Transition m_In;
|
|
Transition m_Out;
|
|
Transition m_Back;
|
|
|
|
RageSound m_soundBack;
|
|
};
|
|
|
|
#endif
|