diff --git a/stepmania/src/ActorFrame.cpp b/stepmania/src/ActorFrame.cpp index 05bec547a3..fda2925312 100644 --- a/stepmania/src/ActorFrame.cpp +++ b/stepmania/src/ActorFrame.cpp @@ -376,6 +376,7 @@ public: static int propagate( T* p, lua_State *L ) { p->SetPropagateCommands( !!IArg(1) ); return 0; } static int fov( T* p, lua_State *L ) { p->SetFOV( FArg(1) ); return 0; } + static int setsize( T* p, lua_State *L ) { p->SetSize( FArg(1), FArg(2) ); return 0; } static int SetUpdateRate( T* p, lua_State *L ) { p->SetUpdateRate( FArg(1) ); return 0; } static int SetFOV( T* p, lua_State *L ) { p->SetFOV( FArg(1) ); return 0; } static int vanishpoint( T* p, lua_State *L ) { p->SetVanishPoint( FArg(1), FArg(2) ); return 0; } @@ -395,6 +396,7 @@ public: { ADD_METHOD( propagate ); ADD_METHOD( fov ); + ADD_METHOD( setsize ); ADD_METHOD( SetUpdateRate ); ADD_METHOD( SetFOV ); ADD_METHOD( vanishpoint ); diff --git a/stepmania/src/ActorFrame.h b/stepmania/src/ActorFrame.h index c5a6c8e41f..4c8eea7d43 100644 --- a/stepmania/src/ActorFrame.h +++ b/stepmania/src/ActorFrame.h @@ -54,6 +54,7 @@ public: void SetUpdateRate( float fUpdateRate ) { m_fUpdateRate = fUpdateRate; } void SetFOV( float fFOV ) { m_fFOV = fFOV; } + void SetSize( float fX, float fY ) { m_size.x = fX; m_size.y = fY; } void SetVanishPoint( float fX, float fY) { m_fVanishX = fX; m_fVanishY = fY; } virtual void SetPropagateCommands( bool b );