fix decoration not playing OnCommand

This commit is contained in:
Chris Danford
2008-05-10 21:48:38 +00:00
parent 8a8446e206
commit 6355e4db2a
2 changed files with 4 additions and 4 deletions
@@ -2,7 +2,7 @@ local MetricsName, FileName = ...;
local t = LoadActor( THEME:GetPathG(Var "LoadingScreen",FileName) );
if type(t) == "table" then
t = t .. {
InitCommand=function(self) self:name(MetricsName); ActorUtil.LoadAllCommandsAndSetXY(self,Var "LoadingScreen"); end;
InitCommand=function(self) self:name(MetricsName); ActorUtil.LoadAllCommandsAndSetXYAndOnCommand(self,Var "LoadingScreen"); end;
};
end
return t;
+3 -3
View File
@@ -435,10 +435,10 @@ namespace
lua_pushboolean( L, IsRegistered(SArg(1)) );
return 1;
}
static int LoadAllCommandsAndSetXY( lua_State *L )
static int LoadAllCommandsAndSetXYAndOnCommand( lua_State *L )
{
Actor *p = Luna<Actor>::check( L, 1 );
ActorUtil::LoadAllCommandsAndSetXY( p, SArg(2) );
ActorUtil::LoadAllCommandsAndSetXYAndOnCommand( p, SArg(2) );
return 0;
}
@@ -447,7 +447,7 @@ namespace
LIST_METHOD( GetFileType ),
LIST_METHOD( ResolvePath ),
LIST_METHOD( IsRegisteredClass ),
LIST_METHOD( LoadAllCommandsAndSetXY ),
LIST_METHOD( LoadAllCommandsAndSetXYAndOnCommand ),
{ NULL, NULL }
};
}