diff --git a/Themes/_themekit-piu/BGAnimations/ScreenSystemLayer overlay.lua b/Themes/_themekit-piu/BGAnimations/ScreenSystemLayer overlay.lua index 464287e876..16f54e6cd0 100644 --- a/Themes/_themekit-piu/BGAnimations/ScreenSystemLayer overlay.lua +++ b/Themes/_themekit-piu/BGAnimations/ScreenSystemLayer overlay.lua @@ -48,7 +48,13 @@ 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_Free' then + 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 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 06a808e4ef..712fe33d25 100644 --- a/Themes/_themekit-piu/Scripts/03 branches.lua +++ b/Themes/_themekit-piu/Scripts/03 branches.lua @@ -20,7 +20,8 @@ function EvaluationNext() end function GameOverNext() - if GAMESTATE:GetCoinMode() == 'CoinMode_Free' + if (GAMESTATE:GetCoinMode() == 'CoinMode_Pay' and GAMESTATE:GetCoins() > 0) + or GAMESTATE:GetCoinMode() == 'CoinMode_Free' then return "ScreenTitleMenu" else