From 51b22c2b6bb404c3ccd26e3832eec5965713eb9a Mon Sep 17 00:00:00 2001 From: MinaciousGrace Date: Fri, 27 Jan 2017 16:41:04 -0500 Subject: [PATCH] fix parenthetical rate displays at music select for scores in the dumbest way possible --- .../wifeTwirl.lua | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/Themes/Til Death/BGAnimations/ScreenSelectMusic decorations/wifeTwirl.lua b/Themes/Til Death/BGAnimations/ScreenSelectMusic decorations/wifeTwirl.lua index 3bd37f5c35..0a66da3b37 100644 --- a/Themes/Til Death/BGAnimations/ScreenSelectMusic decorations/wifeTwirl.lua +++ b/Themes/Til Death/BGAnimations/ScreenSelectMusic decorations/wifeTwirl.lua @@ -218,8 +218,25 @@ t[#t+1] = Def.ActorFrame{ BeginCommand=cmd(queuecommand,"Set"), SetCommand=function(self) if song and score then - local rate = getRate(score) - if getCurRateString() ~= rate and getCurRateString() ~= "1x" and getCurRateString() ~= "2x" then + local rate = getRate(score) + + -- need to standardize how this shit is handled (1x vs 1.0x) + if rate == "1.0x" then + rate = "1x" + elseif rate == "2.0x" then + rate = "2x" + end + + local notCurRate = getCurRateString() ~= rate + + -- cause this is getting stupid - mina + if rate == "1x" then + rate = "1.0x" + elseif rate == "2x" then + rate = "2.0x" + end + + if notCurRate then self:settext("("..rate..")") else self:settext(rate)