various theme changes from midi
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user