new ending screens

This commit is contained in:
Chris Danford
2009-04-15 19:11:59 +00:00
parent c3b5eee788
commit fb1165e6be
47 changed files with 314 additions and 263 deletions
@@ -171,8 +171,9 @@ function SelectEndingScreen()
end
local grade = STATSMAN:GetBestFinalGrade()
if Grade:Compare( grade, "Grade_Tier03" ) >= 0 then return "ScreenMusicScroll" end
return "ScreenCredits"
if Grade:Compare( grade, "Grade_Tier03" ) >= 0 then return "ScreenEnding3" end
if Grade:Compare( grade, "Grade_Tier05" ) >= 0 then return "ScreenEnding2" end
return "ScreenEnding1"
end
function ScreenProfileSaveNextScreen()
@@ -86,6 +86,15 @@ function tableshuffle( t )
return ret
end
function tableslice( t, num )
local ret = { }
for i=1,table.getn(t) do
table.insert( ret, i, t[i] );
end
return ret
end
function GetRandomSongBackground()
for i=0,50 do
local song = SONGMAN:GetRandomSong()