bind GetNextScreen

This commit is contained in:
Glenn Maynard
2006-06-25 20:06:06 +00:00
parent 08a76abd14
commit 33d89da000
2 changed files with 5 additions and 3 deletions
+3
View File
@@ -311,6 +311,8 @@ class LunaScreen: public Luna<Screen>
{
public:
LunaScreen() { LUA->Register( Register ); }
static int GetNextScreen( T* p, lua_State *L ) { lua_pushstring(L, p->GetNextScreen() ); return 1; }
static int PostScreenMessage( T* p, lua_State *L )
{
RString sMessage = SArg(1);
@@ -321,6 +323,7 @@ public:
static void Register( Lua *L )
{
ADD_METHOD( GetNextScreen );
ADD_METHOD( PostScreenMessage );
Luna<T>::Register( L );
+2 -3
View File
@@ -78,14 +78,13 @@ protected:
ThemeMetric<bool> ALLOW_OPERATOR_MENU_BUTTON;
RString GetNextScreen() const;
RString GetPrevScreen() const;
// If left blank, the NextScreen metric will be used.
RString m_sNextScreen;
ScreenMessage m_smSendOnPop;
public:
RString GetNextScreen() const;
RString GetPrevScreen() const;
// let subclass override if they want
virtual void MenuUp( const InputEventPlus &input );