From f5524f3f48a8c7cde07b4628e40b5654e4f550ec Mon Sep 17 00:00:00 2001 From: William Toohey Date: Sun, 1 May 2016 18:06:38 +1000 Subject: [PATCH] Fix some ordering --- gulpfile.js | 7 +++++++ src/js/HuesCore.js | 2 ++ 2 files changed, 9 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 3a785d9..23f400e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -15,6 +15,13 @@ gulp.task('default', ['css', 'audio', 'minify']); gulp.task('css', function(){ return gulp.src('src/css/**/*.css') + .pipe(order([ + // hlwn must come after modern + // modern must come after main + "hues-main.css", + "huesUI-modern.css", + "huesUI-hlwn.css" + ])) .pipe(plumber()) .pipe(newer('css/hues-min.css')) .pipe(sourcemaps.init()) diff --git a/src/js/HuesCore.js b/src/js/HuesCore.js index e3192d1..8c2ddc2 100644 --- a/src/js/HuesCore.js +++ b/src/js/HuesCore.js @@ -219,6 +219,8 @@ function HuesCore(defaults) { this.clearMessage(); setInterval(this.loopCheck.bind(this), 1000); this.renderer = new HuesCanvas(this.root, this.soundManager.context, this); + this.callEventListeners("settingsupdated"); + this.settingsUpdated(); this.setColour(this.colourIndex); this.animationLoop();