Files
itgmania212121/stepmania/src/MenuTimer.h
T

50 lines
1.1 KiB
C++
Raw Normal View History

#ifndef MENUTIMER_H
#define MENUTIMER_H
2002-05-27 08:23:27 +00:00
/*
-----------------------------------------------------------------------------
Class: MenuTimer
Desc: A timer in the upper right corner of the menu that ticks down.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "Sprite.h"
2003-02-16 04:28:17 +00:00
#include "song.h"
2002-05-27 08:23:27 +00:00
#include "ActorFrame.h"
#include "BitmapText.h"
2003-01-02 08:13:34 +00:00
#include "RageSound.h"
2002-05-27 08:23:27 +00:00
class MenuTimer : public ActorFrame
{
public:
MenuTimer();
virtual void Update( float fDeltaTime );
2003-03-11 21:33:11 +00:00
void SetSeconds( int iTimerSeconds );
void Start(); // resume countdown from paused
void Pause(); // don't count down
void Stop(); // set to "00" and pause
void Disable(); // set to "99" and pause
void Stall(); // pause countdown for a sec
void EnableStealth( bool bStealth ); // make timer invisible and silent
2002-05-27 08:23:27 +00:00
protected:
float m_fSecondsLeft;
2002-07-11 19:02:26 +00:00
float m_fStallSeconds;
2003-03-11 21:33:11 +00:00
bool m_bPaused;
2002-07-11 19:02:26 +00:00
2003-03-11 21:33:11 +00:00
void SetText( int iSeconds );
2002-05-27 08:23:27 +00:00
BitmapText m_textDigit1;
BitmapText m_textDigit2;
2002-05-28 20:01:22 +00:00
2003-01-02 08:13:34 +00:00
RageSound m_soundBeep;
2002-05-27 08:23:27 +00:00
};
#endif