ScreenEvaluation BPM Display Fix
authorJayce Newton <accounts@divinelegy.com>
Wed, 4 Dec 2013 19:22:45 +0000 (03:22 +0800)
committerJayce Newton <accounts@divinelegy.com>
Wed, 4 Dec 2013 19:22:45 +0000 (03:22 +0800)
Themes/GrooveNights/BGAnimations/ScreenEvaluation overlay.xml
Themes/GrooveNights/BGAnimations/ScreenPlayerOptions overlay/default.xml

index d8cccd6..f21dbea 100644 (file)
@@ -319,15 +319,27 @@ end">
                                gnHighRoundBPM = math.floor(gnHighRoundBPM);
                                gnBPMDisplay = gnLowRoundBPM..'-'..gnHighRoundBPM;
                                end     
-                       if curRate ~= 1 then
-                       gnSongLengthDisplay = string.gsub(gnSongLength,'Patched','Length Patched');
-                       gnSongLengthDisplay = string.gsub(gnSongLength,'Length Length Patched','Length Patched');
-                       self:settext(gnBPMDisplay..' BPM ('..curRate..'x Music Rate) - '..gnSongLengthDisplay);
-                       else
-                       gnSongLengthDisplay = string.gsub(gnSongLength,'Patched','Length Patched');
-                       gnSongLengthDisplay = string.gsub(gnSongLength,'Length Length Patched','Length Patched');
-                       self:settext(gnBPMDisplay..' BPM - '..gnSongLengthDisplay);
-                       end
+                       if GAMESTATE:IsPlayerEnabled(PLAYER_2) and not GAMESTATE:IsPlayerEnabled(PLAYER_1) then
+                               if curRate ~= 1 then
+                                       gnSongLengthDisplay = string.gsub(gnSongLength,'Patched','Length Patched');
+                                       gnSongLengthDisplay = string.gsub(gnSongLength,'Length Length Patched','Length Patched');
+                                       self:settext(DisplayBPM(2, true, false)..' BPM ('..curRate..'x Music Rate) - '..gnSongLengthDisplay);
+                                       else
+                                       gnSongLengthDisplay = string.gsub(gnSongLength,'Patched','Length Patched');
+                                       gnSongLengthDisplay = string.gsub(gnSongLength,'Length Length Patched','Length Patched');
+                                       self:settext(DisplayBPM(2, true, false)..' BPM - '..gnSongLengthDisplay);
+                                       end
+                               else
+                               if curRate ~= 1 then
+                                       gnSongLengthDisplay = string.gsub(gnSongLength,'Patched','Length Patched');
+                                       gnSongLengthDisplay = string.gsub(gnSongLength,'Length Length Patched','Length Patched');
+                                       self:settext(DisplayBPM(1, true, false)..' BPM ('..curRate..'x Music Rate) - '..gnSongLengthDisplay);
+                                       else
+                                       gnSongLengthDisplay = string.gsub(gnSongLength,'Patched','Length Patched');
+                                       gnSongLengthDisplay = string.gsub(gnSongLength,'Length Length Patched','Length Patched');
+                                       self:settext(DisplayBPM(1, true, false)..' BPM - '..gnSongLengthDisplay);
+                                       end
+                               end
                        end"
                />
 
index 2b1a8d0..239c6e9 100644 (file)
                        loopCommand="%function(self)
                        self:stoptweening();
                        if curRate ~= 1 then self:settext(gnSongLength..' (x'..curRate..' Music Rate)'); else self:settext(gnSongLength); end
-                       self:sleep(0.1);
+                       self:sleep(0.03);
                        self:queuecommand('loop');
                        end"
                />
                        loopCommand="%function(self)
                        self:stoptweening();
                        if curRate ~= 1 then self:settext(gnSongLength..' (x'..curRate..' Music Rate)'); else self:settext(gnSongLength); end
-                       self:sleep(0.1);
+                       self:sleep(0.03);
                        self:queuecommand('loop');
                        end"
                />