2002-11-16 08:07:38 +00:00
|
|
|
#ifndef MENUELEMENTS_H
|
|
|
|
|
#define MENUELEMENTS_H
|
2002-03-30 20:00:13 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
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-03-30 20:00:13 +00:00
|
|
|
|
2002-05-19 01:59:48 +00:00
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
2002-03-30 20:00:13 +00:00
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
2002-05-19 01:59:48 +00:00
|
|
|
#include "Screen.h"
|
2002-03-30 20:00:13 +00:00
|
|
|
#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"
|
2002-03-30 20:00:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class MenuElements : public ActorFrame
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
MenuElements();
|
|
|
|
|
|
2002-05-19 01:59:48 +00:00
|
|
|
virtual void DrawPrimitives();
|
2002-03-30 20:00:13 +00:00
|
|
|
|
2003-03-09 00:55:49 +00:00
|
|
|
void Load( CString sClassName, bool bEnableTimer = true, bool bLoadStyleIcon = true );
|
2002-03-30 20:00:13 +00:00
|
|
|
|
|
|
|
|
void DrawTopLayer();
|
|
|
|
|
void DrawBottomLayer();
|
|
|
|
|
|
2003-03-09 00:55:49 +00:00
|
|
|
void StartTransitioning( ScreenMessage smSendWhenDone );
|
|
|
|
|
void Back( ScreenMessage smSendWhenDone );
|
2003-03-25 01:37:33 +00:00
|
|
|
void Update( float fDeltaTime );
|
2003-03-09 00:55:49 +00:00
|
|
|
bool IsTransitioning();
|
2002-03-30 20:00:13 +00:00
|
|
|
|
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;
|
2002-03-30 20:00:13 +00:00
|
|
|
|
2003-03-09 00:55:49 +00:00
|
|
|
BGAnimation m_Background;
|
2002-03-30 20:00:13 +00:00
|
|
|
|
2003-03-09 00:55:49 +00:00
|
|
|
Sprite m_sprHeader;
|
2002-09-23 07:35:47 +00:00
|
|
|
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;
|
2002-03-30 20:00:13 +00:00
|
|
|
|
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;
|
2002-03-30 20:00:13 +00:00
|
|
|
};
|
2002-11-16 08:07:38 +00:00
|
|
|
|
|
|
|
|
#endif
|