diff --git a/stepmania/src/ActorScroller.cpp b/stepmania/src/ActorScroller.cpp index b7996daedc..019069ab45 100644 --- a/stepmania/src/ActorScroller.cpp +++ b/stepmania/src/ActorScroller.cpp @@ -284,7 +284,8 @@ public: LunaActorScroller() { LUA->Register( Register ); } static int SetCurrentAndDestinationItem( T* p, lua_State *L ) { p->SetCurrentAndDestinationItem( FArg(1) ); return 0; } - static int secondsperitem( T* p, lua_State *L ) { p->SetSecondsPerItem(FArg(1)); return 0; } + static int setsecondsperitem( T* p, lua_State *L ) { p->SetSecondsPerItem(FArg(1)); return 0; } + static int setnumsubdivisions( T* p, lua_State *L ) { p->SetNumSubdivisions(IArg(1)); return 0; } static int scrollthroughallitems( T* p, lua_State *L ) { p->ScrollThroughAllItems(); return 0; } static int scrollwithpadding( T* p, lua_State *L ) { p->ScrollWithPadding(FArg(1),FArg(2)); return 0; } static int setfastcatchup( T* p, lua_State *L ) { p->SetFastCatchup(BArg(1)); return 0; } @@ -292,7 +293,8 @@ public: static void Register(lua_State *L) { ADD_METHOD( SetCurrentAndDestinationItem ); - ADD_METHOD( secondsperitem ); + ADD_METHOD( setsecondsperitem ); + ADD_METHOD( setnumsubdivisions ); ADD_METHOD( scrollthroughallitems ); ADD_METHOD( scrollwithpadding ); ADD_METHOD( setfastcatchup ); diff --git a/stepmania/src/ActorScroller.h b/stepmania/src/ActorScroller.h index 89dce0c66a..f014c14082 100644 --- a/stepmania/src/ActorScroller.h +++ b/stepmania/src/ActorScroller.h @@ -45,7 +45,8 @@ public: void SetFastCatchup( bool bOn ) { m_bFastCatchup = bOn; } void SetSecondsPerItem( float fSeconds ) { m_fSecondsPerItem = fSeconds; } void SetSecondsPauseBetweenItems( float fSeconds ) { m_fSecondsPauseBetweenItems = fSeconds; } - float GetSecondsForCompleteScrollThrough() const; + void SetNumSubdivisions( int iNumSubdivisions ) { m_exprTransformFunction.SetNumSubdivisions( iNumSubdivisions ); } + float GetSecondsForCompleteScrollThrough() const; // // Commands