From 81586e00e85dc66e3192c3cdc494668fad7e807c Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 15 Jul 2018 21:47:18 -0400 Subject: [PATCH] update offsettojudgecolor to internally convert from ms to s fairly certain this is the only remaining function that requires external conversion from ms to s so let's keep it consistent --- Themes/Til Death/Scripts/01 color_config.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Themes/Til Death/Scripts/01 color_config.lua b/Themes/Til Death/Scripts/01 color_config.lua index 1e0d56273b..d7a899bbe0 100644 --- a/Themes/Til Death/Scripts/01 color_config.lua +++ b/Themes/Til Death/Scripts/01 color_config.lua @@ -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