in the middle of working on 1.70. Now compiles in Visual Studio.net
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
-----------------------------------------------------------------------------
|
||||
File: MenuElements.h
|
||||
|
||||
Desc: Base class for menu Windows.
|
||||
|
||||
Copyright (c) 2001 Chris Danford. All rights reserved.
|
||||
-----------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef _MenuElements_H_
|
||||
#define _MenuElements_H_
|
||||
|
||||
|
||||
|
||||
#include "Window.h"
|
||||
#include "Sprite.h"
|
||||
#include "BitmapText.h"
|
||||
#include "RandomSample.h"
|
||||
#include "TransitionFade.h"
|
||||
|
||||
|
||||
const float MENU_ELEMENTS_TWEEN_TIME = 0.30f;
|
||||
|
||||
|
||||
class MenuElements : public ActorFrame
|
||||
{
|
||||
public:
|
||||
MenuElements();
|
||||
|
||||
virtual void RenderPrimitives();
|
||||
|
||||
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();
|
||||
|
||||
|
||||
Sprite m_sprBG;
|
||||
Sprite m_sprTopEdge;
|
||||
Sprite m_sprBottomEdge;
|
||||
BitmapText m_textHelp;
|
||||
|
||||
RandomSample m_soundSwoosh;
|
||||
RandomSample m_soundBack;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user