Fixed StepsDisplay commands to check for CustomDifficulty being an empty string.
This commit is contained in:
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user