diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index 0ec3f787f4..652f921970 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -8,6 +8,11 @@ ________________________________________________________________________________ StepMania 5.0 $next | 2011???? -------------------------------------------------------------------------------- +2011/09/02 +---------- +* [MenuTimer] Added start(), disable() Lua bindings. Also renamed setseconds to + SetSeconds to match GetSeconds. [AJ] + 2011/08/27 ---------- * Updated libjpeg to 8c. diff --git a/Themes/_fallback/Scripts/01 compat.lua b/Themes/_fallback/Scripts/01 compat.lua index dc7ad45c3f..1c4aee360c 100644 --- a/Themes/_fallback/Scripts/01 compat.lua +++ b/Themes/_fallback/Scripts/01 compat.lua @@ -18,6 +18,9 @@ ActorScroller.scrollthroughallitems = ActorScroller.ScrollThroughAllItems ActorScroller.scrollwithpadding = ActorScroller.ScrollWithPadding ActorScroller.setfastcatchup = ActorScroller.SetFastCatchup +--[[ MenuTimer: just some case changes. ]] +MenuTimer.setseconds = MenuTimer.SetSeconds + --[[ GameState ]] --Aliases for old GAMESTATE timing functions. --These have been converted to SongPosition, but most themes still use these old functions. diff --git a/src/MenuTimer.cpp b/src/MenuTimer.cpp index f376dbcc27..59e420a799 100644 --- a/src/MenuTimer.cpp +++ b/src/MenuTimer.cpp @@ -198,19 +198,23 @@ void MenuTimer::SetText( float fSeconds ) class LunaMenuTimer: public Luna { public: - static int setseconds( T* p, lua_State *L ) { p->SetSeconds(FArg(1)); return 0; } + static int SetSeconds( T* p, lua_State *L ) { p->SetSeconds(FArg(1)); return 0; } static int GetSeconds( T* p, lua_State *L ) { lua_pushnumber( L, p->GetSeconds() ); return 1; } + static int start( T* p, lua_State *L ) { p->Start(); return 0; } static int pause( T* p, lua_State *L ) { p->Pause(); return 0; } static int stop( T* p, lua_State *L ) { p->Stop(); return 0; } + static int disable( T* p, lua_State *L ) { p->Disable(); return 0; } static int silent( T* p, lua_State *L ) { p->EnableSilent(BArg(1)); return 0; } static int stealth( T* p, lua_State *L ) { p->EnableStealth(BArg(1)); return 0; } LunaMenuTimer() { - ADD_METHOD( setseconds ); + ADD_METHOD( SetSeconds ); ADD_METHOD( GetSeconds ); + ADD_METHOD( start ); ADD_METHOD( pause ); ADD_METHOD( stop ); + ADD_METHOD( disable ); ADD_METHOD( silent ); ADD_METHOD( stealth ); }