add scaletofit command
This commit is contained in:
@@ -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) );
|
||||
|
||||
Reference in New Issue
Block a user