[ScreenWithMenuElements] Added IsTransitioning() Lua binding (from sm-ssc v2)

This commit is contained in:
freem
2014-01-26 17:54:28 -06:00
parent b472bc37e4
commit 8a0c218282
+2 -2
View File
@@ -368,11 +368,11 @@ class LunaScreenWithMenuElements: public Luna<ScreenWithMenuElements>
{
public:
static int Cancel( T* p, lua_State *L ) { p->Cancel( SM_GoToPrevScreen ); return 0; }
static int IsTransitioning( T* p, lua_State *L ) { lua_pushboolean( L, p->IsTransitioning() ); return 1; }
LunaScreenWithMenuElements()
{
ADD_METHOD( Cancel );
}
ADD_METHOD( IsTransitioning ); }
};
LUA_REGISTER_DERIVED_CLASS( ScreenWithMenuElements, Screen )