Files
itgmania212121/stepmania/src/MenuElements.h
T

73 lines
1.5 KiB
C++
Raw Normal View History

2002-05-27 08:23:27 +00:00
#pragma once
/*
-----------------------------------------------------------------------------
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"
#include "BitmapText.h"
#include "RandomSample.h"
#include "TransitionFade.h"
2002-05-27 08:23:27 +00:00
#include "MenuTimer.h"
const float MENU_ELEMENTS_TWEEN_TIME = 0.30f;
class MenuElements : public ActorFrame
{
public:
MenuElements();
2002-05-19 01:59:48 +00:00
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();
2002-05-27 08:23:27 +00:00
Sprite m_sprBG;
// stuff in the top bar
ActorFrame m_frameTopBar;
Sprite m_sprTopEdge;
MenuTimer m_MenuTimer;
// stuff in the bottom bar
ActorFrame m_frameBottomBar;
Sprite m_sprBottomEdge;
// stuff in the main frame
BitmapText m_textHelp;
2002-05-27 08:23:27 +00:00
2002-05-19 01:59:48 +00:00
RageSoundSample m_soundSwoosh;
RageSoundSample m_soundBack;
};