From b36f1724629d82dc9873407706f80250cb653f6a Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Wed, 1 Jun 2011 10:12:10 -0400 Subject: [PATCH] Added the HasScrollChanges lua binding. --- Docs/Changelog_sm5.txt | 3 +++ Docs/Luadoc/Lua.xml | 1 + Docs/Luadoc/LuaDocumentation.xml | 3 +++ src/TimingData.cpp | 2 ++ 4 files changed, 9 insertions(+) diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index 6785197f3f..6689c3b902 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -8,6 +8,9 @@ ________________________________________________________________________________ StepMania 5.0 ????????? | 20110??? -------------------------------------------------------------------------------- +2011/05/31 +* [TimingData] Added the HasScrollChanges lua binding. [Wolfman2000] + 2011/05/31 ---------- * [Player] Added the BattleRaveMirror metric. This determines if Battle and diff --git a/Docs/Luadoc/Lua.xml b/Docs/Luadoc/Lua.xml index f697390be9..f063bfdb02 100644 --- a/Docs/Luadoc/Lua.xml +++ b/Docs/Luadoc/Lua.xml @@ -1428,6 +1428,7 @@ + diff --git a/Docs/Luadoc/LuaDocumentation.xml b/Docs/Luadoc/LuaDocumentation.xml index 135d345578..226a38d700 100644 --- a/Docs/Luadoc/LuaDocumentation.xml +++ b/Docs/Luadoc/LuaDocumentation.xml @@ -3596,6 +3596,9 @@ Returns true if the TimingData contains speed scrolling changes. + + Returns true if the TimingData contains general scrolling changes. + diff --git a/src/TimingData.cpp b/src/TimingData.cpp index 8c863bb475..c26e7062b3 100644 --- a/src/TimingData.cpp +++ b/src/TimingData.cpp @@ -1659,6 +1659,7 @@ public: static int HasWarps( T* p, lua_State *L ) { lua_pushboolean(L, p->HasWarps()); return 1; } static int HasFakes( T* p, lua_State *L ) { lua_pushboolean(L, p->HasFakes()); return 1; } static int HasSpeedChanges( T* p, lua_State *L ) { lua_pushboolean(L, p->HasSpeedChanges()); return 1; } + static int HasScrollChanges( T* p, lua_State *L ) { lua_pushboolean(L, p->HasScrollChanges()); return 1; } static int GetStops( T* p, lua_State *L ) { vector vStops; @@ -1748,6 +1749,7 @@ public: ADD_METHOD( HasWarps ); ADD_METHOD( HasFakes ); ADD_METHOD( HasSpeedChanges ); + ADD_METHOD( HasScrollChanges ); ADD_METHOD( GetStops ); ADD_METHOD( GetDelays ); ADD_METHOD( GetBPMs );