Skip to content

Commit

Permalink
leaderboard fixes that arent fixes because mp should be separate but...
Browse files Browse the repository at this point in the history
- add grades
- msd default to -1 for mp
- proper grade default
- wife default not low enough for autoplay sorting
- theme blow up on line 66
  • Loading branch information
MinaciousGrace committed Dec 1, 2018
1 parent 42212e3 commit e67ecf1
Showing 1 changed file with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,21 @@ local function scoreUsingMultiScore(idx)
return multiScores[idx] and multiScores[idx].user or nil
end,
GetWifeGrade = function()
return multiScores[idx] and GetGradeFromPercent(multiScores[idx].wife) or 0
return multiScores[idx] and GetGradeFromPercent(multiScores[idx].wife) or "Grade_Tier01"
end,
GetWifeScore = function()
return multiScores[idx] and multiScores[idx].wife or -500
return multiScores[idx] and multiScores[idx].wife or -5000000
end,
GetSkillsetSSR = function()
return 0
return -1
end,
GetJudgmentString = function()
return multiScores[idx] and multiScores[idx].jdgstr or ""
end
}
end
local onlineScores = {}
local isMulti = NSMAN:IsETTP() and SCREENMAN:GetTopScreen():GetName() == "ScreenNetStageInformation" or false
local isMulti = NSMAN:IsETTP() and SCREENMAN:GetTopScreen() and SCREENMAN:GetTopScreen():GetName() == "ScreenNetStageInformation" or false
if isMulti then
multiScores = NSMAN:GetMPLeaderboard()
for i = 1, 5 do
Expand Down Expand Up @@ -216,10 +216,20 @@ function scoreEntry(i)
addLabel(
"wife",
function(self, hs)
self:settextf("%05.2f%%", hs:GetWifeScore() * 100):diffuse(byGrade(GetGradeFromPercent(hs:GetWifeScore())))
self:settextf("%05.2f%%", hs:GetWifeScore() * 100):diffuse(byGrade(hs:GetWifeGrade()))
end,
1.8 * WIDTH
)
addLabel(
"grade",
function(self, hs)
self:settext(getGradeStrings(hs:GetWifeGrade()))
self:diffuse(byGrade(hs:GetWifeGrade()))
self:halign(0.5)
end,
2 * WIDTH,
ENTRY_HEIGHT / 2
)
addLabel(
"judges",
function(self, hs)
Expand Down

0 comments on commit e67ecf1

Please sign in to comment.