[ScreenEdit] Added GetEditState Lua binding.

This commit is contained in:
AJ Kelly
2010-12-26 00:31:46 -06:00
parent 5bfd735aaa
commit 6fc4b62b50
3 changed files with 32 additions and 0 deletions
+16
View File
@@ -89,6 +89,7 @@ static const char *EditStateNames[] = {
"Playing"
};
XToString( EditState );
LuaXType( EditState );
#if defined(XBOX)
void ScreenEdit::InitEditMappings()
@@ -3919,6 +3920,21 @@ void ScreenEdit::DoHelp()
EditMiniMenu( &g_EditHelp );
}
// lua start
#include "LuaBinding.h"
class LunaScreenEdit: public Luna<ScreenEdit>
{
public:
DEFINE_METHOD( GetEditState, GetEditState() )
LunaScreenEdit()
{
ADD_METHOD( GetEditState );
}
};
LUA_REGISTER_DERIVED_CLASS( ScreenEdit, ScreenWithMenuElements )
/*
* (c) 2001-2004 Chris Danford
* All rights reserved.