[FadingBanner] Added GetLatestIndex() Lua binding.

This commit is contained in:
AJ Kelly
2010-12-26 22:34:52 -06:00
parent 00cc700597
commit 4f5f4b92d0
3 changed files with 7 additions and 3 deletions
+3 -2
View File
@@ -25,8 +25,9 @@ sm-ssc v1.2 | 201012xx
* [Banner, FadingBanner] Various changes: [freem]
* Removed (now unused) All Music banner.
* Fixed swapped ScrollRandom and ScrollRoulette metrics.
* Added GetScrolling(), GetPercentScrolling() and SetScrolling(bool,float)
Lua bindings.
* [Banner] Added GetScrolling(), GetPercentScrolling() and
SetScrolling(bool,float) Lua bindings.
* [FadingBanner] Added GetLatestIndex() Lua binding. [freem]
20101225
--------
+2 -1
View File
@@ -252,7 +252,6 @@ void FadingBanner::LoadCourseFallback()
m_Banner[m_iIndexLatest].LoadCourseFallback();
}
// lua start
#include "LuaBinding.h"
@@ -286,6 +285,7 @@ public:
return 0;
}
static int LoadFromSongGroup( T* p, lua_State *L ) { p->LoadFromSongGroup( SArg(1) ); return 0; }
static int GetLatestIndex( T* p, lua_State *L ){ lua_pushnumber( L, p->GetLatestIndex() ); return 1; }
LunaFadingBanner()
{
@@ -296,6 +296,7 @@ public:
ADD_METHOD( LoadFromCourse );
ADD_METHOD( LoadIconFromCharacter );
ADD_METHOD( LoadCardFromCharacter );
ADD_METHOD( GetLatestIndex );
}
};
+2
View File
@@ -37,6 +37,8 @@ public:
virtual void UpdateInternal( float fDeltaTime );
virtual void DrawPrimitives();
int GetLatestIndex(){ return m_iIndexLatest; }
// Lua
void PushSelf( lua_State *L );