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:
Glenn Maynard
2005-12-07 05:43:49 +00:00
parent 32129814b7
commit 42ac54c4a5
6 changed files with 22 additions and 25 deletions
+2 -2
View File
@@ -115,10 +115,10 @@ void HighScoreWheel::Load( const HighScoreList& hsl, int iIndexToFocus )
" self:y(math.sin(radians)*90); "
" self:z(math.cos(radians)*90); "
"end";
ActorScroller::Load3(
ActorScroller::Load2(
10.5,
sTransformFunction,
false );
ActorScroller::SetTransformFromExpression( sTransformFunction );
ActorScroller::SetSecondsPerItem( 0.2f );
Scroll();
}