add scaletofit command

This commit is contained in:
Glenn Maynard
2003-12-17 09:40:51 +00:00
parent 945441d0f8
commit e6b64e5536
+1
View File
@@ -816,6 +816,7 @@ void Actor::HandleCommand( const CStringArray &asTokens )
else if( sName=="effectperiod" ) SetEffectPeriod( fParam(1) );
else if( sName=="effectmagnitude" ) SetEffectMagnitude( RageVector3(fParam(1),fParam(2),fParam(3)) );
else if( sName=="scaletocover" ) { RectI R(iParam(1), iParam(2), iParam(3), iParam(4)); ScaleToCover(R); }
else if( sName=="scaletofit" ) { RectI R(iParam(1), iParam(2), iParam(3), iParam(4)); ScaleToFitInside(R); }
// Commands that take effect immediately (ignoring the tweening queue):
else if( sName=="animate" ) EnableAnimation( bParam(1) );
else if( sName=="setstate" ) SetState( iParam(1) );