Files
itgmania212121/stepmania/Themes/default/BGAnimations/ScreenMusicScroll overlay.lua
T
Glenn Maynard fe718e19da simplify
2007-05-20 18:13:10 +00:00

28 lines
720 B
Lua

local time = THEME:GetMetric( "ScreenMusicScroll", "TimerSeconds" )
local num = time * 2
local fontPath = THEME:GetPathF( "ScreenMusicScroll", "titles" )
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 )
local text = Def.BitmapText {
_Level = 1;
File = fontPath;
Text = song:GetDisplayFullTitle();
OnCommand = cmd(zoom,0.7;diffuse,color);
}
table.insert( t, Def.ActorFrame { text } )
end
return t;