Added Sprite:SetAllStateDelays(fDelay) Lua binding
small cleanup on charmaps number comment
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ static const wchar_t map_korean_jamo[] =
|
|||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 5x3 Numbers. "0123456789%. :x" */
|
/* 5x3 Numbers. "01234 56789 %. :x" */
|
||||||
static const wchar_t map_numbers[] = {
|
static const wchar_t map_numbers[] = {
|
||||||
0x0030, 0x0031, 0x0032, 0x0033, 0x0034,
|
0x0030, 0x0031, 0x0032, 0x0033, 0x0034,
|
||||||
0x0035, 0x0036, 0x0037, 0x0038, 0x0039,
|
0x0035, 0x0036, 0x0037, 0x0038, 0x0039,
|
||||||
|
|||||||
@@ -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 );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user