SetTransformFromReference
This commit is contained in:
@@ -113,9 +113,12 @@ void HighScoreWheel::Load( const HighScoreList& hsl, int iIndexToFocus )
|
|||||||
" self:y(math.sin(radians)*90); "
|
" self:y(math.sin(radians)*90); "
|
||||||
" self:z(math.cos(radians)*90); "
|
" self:z(math.cos(radians)*90); "
|
||||||
"end";
|
"end";
|
||||||
|
LuaReference ref;
|
||||||
|
ref.SetFromExpression( sTransformFunction );
|
||||||
|
|
||||||
ActorScroller::SetNumItemsToDraw( 10.5f );
|
ActorScroller::SetNumItemsToDraw( 10.5f );
|
||||||
ActorScroller::Load2();
|
ActorScroller::Load2();
|
||||||
ActorScroller::SetTransformFromExpression( sTransformFunction );
|
ActorScroller::SetTransformFromReference( ref );
|
||||||
ActorScroller::SetSecondsPerItem( 0.2f );
|
ActorScroller::SetSecondsPerItem( 0.2f );
|
||||||
Scroll();
|
Scroll();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user