From 7393835644503fa37b99eebcc9bc9e0f486cc724 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Thu, 7 Feb 2013 22:07:00 -0500 Subject: [PATCH] Removing CoinMode here. Don't know if these are even used. --- .../BGAnimations/ScreenSystemLayer overlay.lua | 8 +------- Themes/_themekit-piu/Scripts/03 branches.lua | 3 +-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Themes/_themekit-piu/BGAnimations/ScreenSystemLayer overlay.lua b/Themes/_themekit-piu/BGAnimations/ScreenSystemLayer overlay.lua index 16f54e6cd0..464287e876 100644 --- a/Themes/_themekit-piu/BGAnimations/ScreenSystemLayer overlay.lua +++ b/Themes/_themekit-piu/BGAnimations/ScreenSystemLayer overlay.lua @@ -48,13 +48,7 @@ return Def.ActorFrame { LoadFont("_arial black 20px")..{ InitCommand=cmd(xy,SCREEN_CENTER_X,SCREEN_HEIGHT-20;zoom,1;shadowlength,0;playcommand,"Text"); TextCommand=function(self) - if GAMESTATE:GetCoinMode() == 'CoinMode_Pay' then - local Coins = GAMESTATE:GetCoins() - local CoinForCredit = GAMESTATE:GetCoinsNeededToJoin() - local Credits = math.floor(Coins/CoinForCredit) - local Remain = Coins % CoinForCredit - self:settext(string.format("CREDIT(S) %i[%i/%i]", Credits, Remain, CoinForCredit)) - elseif GAMESTATE:GetCoinMode() == 'CoinMode_Free' then + if GAMESTATE:GetCoinMode() == 'CoinMode_Free' then self:settext("Free Play") else --homemode self:settext("Home Mode"); diff --git a/Themes/_themekit-piu/Scripts/03 branches.lua b/Themes/_themekit-piu/Scripts/03 branches.lua index 712fe33d25..06a808e4ef 100644 --- a/Themes/_themekit-piu/Scripts/03 branches.lua +++ b/Themes/_themekit-piu/Scripts/03 branches.lua @@ -20,8 +20,7 @@ function EvaluationNext() end function GameOverNext() - if (GAMESTATE:GetCoinMode() == 'CoinMode_Pay' and GAMESTATE:GetCoins() > 0) - or GAMESTATE:GetCoinMode() == 'CoinMode_Free' + if GAMESTATE:GetCoinMode() == 'CoinMode_Free' then return "ScreenTitleMenu" else