add ScoreDisplayPercentage

This commit is contained in:
Glenn Maynard
2003-10-04 09:14:25 +00:00
parent 72324aade3
commit 5be698590c
2 changed files with 36 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#include "global.h"
#include "ScoreDisplayPercentage.h"
#include "ThemeManager.h"
ScoreDisplayPercentage::ScoreDisplayPercentage()
{
m_sprFrame.Load( THEME->GetPathToG("ScoreDisplayNormal frame") );
this->AddChild( &m_sprFrame );
m_Percent.SetName( "ScoreDisplayPercentage Percent" );
this->AddChild( &m_Percent );
}
void ScoreDisplayPercentage::Init( PlayerNumber pn )
{
m_Percent.Load( pn );
}
+18
View File
@@ -0,0 +1,18 @@
#ifndef SCORE_DISPLAY_PERCENTAGE_H
#define SCORE_DISPLAY_PERCENTAGE_H
#include "ScoreDisplay.h"
#include "PercentageDisplay.h"
class ScoreDisplayPercentage : public ScoreDisplay
{
public:
ScoreDisplayPercentage();
void Init( PlayerNumber pn );
private:
PercentageDisplay m_Percent;
Sprite m_sprFrame;
};
#endif