Added Sprite:SetAllStateDelays(fDelay) Lua binding

small cleanup on charmaps number comment
This commit is contained in:
AJ Kelly
2010-12-17 01:07:50 -06:00
parent d6ee717842
commit 853925c83b
3 changed files with 7 additions and 1 deletions
+4
View File
@@ -13,6 +13,10 @@ _____________________________________________________________________________
sm-ssc v1.2 | 201012xx sm-ssc v1.2 | 201012xx
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
20101217
--------
* [Sprite] Added SetAllStateDelays(fDelay) Lua binding. [freem]
20101215 20101215
-------- --------
* Transplanted file download code from SM4 into sm-ssc. * Transplanted file download code from SM4 into sm-ssc.
+2
View File
@@ -1152,6 +1152,7 @@ public:
return 0; return 0;
} }
static int GetNumStates( T* p, lua_State *L ) { lua_pushnumber( L, p->GetNumStates() ); return 1; } static int GetNumStates( T* p, lua_State *L ) { lua_pushnumber( L, p->GetNumStates() ); return 1; }
static int SetAllStateDelays( T* p, lua_State *L ) { p->SetAllStateDelays(FArg(1)); return 0; }
LunaSprite() LunaSprite()
{ {
@@ -1172,6 +1173,7 @@ public:
ADD_METHOD( GetTexture ); ADD_METHOD( GetTexture );
ADD_METHOD( SetEffectMode ); ADD_METHOD( SetEffectMode );
ADD_METHOD( GetNumStates ); ADD_METHOD( GetNumStates );
ADD_METHOD( SetAllStateDelays );
} }
}; };