The beginning of arcade mode stuff. Mainly only deals with TitleJoin and Demonstration at the moment and pretty much assumes Event Mode is on.

This commit is contained in:
AJ Kelly
2010-05-15 15:56:45 -05:00
parent fff7a64f71
commit dd5fa35ff0
7 changed files with 163 additions and 33 deletions
+13 -1
View File
@@ -25,7 +25,19 @@ function SelectMusicOrCourse()
end;
Branch = {
TitleMenu = "ScreenTitleMenu",
TitleMenu = function()
-- home mode is the most assumed use of sm-ssc.
if GAMESTATE:GetCoinMode() == "CoinMode_Home" then return "ScreenTitleMenu" end;
-- arcade junk:
if GAMESTATE:GetCoinsNeededToJoin() > GAMESTATE:GetCoins() then
-- 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";
else
return "ScreenTitleJoin"
end;
end,
AfterProfileLoad = function()
return "ScreenSelectProfile"
end,