pull out SetTransformFromExpression/SetTransformFromHeight, so we don't
have two init functions. (Now, we only need two special metrics to init an ActorScroller; the rest can be done by OnCommand.)
This commit is contained in:
@@ -79,8 +79,8 @@ void CourseContentsList::SetFromGameState()
|
||||
|
||||
this->Load2(
|
||||
(float)MAX_VISIBLE_ITEMS,
|
||||
m_vpDisplay[0]->GetUnzoomedHeight(),
|
||||
bLoop );
|
||||
this->SetTransformFromHeight( m_vpDisplay[0]->GetUnzoomedHeight() );
|
||||
this->SetSecondsPerItem( 0.7f );
|
||||
this->EnableMask( m_vpDisplay[0]->GetUnzoomedWidth(), m_vpDisplay[0]->GetUnzoomedHeight() );
|
||||
this->SetSecondsPauseBetweenItems( 0.7f );
|
||||
|
||||
Reference in New Issue
Block a user