CustomDiffiuclty cleanup, now takes CourseType as a parameter

DifficultyList -> StepsDisplayList
Course editor screen cleanup
Change GameManager back to singleton for consistency with other classes
This commit is contained in:
Chris Danford
2009-08-09 02:59:32 +00:00
parent 204f7edac0
commit cd139430f5
72 changed files with 537 additions and 447 deletions
+8 -32
View File
@@ -1,38 +1,14 @@
local CustomDifficultyColors = {
Novice = color("#ff32f8"),
Normal = color("#2cff00"),
Hard = color("#fee600"),
Crazy = color("#ff2f39"),
HalfDouble = color("#33ff33"), -- greenish
Freestyle = color("#A020A0"), -- purplish
Nightmare = color("#1cd8ff"),
Edit = color("0.8,0.8,0.8,1"), -- gray
local GameCustomDifficultyColors = {
Easy = color("#04fe04"),
Normal = color("#fefb04"),
Hard = color("#fe7704"),
Crazy = color("#fe0a04"),
HalfDouble = color("#04feba"),
Freestyle = color("#fe04f5"),
Nightmare = color("#04c6fe"),
};
function CustomDifficultyToColor( sCustomDifficulty )
local c = CustomDifficultyColors[sCustomDifficulty]
if c then return c end
return color("#000000");
end
function CustomDifficultyToDarkColor( sCustomDifficulty )
local c = CustomDifficultyToColor(sCustomDifficulty);
return { c[1]/2, c[2]/2, c[3]/2, c[4] };
end
function CustomDifficultyToLightColor( sCustomDifficulty )
local c = CustomDifficultyToColor(sCustomDifficulty);
return { scale(c[1],0,1,0.5,1), scale(c[2],0,1,0.5,1), scale(c[3],0,1,0.5,1), c[4] };
end
function CourseDifficutlyToColor( cd )
local c = CourseDifficultyColors[cd]
if c then return c end
return color("#000000");
end
-- (c) 2009 Chris Danford, Jason Felds