2007-04-21 20:41:57 +00:00
|
|
|
local time = THEME:GetMetric( "ScreenMusicScroll", "TimerSeconds" )
|
|
|
|
|
local num = time * 2
|
2007-04-07 13:07:35 +00:00
|
|
|
local fontPath = THEME:GetPathF( "ScreenMusicScroll", "titles" )
|
2007-05-20 18:05:35 +00:00
|
|
|
|
|
|
|
|
local t = Def.ActorScroller {
|
|
|
|
|
NumItemsToDraw = 6;
|
|
|
|
|
SecondsPerItem = time / num;
|
|
|
|
|
TransformFunction = function( self, offset, itemIndex, numItems )
|
|
|
|
|
self:y( offset*80 )
|
|
|
|
|
end;
|
|
|
|
|
BeginCommand = cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scrollwithpadding,3,3);
|
|
|
|
|
}
|
|
|
|
|
|
2007-04-07 13:07:35 +00:00
|
|
|
for i=1,num do
|
|
|
|
|
local song = SONGMAN:GetRandomSong()
|
|
|
|
|
local color = SONGMAN:GetSongColor( song )
|
2007-05-20 18:09:56 +00:00
|
|
|
local text = Def.BitmapText {
|
2007-04-07 13:07:35 +00:00
|
|
|
_Level = 1;
|
|
|
|
|
File = fontPath;
|
|
|
|
|
Text = song:GetDisplayFullTitle();
|
|
|
|
|
OnCommand = cmd(zoom,0.7;diffuse,color);
|
|
|
|
|
}
|
|
|
|
|
|
2007-05-20 18:13:10 +00:00
|
|
|
table.insert( t, Def.ActorFrame { text } )
|
2007-04-07 13:07:35 +00:00
|
|
|
end
|
|
|
|
|
|
2007-05-20 18:05:35 +00:00
|
|
|
return t;
|