change long/marathon banners to bubble, set a maxwidth on artist so it doesn't overflow into the bpm area

This commit is contained in:
AJ Kelly
2008-03-27 20:54:42 +00:00
parent 4e21904e9c
commit 72ca25cf0f
@@ -273,7 +273,7 @@ local t = Def.ActorFrame {
}; };
LoadFont("_regra 32 bold") .. { LoadFont("_regra 32 bold") .. {
InitCommand=cmd(horizalign,left;x,SCREEN_CENTER_X-14;y,SCREEN_CENTER_Y-14;zoom,0.5;settext,"/Senser";shadowlengthx,0;shadowlengthy,2;shadowcolor,color("#000000");); InitCommand=cmd(horizalign,left;x,SCREEN_CENTER_X-14;y,SCREEN_CENTER_Y-14;zoom,0.5;settext,"/Senser";shadowlengthx,0;shadowlengthy,2;shadowcolor,color("#000000");maxwidth,360);
SetCommand=function(self) SetCommand=function(self)
local s = "---"; local s = "---";
local song = GAMESTATE:GetCurrentSong(); local song = GAMESTATE:GetCurrentSong();
@@ -423,29 +423,34 @@ local t = Def.ActorFrame {
-- OffCommand=cmd(linear,0.5;zoomy,0); -- OffCommand=cmd(linear,0.5;zoomy,0);
--}; --};
LoadActor( "_balloon long" ) .. { Def.ActorFrame{
InitCommand=cmd(x,SCREEN_CENTER_X+58;y,SCREEN_CENTER_Y-33;playcommand,"Set";finishtweening); InitCommand=cmd(x,SCREEN_CENTER_X-190;y,SCREEN_CENTER_Y-32);
OnCommand=cmd(playcommand,"Set"); ShowCommand=cmd(linear,0.2;diffusealpha,1);
OffCommand=cmd(linear,0.2;diffusealpha,0;rotationz,-25); HideCommand=cmd(linear,0.2;diffusealpha,0);
ShowCommand=cmd(stoptweening;diffusealpha,0;linear,0.2;diffusealpha,1;rotationz,0);
HideCommand=cmd(stoptweening;linear,0.2;diffusealpha,0;rotationz,-25); LoadActor("long balloon");
SetCommand=function(self) LoadFont("_terminator two 32")..{
local Song = GAMESTATE:GetCurrentSong() Name="SongLength";
self:playcommand( (Song and Song:IsLong()) and "Show" or "Hide" ); InitCommand=cmd(x,-56;y,-10;shadowlength,0;diffuse,color("#E2E2E2");diffusebottomedge,color("#CECECE");strokecolor,color("#00000000"));
end; SetCommand=function(self)
CurrentSongChangedMessageCommand=cmd(playcommand,"Set"); local Song = GAMESTATE:GetCurrentSong();
}; local time = Song:MusicLengthSeconds();
LoadActor( "_balloon marathon" ) .. { time = SecondsToMSSMsMs(time);
InitCommand=cmd(x,SCREEN_CENTER_X+58;y,SCREEN_CENTER_Y-33;playcommand,"Set";finishtweening); time = string.sub(time, 0, string.len(time)-3);
OnCommand=cmd(playcommand,"Set"); self:settext( time );
OffCommand=cmd(linear,0.2;diffusealpha,0;rotationz,-25); end;
ShowCommand=cmd(stoptweening;diffusealpha,0;linear,0.2;diffusealpha,1;rotationz,0); };
HideCommand=cmd(stoptweening;linear,0.2;diffusealpha,0;rotationz,-25); LoadFont("_venacti 24")..{
SetCommand=function(self) Name="NumStages";
local Song = GAMESTATE:GetCurrentSong() InitCommand=cmd(x,32;y,-4;shadowlength,0;zoom,0.5;skewx,-0.2;diffusebottomedge,color("#068EE1FF");strokecolor,color("#FF000000"));
self:playcommand( (Song and Song:IsMarathon()) and "Show" or "Hide" ); SetCommand=function(self)
end; local Song = GAMESTATE:GetCurrentSong();
CurrentSongChangedMessageCommand=cmd(playcommand,"Set"); local postfix = " STAGES";
if Song:IsLong() then self:settext("2"..postfix);
elseif Song:IsMarathon() then self:settext("3"..postfix);
end;
end;
};
}; };
LoadFont("_numbers2") .. { LoadFont("_numbers2") .. {