EZ2dancer Theme Update

This commit is contained in:
Andrew Livy
2003-10-06 22:20:25 +00:00
parent c744d0aabd
commit bd96d049ff
3 changed files with 13 additions and 0 deletions
+10
View File
@@ -23,7 +23,9 @@ DifficultyRating::DifficultyRating()
pNewSprite->Load( THEME->GetPathToG("Select Music DifficultyRatingIcon") );
m_apSprites.push_back( pNewSprite );
m_apSprites[i]->SetDiffuse( RageColor(1,1,1,0) );
// this->AddChild(m_apSprites[i]);
}
}
DifficultyRating::~DifficultyRating()
@@ -56,6 +58,14 @@ void DifficultyRating::SetDifficulty(int Difficulty)
}
void DifficultyRating::Update(float fDeltaTime)
{
for(int i=0; i<iMaxElements; i++)
{
m_apSprites[i]->Update(fDeltaTime);
}
}
void DifficultyRating::SetOrientation(int Orientation)
{
if(Orientation == ORIENTATION_LEFT)
+1
View File
@@ -24,6 +24,7 @@ public:
void SetDifficulty(int Difficulty);
void SetOrientation(int Orientation);
virtual void DrawPrimitives();
virtual void Update(float fDeltaTime);
private:
int iMaxElements;
int iOrientation;
+2
View File
@@ -481,6 +481,8 @@ void ScreenEz2SelectMusic::MenuStart( PlayerNumber pn )
void ScreenEz2SelectMusic::Update( float fDeltaTime )
{
m_DifficultyRating.Update(fDeltaTime);
if(i_SkipAheadOffset > 0 && RageTimer::GetTimeSinceStart() - LastInputTime < 0.5)
{
m_MusicBannerWheel.SetScanMode(true);