theme cleanup

This commit is contained in:
Chris Danford
2008-03-31 11:49:26 +00:00
parent e5d0889f4c
commit 7f7e254f36
39 changed files with 138 additions and 159 deletions
@@ -0,0 +1,15 @@
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");
};
end
return t;