diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index 911c512a32..2addb23d65 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -8,7 +8,12 @@ ________________________________________________________________________________ StepMania 5.0 $NEXT | 20110xyy -------------------------------------------------------------------------------- +2011/05/10 +---------- +* [Sprite] Added SetSecondsIntoAnimation(float) Lua binding. [AJ] + 2011/05/03 +---------- * [ScreenEdit] Allow changing the Beat 0 Offset, Music Sample Start, and Music Sample Length via Edit Song Info menu. [Wolfman2000] diff --git a/src/Sprite.cpp b/src/Sprite.cpp index a07beeec01..e34dde8802 100644 --- a/src/Sprite.cpp +++ b/src/Sprite.cpp @@ -1130,6 +1130,7 @@ public: static int setstate( T* p, lua_State *L ) { p->SetState( IArg(1) ); return 0; } static int GetState( T* p, lua_State *L ) { lua_pushnumber( L, p->GetState() ); return 1; } static int GetAnimationLengthSeconds( T* p, lua_State *L ) { lua_pushnumber( L, p->GetAnimationLengthSeconds() ); return 1; } + static int SetSecondsIntoAnimation( T* p, lua_State *L ) { p->SetSecondsIntoAnimation(FArg(0)) return 0; } static int SetTexture( T* p, lua_State *L ) { RageTexture *pTexture = Luna::check(L, 1); @@ -1170,6 +1171,7 @@ public: ADD_METHOD( setstate ); ADD_METHOD( GetState ); ADD_METHOD( GetAnimationLengthSeconds ); + ADD_METHOD( SetSecondsIntoAnimation ); ADD_METHOD( SetTexture ); ADD_METHOD( GetTexture ); ADD_METHOD( SetEffectMode );