From 5f1b4e59e4d2a722a7c204f62c4f44ae849dccb9 Mon Sep 17 00:00:00 2001 From: Robert Chen Date: Sun, 1 Dec 2013 04:17:01 -0800 Subject: [PATCH] Restore streetlight alpha --- js/ui.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/ui.js b/js/ui.js index a2e71b4..627361b 100755 --- a/js/ui.js +++ b/js/ui.js @@ -721,13 +721,13 @@ function WindowUI( stage, gameState ){ for( var i in smallWindows ){ smallWindows[i].visible = UtilityFunctions.randRange(0,1); - streetLight.visible = 1; + streetLight.alpha= 1; stage.addChild( smallWindows[i] ); } for( var i in windows ){ windows[i].visible = UtilityFunctions.randRange(0,1); - streetLight.visible = 1; + streetLight.alpha= 1; stage.addChild( windows[i] ); } stage.addChild( streetLight ); @@ -756,7 +756,7 @@ return { } // turn on random window lights - streetLight.visible = 1; + streetLight.alpha= 1; } else if( dayNight.x < -11687 ){ for( var i in smallWindows ){ @@ -765,7 +765,7 @@ return { for( var i in windows ){ windows[i].visible = UtilityFunctions.randRange(0,1); } - streetLight.visible = 1; + streetLight.alpha= 1; } // daytime, turn off all lights else{ @@ -776,7 +776,7 @@ return { windows[i].visible = 0; } - streetLight.visible = 0; + streetLight.alpha= 0; } }