Fixed StepsDisplay commands to check for CustomDifficulty being an empty string.

This commit is contained in:
Kyzentun
2014-12-24 19:11:45 -07:00
parent 4a4a28878c
commit ee2abfac94
2 changed files with 10 additions and 10 deletions
+5 -5
View File
@@ -422,7 +422,7 @@ MoveCommand=decelerate,0.05
FrameX=
FrameSetCommand=%function(self,param) \
if param.CustomDifficulty then \
if param.CustomDifficulty and param.CustomDifficulty ~= "" then \
self:diffuse(ColorMidTone( CustomDifficultyToColor(param.CustomDifficulty) )); \
else \
self:diffuse(color('1,1,1,1')); \
@@ -436,7 +436,7 @@ ShowMeter=true
MeterX=56
MeterOnCommand=shadowlength,1;zoom,0.65;textglowmode,'TextGlowMode_Inner';
MeterSetCommand=%function(self,param) \
if param.CustomDifficulty then \
if param.CustomDifficulty and param.CustomDifficulty ~= "" then \
self:diffuse(CustomDifficultyToColor(param.CustomDifficulty)); \
self:shadowcolor(CustomDifficultyToDarkColor(param.CustomDifficulty)); \
end; \
@@ -457,7 +457,7 @@ DescriptionSetCommand=%function(self,param) \
if self:GetText() == "" then \
self:settext("Edit"); \
end; \
if param.CustomDifficulty then \
if param.CustomDifficulty and param.CustomDifficulty ~= "" then \
self:diffuse(CustomDifficultyToColor(param.CustomDifficulty)); \
self:shadowcolor(CustomDifficultyToDarkColor(param.CustomDifficulty)); \
end; \
@@ -1167,7 +1167,7 @@ MeterX=56-32
MeterY=0
MeterOnCommand=shadowlength,1;textglowmode,'TextGlowMode_Inner'
MeterSetCommand=%function(self,param) \
if param.CustomDifficulty then \
if param.CustomDifficulty and param.CustomDifficulty ~= "" then \
self:diffuse(CustomDifficultyToColor(param.CustomDifficulty)); \
self:shadowcolor(CustomDifficultyToDarkColor(param.CustomDifficulty)); \
end; \
@@ -1193,7 +1193,7 @@ DescriptionSetCommand=%function(self,param) \
if self:GetText() == "" then \
self:settext("Edit"); \
end; \
if param.CustomDifficulty then \
if param.CustomDifficulty and param.CustomDifficulty ~= "" then \
self:diffuse(CustomDifficultyToColor(param.CustomDifficulty)); \
self:shadowcolor(CustomDifficultyToDarkColor(param.CustomDifficulty)); \
end; \