diff --git a/Docs/Changelog_sm-ssc.txt b/Docs/Changelog_sm-ssc.txt index eee6838a0c..9bb703d3d1 100644 --- a/Docs/Changelog_sm-ssc.txt +++ b/Docs/Changelog_sm-ssc.txt @@ -10,11 +10,13 @@ supported but exist anyways.) _____________________________________________________________________________ ================================================================================ -sm-ssc $NEXTVERSION | 2011???? +sm-ssc v1.2.5 | 201104?? -------------------------------------------------------------------------------- -It depends on who you ask. -It could be v1.2.5, it could be v1.3.0, it could even be StepMania 5. -We will wait and see. + +20110416 +-------- +* [PlayerOptions] Added UsingReverse() Lua binding (automatically tests GetReverse() == 1) [AJ] +* [PlayerState] Added GetCurrentPlayerOptions() Lua binding [AJ] 20110413 -------- diff --git a/src/PlayerOptions.cpp b/src/PlayerOptions.cpp index e91dbb8742..8d1a8199cd 100644 --- a/src/PlayerOptions.cpp +++ b/src/PlayerOptions.cpp @@ -908,6 +908,7 @@ public: // Scroll DEFINE_METHOD( GetReverse, m_fScrolls[PlayerOptions::SCROLL_REVERSE] ) + DEFINE_METHOD( UsingReverse, m_fScrolls[PlayerOptions::SCROLL_REVERSE] == 1 ) static int GetReversePercentForColumn( T *p, lua_State *L ) { // todo: make sure IArg is within boundaries -aj @@ -1021,6 +1022,7 @@ public: // Scroll ADD_METHOD( GetReverse ); + ADD_METHOD( UsingReverse ); ADD_METHOD( GetReversePercentForColumn ); ADD_METHOD( GetSplit ); ADD_METHOD( GetAlternate ); diff --git a/src/PlayerState.cpp b/src/PlayerState.cpp index a18e85c3e7..070e96c7be 100644 --- a/src/PlayerState.cpp +++ b/src/PlayerState.cpp @@ -229,6 +229,12 @@ public: LuaHelpers::Push( L, s ); return 1; } + static int GetCurrentPlayerOptions( T* p, lua_State *L ) + { + PlayerOptions po = p->m_PlayerOptions.GetCurrent(); + po.PushSelf(L); + return 1; + } DEFINE_METHOD( GetHealthState, m_HealthState ); LunaPlayerState() @@ -239,6 +245,7 @@ public: ADD_METHOD( GetPlayerOptions ); ADD_METHOD( GetPlayerOptionsArray ); ADD_METHOD( GetPlayerOptionsString ); + ADD_METHOD( GetCurrentPlayerOptions ); ADD_METHOD( GetHealthState ); } };