use Lua function PlayerColor instead of color constants

This commit is contained in:
Chris Danford
2005-02-12 23:04:46 +00:00
parent 8decda4f63
commit 4264182ea1
2 changed files with 13 additions and 8 deletions
@@ -0,0 +1,5 @@
function PlayerColor( pn )
if pn == PLAYER_1 then return "0.4,1.0,0.8,1" end -- sea green
if pn == PLAYER_2 then return "1.0,0.5,0.2,1" end -- orange
return "1,1,1,1"
end
+8 -8
View File
@@ -1,6 +1,6 @@
[Common] [Common]
ColorP1=0.4,1.0,0.8,1 // sea green ColorP1=PlayerColor(PLAYER_1)
ColorP2=1.0,0.5,0.2,1 // orange ColorP2=PlayerColor(PLAYER_2)
FirstRunInitialScreen=ScreenCompany FirstRunInitialScreen=ScreenCompany
InitialScreen=ScreenCompany InitialScreen=ScreenCompany
WindowTitle=StepMania WindowTitle=StepMania
@@ -2835,19 +2835,19 @@ WipeDimFactor=0.5,0.5,0.5,0.5
[LifeMeterBattery Percent] [LifeMeterBattery Percent]
PercentP1X=+20 PercentP1X=+20
PercentP1Y=0 PercentP1Y=0
PercentP1OnCommand=zoom,0.7;shadowlength,0;diffuse,0.4,1.0,0.8,1 PercentP1OnCommand=@"zoom,0.7;shadowlength,0;diffuse,"..PlayerColor(PLAYER_1)
PercentP1OffCommand= PercentP1OffCommand=
PercentP2X=-20 PercentP2X=-20
PercentP2Y=0 PercentP2Y=0
PercentP2OnCommand=zoom,0.7;shadowlength,0;diffuse,1.0,0.5,0.2,1 PercentP2OnCommand=@"zoom,0.7;shadowlength,0;diffuse,"..PlayerColor(PLAYER_2)
PercentP2OffCommand= PercentP2OffCommand=
DancePointsP1X=+20 DancePointsP1X=+20
DancePointsP1Y=0 DancePointsP1Y=0
DancePointsP1OnCommand=zoom,0.7;shadowlength,0;diffuse,0.4,1.0,0.8,1 DancePointsP1OnCommand=@"zoom,0.7;shadowlength,0;diffuse,"..PlayerColor(PLAYER_1)
DancePointsP1OffCommand= DancePointsP1OffCommand=
DancePointsP2X=-20 DancePointsP2X=-20
DancePointsP2Y=0 DancePointsP2Y=0
DancePointsP2OnCommand=zoom,0.7;shadowlength,0;diffuse,0.4,1.0,0.8,1 DancePointsP2OnCommand=@"zoom,0.7;shadowlength,0;diffuse,"..PlayerColor(PLAYER_2)
DancePointsP2OffCommand= DancePointsP2OffCommand=
DancePointsDigits=5 DancePointsDigits=5
PercentDecimalPlaces=1 PercentDecimalPlaces=1
@@ -2887,11 +2887,11 @@ PercentUseRemainder=1
[ScoreDisplayPercentage Percent] [ScoreDisplayPercentage Percent]
PercentP1X=+20 PercentP1X=+20
PercentP1Y=0 PercentP1Y=0
PercentP1OnCommand=shadowlength,0;diffuse,0.4,1.0,0.8,1 PercentP1OnCommand=@"shadowlength,0;diffuse,"..PlayerColor(PLAYER_1)
PercentP1OffCommand= PercentP1OffCommand=
PercentP2X=-20 PercentP2X=-20
PercentP2Y=0 PercentP2Y=0
PercentP2OnCommand=shadowlength,0;diffuse,1.0,0.5,0.2,1 PercentP2OnCommand=@"shadowlength,0;diffuse,"..PlayerColor(PLAYER_2)
PercentP2OffCommand= PercentP2OffCommand=
DancePointsDigits=5 DancePointsDigits=5
PercentDecimalPlaces=3 PercentDecimalPlaces=3