From f94ff705488111cb3ea0b6c75f0a4838395349d2 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 25 Jun 2005 02:01:22 +0000 Subject: [PATCH] move title menu special case to a Lua branch --- stepmania/Themes/default/Scripts/Branches.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/Themes/default/Scripts/Branches.lua b/stepmania/Themes/default/Scripts/Branches.lua index 1c6538dab1..e0fcec8deb 100644 --- a/stepmania/Themes/default/Scripts/Branches.lua +++ b/stepmania/Themes/default/Scripts/Branches.lua @@ -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