From 960c9fdfd35ab81968c60b67cff7faf6bcd2efcd Mon Sep 17 00:00:00 2001 From: FajsiEx Date: Wed, 18 Aug 2021 15:12:50 +0200 Subject: [PATCH] - gauge breakpoint for excessive rate in result --- scripts/result.lua | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/scripts/result.lua b/scripts/result.lua index 5083e3a..e5a0d3f 100644 --- a/scripts/result.lua +++ b/scripts/result.lua @@ -286,7 +286,6 @@ local drawRightPanelContent = function() elseif result.gauge_type == 1 then gaugeFillImage = gaugeExcFillImage; - gaugeBreakpoint = 0.3; elseif result.gauge_type == 2 then gaugeFillImage = gaugePermFillImage; elseif result.gauge_type == 3 then -- BLASTIVE RATE @@ -399,6 +398,20 @@ local drawBottomPanelContent = function (deltatime) -- Draw IR text gfx.FontSize(22) gfx.Text(irText, bottomPanelX+80, bottomPanelY+461); + + -- Draw median and mean hit delta + local leftX = bottomPanelX+600 + local rightX = bottomPanelX+900 + local baseY = bottomPanelY+440 + local detailTextMargin = 25 + + gfx.FontSize(20) + gfx.Text('Median hit delta', leftX, baseY); + gfx.Text('Mean hit delta', leftX, baseY+detailTextMargin); + + gfx.TextAlign(gfx.TEXT_ALIGN_RIGHT + gfx.TEXT_ALIGN_MIDDLE) + gfx.Text(result.medianHitDelta, rightX, baseY); + gfx.Text(result.meanHitDelta, rightX, baseY+detailTextMargin); end local drawJacketPanel = function() @@ -516,15 +529,6 @@ result_set = function() end earlyLateBarsStats.criticals = result.perfects -- Criticals are for all objects - - -- misses on LONGs or LAZERs are automatically late errors - -- so we add errors that are not ealy or late to late errors - -- earlyLateBarsStats.lateErrors = earlyLateBarsStats.lateErrors + - -- (result.misses - - -- earlyLateBarsStats.lateErrors - - -- earlyLateBarsStats.earlyErrors) - - -- criticals are same for all objects so we just copy them from results end render = function(deltaTime, showStats)