Removing CoinMode here.
Don't know if these are even used.
This commit is contained in:
@@ -48,13 +48,7 @@ return Def.ActorFrame {
|
|||||||
LoadFont("_arial black 20px")..{
|
LoadFont("_arial black 20px")..{
|
||||||
InitCommand=cmd(xy,SCREEN_CENTER_X,SCREEN_HEIGHT-20;zoom,1;shadowlength,0;playcommand,"Text");
|
InitCommand=cmd(xy,SCREEN_CENTER_X,SCREEN_HEIGHT-20;zoom,1;shadowlength,0;playcommand,"Text");
|
||||||
TextCommand=function(self)
|
TextCommand=function(self)
|
||||||
if GAMESTATE:GetCoinMode() == 'CoinMode_Pay' then
|
if GAMESTATE:GetCoinMode() == 'CoinMode_Free' 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")
|
self:settext("Free Play")
|
||||||
else --homemode
|
else --homemode
|
||||||
self:settext("Home Mode");
|
self:settext("Home Mode");
|
||||||
|
|||||||
@@ -20,8 +20,7 @@ function EvaluationNext()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function GameOverNext()
|
function GameOverNext()
|
||||||
if (GAMESTATE:GetCoinMode() == 'CoinMode_Pay' and GAMESTATE:GetCoins() > 0)
|
if GAMESTATE:GetCoinMode() == 'CoinMode_Free'
|
||||||
or GAMESTATE:GetCoinMode() == 'CoinMode_Free'
|
|
||||||
then
|
then
|
||||||
return "ScreenTitleMenu"
|
return "ScreenTitleMenu"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user