Skip to content

Commit

Permalink
Changed circles to squarese for dots in hit delta graph
Browse files Browse the repository at this point in the history
  • Loading branch information
123jimin committed Aug 26, 2020
1 parent 4f9b9a0 commit 24e1417
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/skins/Default/scripts/result.lua
Original file line number Diff line number Diff line change
Expand Up @@ -485,21 +485,21 @@ draw_hit_graph = function(x, y, w, h, xfocus, xscale)
local hitStatSize = 1

if hitStat.rating == 2 then
hitStatSize = 0.75
hitStatSize = 1.25
gfx.FillColor(255, 150, 0, 160)
elseif hitStat.rating == 1 then
hitStatSize = 1
hitStatSize = 1.75
gfx.FillColor(255, 0, 200, 160)
elseif hitStat.rating == 0 then
hitStatSize = 1.25
hitStatSize = 2
gfx.FillColor(255, 0, 0, 160)
end

gfx.BeginPath()
if xscale > 1 then
gfx.Text(laneNames[hitStat.lane + 1], x+hitStatX, y+hitStatY)
else
gfx.Circle(x+hitStatX, y+hitStatY, hitStatSize)
gfx.Rect(x+hitStatX-hitStatSize/2, y+hitStatY-hitStatSize/2, hitStatSize, hitStatSize)
gfx.Fill()
end
end
Expand Down Expand Up @@ -559,7 +559,7 @@ draw_left_graph = function(x, y, w, h)
gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_BOTTOM)
gfx.BeginPath()
gfx.FillColor(255, 255, 255, 128)
gfx.Text(string.format("Mean absolute delta: %.1fms", result.meanHitDeltaAbs), x+4, y+h)
gfx.Text(string.format("Mean deviation: %.1fms", result.meanHitDeltaAbs), x+4, y+h)
end

-- End gauge display
Expand Down

0 comments on commit 24e1417

Please sign in to comment.