Screen, ScreenWithMenuElements bindings

This commit is contained in:
Glenn Maynard
2005-07-12 05:44:54 +00:00
parent 58178ad258
commit 4a416d34d0
4 changed files with 44 additions and 0 deletions
+17
View File
@@ -255,6 +255,23 @@ void Screen::ClearMessageQueue( const ScreenMessage SM )
m_QueuedMessages.erase( m_QueuedMessages.begin()+i );
}
// lua start
#include "LuaBinding.h"
class LunaScreen: public Luna<Screen>
{
public:
LunaScreen() { LUA->Register( Register ); }
static void Register( Lua *L )
{
Luna<T>::Register( L );
}
};
LUA_REGISTER_DERIVED_CLASS( Screen, ActorFrame )
// lua end
/*
* (c) 2001-2004 Chris Danford, Glenn Maynard
* All rights reserved.
+5
View File
@@ -53,6 +53,11 @@ public:
static bool JoinInput( const MenuInput &MenuI ); // return true if a player joined
//
// Lua
//
virtual void PushSelf( lua_State *L );
protected:
// structure for holding messages sent to a Screen
struct QueuedScreenMessage {
+17
View File
@@ -269,6 +269,23 @@ void ScreenWithMenuElements::UpdateStage()
m_sprStage[s]->SetHidden( s != GAMESTATE->GetCurrentStage() );
}
// lua start
#include "LuaBinding.h"
class LunaScreenWithMenuElements: public Luna<ScreenWithMenuElements>
{
public:
LunaScreenWithMenuElements() { LUA->Register( Register ); }
static void Register( Lua *L )
{
Luna<T>::Register( L );
}
};
LUA_REGISTER_DERIVED_CLASS( ScreenWithMenuElements, Screen )
// lua end
/*
* (c) 2004 Chris Danford
* All rights reserved.
+5
View File
@@ -30,6 +30,11 @@ public:
void TweenOffScreen();
//
// Lua
//
virtual void PushSelf( lua_State *L );
protected:
virtual void HandleMessage( const CString& sMessage );