2003-05-13 13:35:32 +00:00
|
|
|
#ifndef MeterDisplay_H
|
|
|
|
|
#define MeterDisplay_H
|
|
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
File: MeterDisplay.h
|
|
|
|
|
|
|
|
|
|
Desc:
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
|
|
|
Chris Danford
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
2004-01-12 01:43:38 +00:00
|
|
|
#include "ActorFrame.h"
|
2003-05-13 13:35:32 +00:00
|
|
|
#include "Sprite.h"
|
2004-01-20 03:32:48 +00:00
|
|
|
#include "ActorUtil.h"
|
2003-05-13 13:35:32 +00:00
|
|
|
|
|
|
|
|
|
2004-01-12 01:43:38 +00:00
|
|
|
class MeterDisplay : public ActorFrame
|
2003-05-13 13:35:32 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2003-06-30 18:08:27 +00:00
|
|
|
MeterDisplay();
|
2004-01-24 22:17:45 +00:00
|
|
|
void Load( CString sStreamPath, float fStreamWidth, CString sTipPath );
|
2003-05-13 13:35:32 +00:00
|
|
|
|
|
|
|
|
void SetPercent( float fPercent );
|
|
|
|
|
|
2004-01-12 01:43:38 +00:00
|
|
|
private:
|
2003-05-13 13:35:32 +00:00
|
|
|
float m_fStreamWidth;
|
|
|
|
|
float m_fPercent;
|
2003-06-30 18:08:27 +00:00
|
|
|
Sprite m_sprStream;
|
2004-01-20 03:32:48 +00:00
|
|
|
AutoActor m_sprTip;
|
2003-05-13 13:35:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|