if you fail to reach the top the more you break the more you drop. try it again. try it again.

This commit is contained in:
Flameshadowxeroshin
2012-07-22 12:05:19 -05:00
parent 2b21a91f91
commit c2bc9d1ff3
3 changed files with 22 additions and 5 deletions
+2 -1
View File
@@ -891,7 +891,8 @@
</Class>
<Class base='WheelBase' name='MusicWheel'>
<Function name='IsRouletting'/>
<Function name='ResetSelection'/>
<Function name='SelectSong'/>
<Function name='SelectCourse'/>
</Class>
<Class base='Actor' name='Model'>
<Function name='GetDefaultAnimation'/>
+5 -2
View File
@@ -2613,8 +2613,11 @@ save yourself some time, copy this for undocumented things:
<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 name='SelectSong' return='bool' arguments='Song sSong'>
Selects a song. Returns <code>false</code> on failure.
</Function>
<Function name='SelectCourse' return='bool' arguments='Course cCourse'>
Selects a course. Returns <code>false</code> on failure.
</Function>
</Class>
<Class name='NoteSkinManager'>
+15 -2
View File
@@ -1619,12 +1619,25 @@ 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; }
static int SelectSong( T* p, lua_State *L )
{
if( lua_isnil(L,1) ) { lua_pushboolean( L, false ); return 1; }
else { Song *pS = Luna<Song>::check( L, 1, true ); lua_pushboolean( L, p->SelectSong( pS ) ); }
return 1;
}
static int SelectCourse( T* p, lua_State *L )
{
if( lua_isnil(L,1) ) { lua_pushboolean( L, false ); return 1; }
else { Course *pC = Luna<Course>::check( L, 1, true ); lua_pushboolean( L, p->SelectSong( pC ) ); }
return 1;
}
LunaMusicWheel()
{
ADD_METHOD( IsRouletting );
ADD_METHOD( ResetSelection );
ADD_METHOD( SelectSong );
ADD_METHOD( SelectCourse );
}
};