Progress bar shouldn't stick on "100%"
authorRichard Fairhurst <richard@systemeD.net>
Tue, 3 Jul 2012 11:50:22 +0000 (12:50 +0100)
committerRichard Fairhurst <richard@systemeD.net>
Tue, 3 Jul 2012 11:50:22 +0000 (12:50 +0100)
...it should stick on something else instead ;)

net/systemeD/potlatch2/Preloader.as

index ebef62d..fbf65da 100644 (file)
@@ -56,7 +56,7 @@ package net.systemeD.potlatch2 {
         //this is our "animation" bit
         override protected function draw():void
         {
-            t.text = int(_fractionLoaded*100).toString()+"%";
+            t.text = _fractionLoaded==1 ? "Preparing..." : int(_fractionLoaded*100).toString()+"%";
             //make objects below follow loading progress
             //positions are completely arbitrary
             //d tells us the x value of where the loading bar is at