Add AddCommand and THEME:GetMetricA.

This won't work with theme reloading, but that hasn't worked in a long time anyway
(recreating the Lua environment while it's actually in use is hard).
This commit is contained in:
Glenn Maynard
2005-10-05 07:37:26 +00:00
parent 4e312a4ffd
commit 4cbf9be85a
3 changed files with 11 additions and 1 deletions
+2
View File
@@ -299,10 +299,12 @@ public:
LunaNoteSkinManager() { LUA->Register( Register ); }
static int GetPath( T* p, lua_State *L ) { lua_pushstring(L, p->GetPath(SArg(1),SArg(2)) ); return 1; }
static int GetMetricA( T* p, lua_State *L ) { p->GetMetricA(SArg(1),SArg(2))->PushSelf(L); return 1; }
static void Register(lua_State *L)
{
ADD_METHOD( GetPath );
ADD_METHOD( GetMetricA );
Luna<T>::Register( L );