various theme changes by Midiman and myself.

This commit is contained in:
AJ Kelly
2010-02-17 19:47:36 -06:00
parent 4791b411d1
commit dfc5f53134
36 changed files with 314 additions and 250 deletions
@@ -0,0 +1,33 @@
return Def.HelpDisplay {
File = THEME:GetPathF("HelpDisplay", "text");
InitCommand=function(self)
local s = THEME:GetString(Var "LoadingScreen","AlternateHelpText");
self:SetTipsColonSeparated(s);
end;
SetHelpTextCommand=function(self, params)
self:SetTipsColonSeparated( params.Text );
end;
};
--[[ local sString = THEME:GetString(Var "LoadingScreen","AlternateHelpText");
local tItems = split(sString,"&");
local t = Def.ActorScroller {
NumItemsToDraw=#tItems;
SecondsPerItem=1.25;
TransformFunction=function( self, offset, itemIndex, numItems )
self:x( offset*74 );
end;
InitCommand=cmd(SetLoop,true);
-- OnCommand=cmd(scrollwithpadding,10,0);
};
for i=1,#tItems do
t[#t+1] = Def.ActorFrame {
LoadFont("HelpDisplay", "text") .. {
Text=tostring(tItems[i]);
OnCommand=THEME:GetMetric( Var "LoadingScreen","HelpOnCommand");
};
};
end
return t; --]]