|
|
|
@ -459,6 +459,7 @@ HuesCore.prototype.resetAudio = function() { |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
HuesCore.prototype.randomImage = function() { |
|
|
|
|
if(localStorage["shuffleImages"] == "on") { |
|
|
|
|
var len = this.resourceManager.enabledImages.length; |
|
|
|
|
var index = Math.floor(Math.random() * len); |
|
|
|
|
if ((index == this.imageIndex || this.lastImageArray.indexOf(index) != -1) && len > 1) { |
|
|
|
@ -471,6 +472,10 @@ HuesCore.prototype.randomImage = function() { |
|
|
|
|
this.lastImageArray.shift(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { // jk, not actually random
|
|
|
|
|
var img=(this.imageIndex + 1) % this.resourceManager.enabledImages.length; |
|
|
|
|
this.setImage(img); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
HuesCore.prototype.setImage = function(index) { |
|
|
|
|