[PlayerOptions] Added SetNoteSkin(string) Lua binding.
This commit is contained in:
@@ -13,6 +13,10 @@ _____________________________________________________________________________
|
||||
sm-ssc v1.2.4 | 20110???
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
20110320
|
||||
--------
|
||||
* [PlayerOptions] Added SetNoteSkin(string) Lua binding. [AJ]
|
||||
|
||||
20110317
|
||||
--------
|
||||
* [ScreenEdit] Fix bug number 222, where Steps disappeared if they weren't
|
||||
|
||||
@@ -841,10 +841,17 @@ class LunaPlayerOptions: public Luna<PlayerOptions>
|
||||
{
|
||||
public:
|
||||
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()
|
||||
{
|
||||
ADD_METHOD( GetNoteSkin );
|
||||
ADD_METHOD( SetNoteSkin );
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user