xml -> lua. The credits are now very easy to modify, just add a time in the correct section.

This commit is contained in:
Steve Checkoway
2007-04-07 11:18:37 +00:00
parent 00d44c63bc
commit 7c5d42fb59
3 changed files with 206 additions and 0 deletions
@@ -0,0 +1,23 @@
local template = Def.ActorFrame {
children = {
Def.Sprite {
OnCommand = cmd(LoadBackground,GetRandomSongBackground();scaletoclipped,312,232);
};
LoadActor( THEME:GetPathG("ScreenCredits", "background frame") );
};
}
local children = {}
for i=1,10 do
table.insert( children, template )
end
return Def.ActorScroller {
SecondsPerItem = 4.25;
NumItemsToDraw = 4;
TransformFunction = function( self, offset, itemIndex, numItems )
self:y(-240*offset)
end;
OnCommand = cmd(scrollwithpadding,2,3);
children = children;
}