changes to colors

This commit is contained in:
AJ Kelly
2011-08-20 20:28:57 -05:00
parent 8a6da9edcd
commit 7db126d138
+6 -22
View File
@@ -116,21 +116,13 @@ function ColorDarkTone(c)
end
function PlayerColor( pn )
if pn == PLAYER_1 then
return color("#ef403d") -- pink-red
end
if pn == PLAYER_2 then
return color("#0089cf") -- sea-blue
end
if pn == PLAYER_1 then return color("#ef403d") end -- pink-red
if pn == PLAYER_2 then return color("#0089cf") end -- sea-blue
return color("1,1,1,1")
end
function PlayerScoreColor( pn )
if pn == PLAYER_1 then
return color("#ef403d") -- pink-red
end
if pn == PLAYER_2 then
return color("#0089cf") -- sea-blue
end
if pn == PLAYER_1 then return color("#ef403d") end -- pink-red
if pn == PLAYER_2 then return color("#0089cf") end -- sea-blue
return color("1,1,1,1")
end
@@ -153,11 +145,7 @@ function StepsOrTrailToColor(StepsOrTrail)
end
function StageToColor( stage )
local c = GameColor.Stage[stage]
if c then
return c
end
return color("#000000")
return GameColor.Stage[stage] or color("#000000")
end
function StageToStrokeColor( stage )
@@ -166,11 +154,7 @@ function StageToStrokeColor( stage )
end
function JudgmentLineToColor( i )
local c = GameColor.Judgment[i]
if c then
return c
end
return color("#000000")
return GameColor.Judgment[i] or color("#000000")
end
function JudgmentLineToStrokeColor( i )