2002-01-16 10:01:32 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
File: TipDisplay.h
|
|
|
|
|
|
|
|
|
|
Desc: A graphic displayed in the TipDisplay during Dancing.
|
|
|
|
|
|
2002-05-19 01:59:48 +00:00
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
2002-01-16 10:01:32 +00:00
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _TipDisplay_H_
|
|
|
|
|
#define _TipDisplay_H_
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "Sprite.h"
|
|
|
|
|
#include "Song.h"
|
|
|
|
|
#include "ActorFrame.h"
|
|
|
|
|
#include "BitmapText.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TipDisplay : public ActorFrame
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
TipDisplay();
|
|
|
|
|
void SetTips( CStringArray &arrayTips );
|
|
|
|
|
|
2002-02-24 01:43:11 +00:00
|
|
|
virtual void Update( float fDeltaTime );
|
2002-01-16 10:01:32 +00:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
BitmapText m_textTip;
|
|
|
|
|
|
|
|
|
|
CStringArray m_arrayTips;
|
|
|
|
|
int iLastTipShown;
|
|
|
|
|
|
|
|
|
|
enum TipState { STATE_FADING_IN, STATE_SHOWING, STATE_FADING_OUT };
|
|
|
|
|
TipState m_TipState;
|
|
|
|
|
float m_fTimeLeftInState;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|