Let NoteSkin manager look for BGAnimation directories

This commit is contained in:
Chris Danford
2004-03-01 05:58:19 +00:00
parent 6caa34faff
commit 590cf4f690
4 changed files with 33 additions and 0 deletions
+18
View File
@@ -170,6 +170,23 @@ void NoteField::Update( float fDeltaTime )
m_fPercentFadeToFail = min( m_fPercentFadeToFail + fDeltaTime/1.5f, 1 ); // take 1.5 seconds to totally fade
RefreshBeatToNoteSkin();
//
// update all NoteDisplayCols. NoteDisplay's may contain BGAnimations
// that need to be updated.
//
for( NDMap::iterator iter = m_BeatToNoteDisplays.begin();
iter != m_BeatToNoteDisplays.end();
iter++ )
{
NoteDisplayCols *nd = iter->second;
for( int c=0; c<GetNumTracks(); c++ ) // for each arrow column
nd->display[c].Update(fDeltaTime);
// nd->m_ReceptorArrowRow.Update(fDeltaTime);
// nd->m_GhostArrowRow.Update(fDeltaTime);
}
}
float NoteField::GetWidth()
@@ -500,6 +517,7 @@ void NoteField::DrawPrimitives()
}
//
// Optimization is very important here because there are so many arrows to draw.
// Draw the arrows in order of column. This minimize texture switches and let us