From 20ad19e2c770aa862f1b20ef2936aad518f11bbe Mon Sep 17 00:00:00 2001 From: Barinade Date: Sat, 18 Sep 2021 20:18:04 -0500 Subject: [PATCH] increase precision of chart leaderboard hovering --- .../BGAnimations/ScreenSelectProfile overlay.lua | 2 -- Themes/Til Death/BGAnimations/superscoreboard.lua | 8 +++++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Themes/Til Death/BGAnimations/ScreenSelectProfile overlay.lua b/Themes/Til Death/BGAnimations/ScreenSelectProfile overlay.lua index 4bbe0b3c8b..d9931381ae 100644 --- a/Themes/Til Death/BGAnimations/ScreenSelectProfile overlay.lua +++ b/Themes/Til Death/BGAnimations/ScreenSelectProfile overlay.lua @@ -219,9 +219,7 @@ t[#t + 1] = Def.ActorFrame { self:queuecommand("UpdateInternal2") end, BeginCommand = function(self) - ms.ok("BEING BEINGIN EIN GIERN GIERN") SCREENMAN:GetTopScreen():AddInputCallback(function(event) - ms.ok(event) if event.type == "InputEventType_FirstPress" then if event.button == "Start" then MESSAGEMAN:Broadcast("StartButton") diff --git a/Themes/Til Death/BGAnimations/superscoreboard.lua b/Themes/Til Death/BGAnimations/superscoreboard.lua index fba7190844..776d8d440d 100644 --- a/Themes/Til Death/BGAnimations/superscoreboard.lua +++ b/Themes/Til Death/BGAnimations/superscoreboard.lua @@ -655,7 +655,13 @@ local function makeScoreDisplay(i) end end, DisplayCommand = function(self) - self:settextf("%05.4f%%", notShit.floor(hs:GetWifeScore() * 100, 5)):diffuse(byGrade(hs:GetWifeGrade())) + local perc = hs:GetWifeScore() * 100 + if perc > 99.7 then + self:settextf("%05.5f%%", notShit.floor(perc, 5)) + else + self:settextf("%05.4f%%", notShit.floor(perc, 4)) + end + self:diffuse(byGrade(hs:GetWifeGrade())) end }, LoadFont("Common normal") ..