Files
itgmania212121/stepmania/src/MenuElements.h
T
2002-05-27 18:36:01 +00:00

74 lines
1.5 KiB
C++

#pragma once
/*
-----------------------------------------------------------------------------
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 "BitmapText.h"
#include "RandomSample.h"
#include "TransitionFade.h"
#include "MenuTimer.h"
const float MENU_ELEMENTS_TWEEN_TIME = 0.30f;
class MenuElements : public ActorFrame
{
public:
MenuElements();
virtual void DrawPrimitives();
void Load( CString sBackgroundPath, CString sTopEdgePath, CString sHelpText );
void DrawTopLayer();
void DrawBottomLayer();
void TweenTopEdgeOnScreen();
void TweenTopEdgeOffScreen();
void TweenAllOnScreen(); // tween top edge + background
void TweenAllOffScreen();
protected:
void TweenBackgroundOnScreen();
void TweenBackgroundOffScreen();
void SetBackgroundOnScreen();
void SetBackgroundOffScreen();
void SetTopEdgeOnScreen();
void SetTopEdgeOffScreen();
// stuff in the top bar
ActorFrame m_frameTopBar;
Sprite m_sprTopEdge;
Sprite m_sprStyleIcon;
MenuTimer m_MenuTimer;
// stuff in the bottom bar
ActorFrame m_frameBottomBar;
Sprite m_sprBottomEdge;
// stuff in the main frame
Sprite m_sprBG;
BitmapText m_textHelp;
BitmapText m_sprCreditInfo[NUM_PLAYERS];
RageSoundSample m_soundSwoosh;
RageSoundSample m_soundBack;
};