use LoadFont

This commit is contained in:
Glenn Maynard
2007-02-16 07:46:43 +00:00
parent 2158dc6c23
commit 5448e98615
4 changed files with 10 additions and 26 deletions
@@ -4,8 +4,7 @@ function CreditsText( pn )
self:settext(str);
end
local text = Def.BitmapText {
Font=THEME:GetPathF("ScreenManager","credits");
local text = LoadFont("ScreenManager","credits") .. {
InitCommand=cmd(shadowlength,0);
RefreshCreditTextMessageCommand=update;
CoinInsertedMessageCommand=update;
@@ -16,9 +15,7 @@ end
local t = Def.ActorFrame {
children = {
Def.BitmapText {
Font=THEME:GetPathF(Var "LoadingScreen","message");
Text="";
LoadFont(Var "LoadingScreen","message") .. {
InitCommand=cmd(maxwidth,750;
horizalign,left;vertalign,top;
zoom,0.8;shadowlength,2;