diff --git a/stepmania/src/ScoreDisplayPercentage.cpp b/stepmania/src/ScoreDisplayPercentage.cpp new file mode 100644 index 0000000000..7c823a8e2c --- /dev/null +++ b/stepmania/src/ScoreDisplayPercentage.cpp @@ -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 ); +} diff --git a/stepmania/src/ScoreDisplayPercentage.h b/stepmania/src/ScoreDisplayPercentage.h new file mode 100644 index 0000000000..dd06e3dace --- /dev/null +++ b/stepmania/src/ScoreDisplayPercentage.h @@ -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