Add ResetSelection binding to MusicWheel, add MusicWheel to Luadocs
This commit is contained in:
@@ -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'/>
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user