add ScoreDisplayPercentage
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user