Skip to content

Commit

Permalink
increase precision of chart leaderboard hovering
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Sep 19, 2021
1 parent 3a2aece commit 20ad19e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Themes/Til Death/BGAnimations/ScreenSelectProfile overlay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
8 changes: 7 additions & 1 deletion Themes/Til Death/BGAnimations/superscoreboard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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") ..
Expand Down

0 comments on commit 20ad19e

Please sign in to comment.