add LoadFont

This commit is contained in:
Glenn Maynard
2007-02-16 07:41:09 +00:00
parent 92fd82b630
commit 2158dc6c23
@@ -157,6 +157,16 @@ function LoadActorWithParams( path, params, ... )
return lua.RunWithThreadVariables( function(...) return t(...) end, params, ... );
end
function LoadFont(a, b)
local sSection = b and a or "";
local sFile = b or a;
local sPath = THEME:GetPathF(sSection, sFile);
return Def.BitmapText {
_Level = 2;
File = sPath;
}
end
function WrapInActorFrame( t )
return Def.ActorFrame { children = t }
end