eval cleanup

This commit is contained in:
Chris Danford
2008-04-04 20:10:10 +00:00
parent d4ebcc512a
commit 089e44e6e7
6 changed files with 17 additions and 8 deletions
@@ -2,14 +2,7 @@ local MetricsName, FileName = ...;
local t = LoadActor( THEME:GetPathG(Var "LoadingScreen",FileName) );
if type(t) == "table" then
t = t .. {
InitCommand=function(self)
local x1 = THEME:GetMetric(Var "LoadingScreen",MetricsName .. "X");
if x1 then self:x(x1); end
local y1 = THEME:GetMetric(Var "LoadingScreen",MetricsName .. "Y");
if y1 then self:y(y1); end
end;
OnCommand=THEME:GetMetric(Var "LoadingScreen",MetricsName .. "OnCommand");
OffCommand=THEME:GetMetric(Var "LoadingScreen",MetricsName .. "OffCommand");
InitCommand=function(self) self:name(MetricsName); ActorUtil.LoadAllCommandsAndSetXY(self,Var "LoadingScreen"); end;
};
end
return t;