various theme changes from midi

This commit is contained in:
AJ Kelly
2010-07-03 20:55:25 -05:00
parent b40f144f1a
commit d9aee67537
22 changed files with 291 additions and 78 deletions
+15 -1
View File
@@ -27,6 +27,20 @@ function SelectMusicOrCourse()
end
Branch = {
Init = function()
if GAMESTATE:GetCoinMode() == 'CoinMode_Home' then
return "ScreenInit"
else
return "ScreenInit"
end
end,
AfterInit = function()
if GAMESTATE:GetCoinMode() == 'CoinMode_Home' then
return Branch.TitleMenu()
else
return "ScreenTitle"
end
end,
TitleMenu = function()
-- home mode is the most assumed use of sm-ssc.
if GAMESTATE:GetCoinMode() == "CoinMode_Home" then
@@ -37,7 +51,7 @@ Branch = {
-- if no credits are inserted, don't show the Join screen. SM4 has
-- this as the initial screen, but that means we'd be stuck in a
-- loop with ScreenInit. No good.
return "ScreenDemonstration"
return "ScreenTitleJoin"
else
return "ScreenTitleJoin"
end
+14
View File
@@ -27,6 +27,20 @@ function LoadSongBackground()
}
end
function Sprite:LoadFromCurrentSongBackground()
local song = GAMESTATE:GetCurrentSong();
if not song then
local trail = GAMESTATE:GetCurrentTrail(GAMESTATE:GetMasterPlayerNumber());
local e = trail:GetEntries()
if #e > 0 then
song = e[1]:GetSong();
end
end
if not song then return end
self:LoadFromSongBackground(song);
end
function Sprite:position( f )
self:GetTexture():position( f )