Skip to content

Commit

Permalink
Add Wifescore to Offset plot hover on Evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Nov 10, 2019
1 parent 92eb552 commit 1a32edd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Themes/Til Death/BGAnimations/offsetplot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,17 @@ o[#o + 1] =
bar:x(xpos)
txt:x(xpos - 4)
txt:y(ypos)
local judgments = SCREENMAN:GetTopScreen():GetReplaySnapshotJudgmentsForNoterow(convertXToRow(xpos))
local row = convertXToRow(xpos)
local judgments = SCREENMAN:GetTopScreen():GetReplaySnapshotJudgmentsForNoterow(row)
local wifescore = SCREENMAN:GetTopScreen():GetReplaySnapshotWifePercentForNoterow(row) * 100
local marvCount = judgments[10]
local perfCount = judgments[9]
local greatCount = judgments[8]
local goodCount = judgments[7]
local badCount = judgments[6]
local missCount = judgments[5]

txt:settextf("%s: %d\n%s: %d\n%s: %d\n%s: %d\n%s: %d\n%s: %d", "Marvelous", marvCount, "Perfect", perfCount, "Great", greatCount, "Good", goodCount, "Bad", badCount, "Miss", missCount)
txt:settextf("%s: %d\n%s: %d\n%s: %d\n%s: %d\n%s: %d\n%s: %d\n%s: %f", "Marvelous", marvCount, "Perfect", perfCount, "Great", greatCount, "Good", goodCount, "Bad", badCount, "Miss", missCount, "WifePercent", wifescore)
else
bar:visible(false)
txt:visible(false)
Expand Down

0 comments on commit 1a32edd

Please sign in to comment.