Files
itgmania212121/stepmania/Themes/default/BGAnimations/ScreenMusicScroll overlay.lua
T

28 lines
720 B
Lua
Raw Normal View History

2007-04-21 20:41:57 +00:00
local time = THEME:GetMetric( "ScreenMusicScroll", "TimerSeconds" )
local num = time * 2
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);
}
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 {
_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 } )
end
2007-05-20 18:05:35 +00:00
return t;