Added MusicWheel:GetSelectedSection.
This commit is contained in:
@@ -948,6 +948,7 @@
|
|||||||
</Class>
|
</Class>
|
||||||
<Class base='WheelBase' name='MusicWheel'>
|
<Class base='WheelBase' name='MusicWheel'>
|
||||||
<Function name='ChangeSort'/>
|
<Function name='ChangeSort'/>
|
||||||
|
<Function name='GetSelectedSection'/>
|
||||||
<Function name='IsRouletting'/>
|
<Function name='IsRouletting'/>
|
||||||
<Function name='SelectCourse'/>
|
<Function name='SelectCourse'/>
|
||||||
<Function name='SelectSong'/>
|
<Function name='SelectSong'/>
|
||||||
|
|||||||
@@ -2837,6 +2837,9 @@ save yourself some time, copy this for undocumented things:
|
|||||||
<Function name='ChangeSort' return='bool' arguments='SortOrder so'>
|
<Function name='ChangeSort' return='bool' arguments='SortOrder so'>
|
||||||
Changes the sort order of the wheel. Returns <code>true</code> if the order was changed.
|
Changes the sort order of the wheel. Returns <code>true</code> if the order was changed.
|
||||||
</Function>
|
</Function>
|
||||||
|
<Function name='GetSelectedSection' return='string' arguments=''>
|
||||||
|
Returns the name of the currently selected section.
|
||||||
|
</Function>
|
||||||
<Function name='IsRouletting' return='bool' arguments=''>
|
<Function name='IsRouletting' return='bool' arguments=''>
|
||||||
Returns <code>true</code> if the MusicWheel is currently handling Roulette selection.
|
Returns <code>true</code> if the MusicWheel is currently handling Roulette selection.
|
||||||
</Function>
|
</Function>
|
||||||
|
|||||||
@@ -1640,6 +1640,7 @@ public:
|
|||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
DEFINE_METHOD(GetSelectedSection, GetSelectedSection());
|
||||||
static int IsRouletting( T* p, lua_State *L ){ lua_pushboolean( L, p->IsRouletting() ); return 1; }
|
static int IsRouletting( T* p, lua_State *L ){ lua_pushboolean( L, p->IsRouletting() ); return 1; }
|
||||||
static int SelectSong( T* p, lua_State *L )
|
static int SelectSong( T* p, lua_State *L )
|
||||||
{
|
{
|
||||||
@@ -1666,6 +1667,7 @@ public:
|
|||||||
LunaMusicWheel()
|
LunaMusicWheel()
|
||||||
{
|
{
|
||||||
ADD_METHOD( ChangeSort );
|
ADD_METHOD( ChangeSort );
|
||||||
|
ADD_METHOD( GetSelectedSection );
|
||||||
ADD_METHOD( IsRouletting );
|
ADD_METHOD( IsRouletting );
|
||||||
ADD_METHOD( SelectSong );
|
ADD_METHOD( SelectSong );
|
||||||
ADD_METHOD( SelectCourse );
|
ADD_METHOD( SelectCourse );
|
||||||
|
|||||||
Reference in New Issue
Block a user