Skip to content

Commit

Permalink
kill more dp displays
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 2, 2017
1 parent 7c0d7b1 commit 1fc8320
Showing 1 changed file with 1 addition and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,8 @@ t[#t+1] = Def.ActorFrame{
BeginCommand=cmd(queuecommand,"Set"),
SetCommand=function(self)
if song and score then
if score:GetWifeScore() == 0 then
self:settextf("%05.2f%%", score:GetPercentDP()*100)
self:diffuse(getGradeColor(score:GetGrade()))
else
self:settextf("%05.2f%%", notShit.floor(score:GetWifeScore()*10000)/100)
self:diffuse(getGradeColor(score:GetWifeGrade()))
end
else
self:settext("")
end
Expand All @@ -162,51 +157,7 @@ t[#t+1] = Def.ActorFrame{
BeginCommand=cmd(queuecommand,"Set"),
SetCommand=function(self)
if song and score then
if score:GetWifeScore() == 0 then
self:settext("DP*")
else
self:settext(scoringToText(scoreType))
end
else
self:settext("")
end
end,
CurrentRateChangedMessageCommand=cmd(queuecommand,"Set"),
RefreshChartInfoMessageCommand=cmd(queuecommand,"Set"),
},

-- Secondary percent score
LoadFont("Common Normal")..{
InitCommand=cmd(xy,frameX+130,frameY+63;zoom,0.6;halign,0.5;maxwidth,125;valign,1),
BeginCommand=cmd(queuecommand,"Set"),
SetCommand=function(self)
if song and score then
if score:GetWifeScore() == 0 then
self:settextf("NA")
self:diffuse(getGradeColor("Grade_Failed"))
else
self:settextf("%05.2f%%", score:GetPercentDP()*100)
self:diffuse(getGradeColor(score:GetGrade()))
end
else
self:settext("")
end
end,
RefreshChartInfoMessageCommand=cmd(queuecommand,"Set"),
CurrentRateChangedMessageCommand=cmd(queuecommand,"Set"),
},

-- Secondary ScoreType
LoadFont("Common Normal")..{
InitCommand=cmd(xy,frameX+173,frameY+63;zoom,0.4;halign,1;valign,1),
BeginCommand=cmd(queuecommand,"Set"),
SetCommand=function(self)
if song and score then
if score:GetWifeScore() == 0 then
self:settext("Wife")
else
self:settext("DP")
end
self:settext(scoringToText(scoreType))
else
self:settext("")
end
Expand Down

0 comments on commit 1fc8320

Please sign in to comment.