new Header system using BitmapText for easier localization

This commit is contained in:
AJ Kelly
2007-05-29 02:04:20 +00:00
parent b24aac13d7
commit 9550c1b555
12 changed files with 41 additions and 3 deletions
@@ -0,0 +1,21 @@
local Text = ...
assert( Text );
return Def.ActorFrame{
-- main header background
LoadActor(THEME:GetPathB("","_frame 3x1"), "headers", SCREEN_WIDTH/2.5);
-- text
LoadFont("", "_zeroesthree") ..{
Text=THEME:GetString( 'Headers', Text );
InitCommand=cmd(horizalign,left;shadowlength,0;x,-128);
OnCommand=cmd(linear,0.25;diffusealpha,1);
OffCommand=cmd(linear,0.25;diffusealpha,0);
};
-- timer background
LoadActor(THEME:GetPathB("","_frame 3x1"), "headers", 48)..{
--InitCommand=cmd( x,SCREEN_CENTER_X+(SCREEN_WIDTH/5.35) );
InitCommand=cmd( x,SCREEN_RIGHT-(SCREEN_WIDTH/3.1825) );
};
};