resolution for #17
authorCameron Ball <c.ball1729@gmail.com>
Mon, 16 Dec 2013 02:10:04 +0000 (10:10 +0800)
committerCameron Ball <c.ball1729@gmail.com>
Mon, 16 Dec 2013 02:10:04 +0000 (10:10 +0800)
Themes/GrooveNights/Graphics/ScreenSelectMusic banner frame/default.xml
Themes/GrooveNights/Scripts/Other.lua
Themes/GrooveNights/Scripts/gnSystem.lua

index 2b4748c..b283c03 100644 (file)
@@ -243,13 +243,13 @@ OnCommand="%function(self) self:diffusealpha(0); InitScreen('ScreenSelectMusic')
                                />
                                
 <!-- Determine Song Length-->
-               <BitmapText
-                       Text=""
+               <Layer
+                       Type="BitmapText"
                        File="_eurostile blue glow"
                        InitCommand="%function(self)  self:horizalign('right'); self:maxwidth(67); self:shadowlength(0); self:zoom(0.55); self:x(93+97); self:y(-22); self:draworder(10000); self:queuecommand('Update'); end"
                        CurrentStepsP1ChangedMessageCommand="queuecommand,Update"
                        CurrentStepsP2ChangedMessageCommand="queuecommand,Update"
-                       UpdateCommand="%function(self) self:settext(DisplaySongLength()) end"                   
+                       UpdateCommand="%SetFromDisplaySongLength"                       
                />
 <!-- Determine Song Location-->
                <BitmapText
index d1033d7..612cf6f 100644 (file)
@@ -499,6 +499,8 @@ function DisplaySongLength()
 
         if not seconds and not minutes then return "" end
 
+        if minutes == "01" and seconds == "45.00" then return "Patched" end
+
        seconds = (seconds + (minutes*60))*ratio
 
        return string.format("%.2d:%.2d", math.mod(seconds/60,60), math.mod(seconds,60))
index d0fecd0..a0a9e02 100644 (file)
@@ -410,14 +410,8 @@ RegisterGlobalCallback("TotalTimeSeconds", TotalTimeSeconds)
 
 function SetFromDisplayScrollSpeed( Actor, pn )
     Actor:settext(DisplayScrollSpeed(pn))
-    
-    local function GetWidthCallback( ScrollSpeedDisplay ) 
-        return ScrollSpeedDisplay:GetWidth()
-    end
-
-    if not GetGlobal("ScrollSpeedDisplayWidth") then
-        RegisterGlobalCallback("ScrollSpeedDisplayWidth", GetWidthCallback)
-    end
+end
 
-    RegisterGlobal("ScrollSpeedDisplayWidth", Actor)
+function SetFromDisplaySongLength( Actor )
+    Actor:settext(DisplaySongLength())
 end