Added MusicWheel:GetSelectedSection.

This commit is contained in:
Kyzentun
2014-08-02 00:38:58 -07:00
committed by Jonathan Payne
parent 2020c9b3bf
commit 6b346e8e0b
3 changed files with 6 additions and 0 deletions
+1
View File
@@ -948,6 +948,7 @@
</Class>
<Class base='WheelBase' name='MusicWheel'>
<Function name='ChangeSort'/>
<Function name='GetSelectedSection'/>
<Function name='IsRouletting'/>
<Function name='SelectCourse'/>
<Function name='SelectSong'/>
+3
View File
@@ -2837,6 +2837,9 @@ save yourself some time, copy this for undocumented things:
<Function name='ChangeSort' return='bool' arguments='SortOrder so'>
Changes the sort order of the wheel. Returns <code>true</code> if the order was changed.
</Function>
<Function name='GetSelectedSection' return='string' arguments=''>
Returns the name of the currently selected section.
</Function>
<Function name='IsRouletting' return='bool' arguments=''>
Returns <code>true</code> if the MusicWheel is currently handling Roulette selection.
</Function>
+2
View File
@@ -1640,6 +1640,7 @@ public:
}
return 1;
}
DEFINE_METHOD(GetSelectedSection, GetSelectedSection());
static int IsRouletting( T* p, lua_State *L ){ lua_pushboolean( L, p->IsRouletting() ); return 1; }
static int SelectSong( T* p, lua_State *L )
{
@@ -1666,6 +1667,7 @@ public:
LunaMusicWheel()
{
ADD_METHOD( ChangeSort );
ADD_METHOD( GetSelectedSection );
ADD_METHOD( IsRouletting );
ADD_METHOD( SelectSong );
ADD_METHOD( SelectCourse );