[PlayerOptions] Added SetNoteSkin(string) Lua binding.

This commit is contained in:
AJ Kelly
2011-03-20 13:03:16 -05:00
parent 6962196795
commit c7873d9199
2 changed files with 11 additions and 0 deletions
+4
View File
@@ -13,6 +13,10 @@ _____________________________________________________________________________
sm-ssc v1.2.4 | 20110??? sm-ssc v1.2.4 | 20110???
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
20110320
--------
* [PlayerOptions] Added SetNoteSkin(string) Lua binding. [AJ]
20110317 20110317
-------- --------
* [ScreenEdit] Fix bug number 222, where Steps disappeared if they weren't * [ScreenEdit] Fix bug number 222, where Steps disappeared if they weren't
+7
View File
@@ -841,10 +841,17 @@ class LunaPlayerOptions: public Luna<PlayerOptions>
{ {
public: public:
DEFINE_METHOD( GetNoteSkin, m_sNoteSkin ) DEFINE_METHOD( GetNoteSkin, m_sNoteSkin )
static int SetNoteSkin( T *p, lua_State *L )
{
if( NOTESKIN->DoesNoteSkinExist(SArg(1)) )
p->m_sNoteSkin = SArg(1);
return 0;
}
LunaPlayerOptions() LunaPlayerOptions()
{ {
ADD_METHOD( GetNoteSkin ); ADD_METHOD( GetNoteSkin );
ADD_METHOD( SetNoteSkin );
} }
}; };