diff --git a/Docs/Luadoc/Lua.xml b/Docs/Luadoc/Lua.xml index efe59ad1da..f6526dcfed 100644 --- a/Docs/Luadoc/Lua.xml +++ b/Docs/Luadoc/Lua.xml @@ -948,6 +948,7 @@ + diff --git a/Docs/Luadoc/LuaDocumentation.xml b/Docs/Luadoc/LuaDocumentation.xml index 0a2e59414f..69bd04a75e 100644 --- a/Docs/Luadoc/LuaDocumentation.xml +++ b/Docs/Luadoc/LuaDocumentation.xml @@ -2837,6 +2837,9 @@ save yourself some time, copy this for undocumented things: Changes the sort order of the wheel. Returns true if the order was changed. + + Returns the name of the currently selected section. + Returns true if the MusicWheel is currently handling Roulette selection. diff --git a/src/MusicWheel.cpp b/src/MusicWheel.cpp index f635cb45a5..ac9f6b18fa 100644 --- a/src/MusicWheel.cpp +++ b/src/MusicWheel.cpp @@ -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 );