simplify ActorScroller::Load2

This commit is contained in:
Glenn Maynard
2005-12-07 03:50:11 +00:00
parent 7c65f28e44
commit 24dd9f52a5
4 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -38,12 +38,11 @@ ActorScroller::ActorScroller()
}
void ActorScroller::Load2(
float fSecondsPerItem,
float fNumItemsToDraw,
float fItemHeight,
bool bLoop )
{
Load3( fSecondsPerItem, fNumItemsToDraw,
Load3( 0, fNumItemsToDraw,
ssprintf("function(self,offset,itemIndex,numItems) self:y(%f*offset) end",fItemHeight), 1, bLoop );
}
-1
View File
@@ -14,7 +14,6 @@ public:
ActorScroller();
void Load2(
float fSecondsPerItem,
float fNumItemsToDraw,
float fItemHeight,
bool bLoop );
+1 -1
View File
@@ -78,10 +78,10 @@ void CourseContentsList::SetFromGameState()
bool bLoop = pMasterTrail->m_vEntries.size() > uNumEntriesToShow;
this->Load2(
0.7f,
(float)MAX_VISIBLE_ITEMS,
m_vpDisplay[0]->GetUnzoomedHeight(),
bLoop );
this->SetSecondsPerItem( 0.7f );
this->EnableMask( m_vpDisplay[0]->GetUnzoomedWidth(), m_vpDisplay[0]->GetUnzoomedHeight() );
this->SetSecondsPauseBetweenItems( 0.7f );
this->ScrollThroughAllItems();
+2 -1
View File
@@ -365,7 +365,8 @@ void ScoreScroller::Load(
for( int i=0; i<iNumCopies; ++i )
this->AddChild( new ScoreRowItem(ItemTemplate) );
DynamicActorScroller::Load2( SONG_SCORE_SECONDS_PER_ROW, (float) m_metricSongScoreRowsToDraw, fItemHeight, false );
DynamicActorScroller::Load2( (float) m_metricSongScoreRowsToDraw, fItemHeight, false );
DynamicActorScroller::SetSecondsPerItem( SONG_SCORE_SECONDS_PER_ROW );
DynamicActorScroller::EnableMask( SCREEN_WIDTH, fItemHeight );
DynamicActorScroller::ScrollThroughAllItems();