Add ResetSelection binding to MusicWheel, add MusicWheel to Luadocs

This commit is contained in:
Flameshadowxeroshin
2012-07-22 11:44:45 -05:00
parent 1d5f4379bc
commit 2b21a91f91
3 changed files with 14 additions and 0 deletions
+4
View File
@@ -889,6 +889,10 @@
<Class base='ActorFrame' name='ModIconRow'>
<Function name='Load'/>
</Class>
<Class base='WheelBase' name='MusicWheel'>
<Function name='IsRouletting'/>
<Function name='ResetSelection'/>
</Class>
<Class base='Actor' name='Model'>
<Function name='GetDefaultAnimation'/>
<Function name='GetNumStates'/>
+8
View File
@@ -2609,6 +2609,14 @@ save yourself some time, copy this for undocumented things:
Loads the ModIconRow of Player <code>pn</code> from the Metrics in group <code>sMetricsGroup</code>.
</Function>
</Class>
<Class name='MusicWheel'>
<Function name='IsRouletting' return='bool' arguments=''>
Returns <code>true</code> if the MusicWheel is currently handling Roulette selection.
</Function>
<Function name='ResetSelection' return='bool' arguments=''>
Tries to set the MusicWheel's selection based on preferred song, preferred course, and current sort order. Returns <code>false</code> on failure.
</Function>
</Class>
<Class name='NoteSkinManager'>
<Function name='GetMetricA' return='ActorCommand' arguments='string sElement, string sValue'>
Returns a command from the specified element and value.
+2
View File
@@ -1619,10 +1619,12 @@ class LunaMusicWheel: public Luna<MusicWheel>
{
public:
static int IsRouletting( T* p, lua_State *L ){ lua_pushboolean( L, p->IsRouletting() ); return 1; }
static int ResetSelection( T* p, lua_State *L ){ lua_pushboolean( L, p->SelectSongOrCourse() ); return 1; }
LunaMusicWheel()
{
ADD_METHOD( IsRouletting );
ADD_METHOD( ResetSelection );
}
};