add Load(sMetricsGroup) Lua binding for RollingNumbers

This commit is contained in:
AJ Kelly
2010-12-15 19:04:37 -06:00
parent fdce4e354f
commit 6d70de3199
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -9,6 +9,10 @@ Not all changes are documented, for various reasons.
supported but exist anyways.) supported but exist anyways.)
_____________________________________________________________________________ _____________________________________________________________________________
20101214
--------
* [RollingNumbers] Added Load(sMetricsGroup) Lua binding.
20101212 20101212
-------- --------
* [MusicWheelItem] Gave NormalPart/ColorPart names, so metrics can be used to * [MusicWheelItem] Gave NormalPart/ColorPart names, so metrics can be used to
+2
View File
@@ -102,10 +102,12 @@ void RollingNumbers::UpdateText()
class LunaRollingNumbers: public Luna<RollingNumbers> class LunaRollingNumbers: public Luna<RollingNumbers>
{ {
public: public:
static int Load( T* p, lua_State *L ) { p->Load(SArg(1)); return 0; }
static int targetnumber( T* p, lua_State *L ) { p->SetTargetNumber( FArg(1) ); return 0; } static int targetnumber( T* p, lua_State *L ) { p->SetTargetNumber( FArg(1) ); return 0; }
LunaRollingNumbers() LunaRollingNumbers()
{ {
ADD_METHOD( Load );
ADD_METHOD( targetnumber ); ADD_METHOD( targetnumber );
} }
}; };