StartTransitioningScreen

Exposes the StartTransitioningScreen function to lua. Great utility for
custom screens.
This commit is contained in:
sigatrev
2014-04-02 18:35:23 -05:00
parent 37f6b99571
commit b8e4cdddec
3 changed files with 12 additions and 0 deletions
+8
View File
@@ -384,12 +384,20 @@ public:
return 0;
}
static int StartTransitioningScreen( T* p, lua_State *L )
{
RString sMessage = SArg(1);
ScreenMessage SM = ScreenMessageHelpers::ToScreenMessage( sMessage );
p->StartTransitioningScreen( SM );
return 0;
}
LunaScreenWithMenuElements()
{
ADD_METHOD( Cancel );
ADD_METHOD( IsTransitioning );
ADD_METHOD( SetAllowLateJoin );
ADD_METHOD( StartTransitioningScreen );
}
};