Skip to content

Commit

Permalink
update offsettojudgecolor to internally convert from ms to s
Browse files Browse the repository at this point in the history
fairly certain this is the only remaining function that requires external conversion from ms to s so let's keep it consistent
  • Loading branch information
MinaciousGrace committed Jul 16, 2018
1 parent 92cc75a commit 81586e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Themes/Til Death/Scripts/01 color_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ function getVividDifficultyColor(diff)
return color(colorConfig:get_data().difficultyVivid[diff]) or color("#ffffff")
end

-- expecting ms input (153, 13.321, etc) so convert to seconds to compare to judgment windows -mina
function offsetToJudgeColor(offset,scale)
local offset = math.abs(offset)
local offset = math.abs(offset/1000)
if not scale then
scale = PREFSMAN:GetPreference("TimingWindowScale")
end
Expand Down

0 comments on commit 81586e0

Please sign in to comment.