diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index 64fdd5115f..f15e2a048e 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -4,6 +4,10 @@ The StepMania 5 Changelog covers all post-sm-ssc changes. For a list of changes from StepMania 4 alpha 5 to sm-ssc v1.2.5, see Changelog_sm-ssc.txt. ________________________________________________________________________________ +2014/12/18 +---------- +* [Profile] GetTotalDancePoints added. [kyzentun] + 2014/12/10 ---------- * [EditMode] Play whole song and play from current beat will now play until diff --git a/Docs/Luadoc/Lua.xml b/Docs/Luadoc/Lua.xml index 0500f90ab0..53d2d79fd4 100644 --- a/Docs/Luadoc/Lua.xml +++ b/Docs/Luadoc/Lua.xml @@ -1220,6 +1220,7 @@ + diff --git a/Docs/Luadoc/LuaDocumentation.xml b/Docs/Luadoc/LuaDocumentation.xml index 421749d111..fa8011dbe4 100644 --- a/Docs/Luadoc/LuaDocumentation.xml +++ b/Docs/Luadoc/LuaDocumentation.xml @@ -3536,6 +3536,9 @@ save yourself some time, copy this for undocumented things: Return the total number of calories burned. + + Returns the number of dance points earned. + Returns the number of Hands stepped on. diff --git a/src/Profile.cpp b/src/Profile.cpp index 1178dd08c9..b071ddfc42 100644 --- a/src/Profile.cpp +++ b/src/Profile.cpp @@ -2603,6 +2603,7 @@ public: static int GetTotalMines( T* p, lua_State *L ) { lua_pushnumber(L, p->m_iTotalMines ); return 1; } static int GetTotalHands( T* p, lua_State *L ) { lua_pushnumber(L, p->m_iTotalHands ); return 1; } static int GetTotalLifts( T* p, lua_State *L ) { lua_pushnumber(L, p->m_iTotalLifts ); return 1; } + DEFINE_METHOD(GetTotalDancePoints, m_iTotalDancePoints); static int GetUserTable( T* p, lua_State *L ) { p->m_UserTable.PushSelf(L); return 1; } static int GetLastPlayedSong( T* p, lua_State *L ) { @@ -2688,6 +2689,7 @@ public: ADD_METHOD( GetTotalMines ); ADD_METHOD( GetTotalHands ); ADD_METHOD( GetTotalLifts ); + ADD_METHOD( GetTotalDancePoints ); ADD_METHOD( GetUserTable ); ADD_METHOD( GetLastPlayedSong ); ADD_METHOD( GetLastPlayedCourse );