Removing CoinMode here.

Don't know if these are even used.
This commit is contained in:
Jason Felds
2013-02-07 22:07:00 -05:00
parent 15b3ee1a9a
commit 7393835644
2 changed files with 2 additions and 9 deletions
@@ -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");
+1 -2
View File
@@ -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