move title menu special case to a Lua branch

This commit is contained in:
Glenn Maynard
2005-06-25 02:01:22 +00:00
parent 8097c2dd61
commit f94ff70548
@@ -1,4 +1,10 @@
function ScreenTitleBranch()
-- Don't show the title menu (says "Press Start") if there are 0 credits
-- and inserted and CoinMode is pay.
if GAMESTATE:GetCoinsNeededToJoin() > GAMESTATE:GetCoins() then
return THEME:GetMetric( "Common", "InitialScreen" )
end
if GAMESTATE:GetCoinMode() == COIN_MODE_HOME then return "ScreenTitleMenu" end
return "ScreenTitleJoin"
end