|
|
@ -43,7 +43,6 @@ HuesSettings.prototype.defaultSettings = { |
|
|
|
preloadMax: 0x40, |
|
|
|
preloadMax: 0x40, |
|
|
|
|
|
|
|
|
|
|
|
// UI accessible config
|
|
|
|
// UI accessible config
|
|
|
|
// Autosong stuff is a todo, becuase why even implement that
|
|
|
|
|
|
|
|
smartAlign: "on", |
|
|
|
smartAlign: "on", |
|
|
|
blurAmount: "medium", |
|
|
|
blurAmount: "medium", |
|
|
|
blurDecay: "fast", |
|
|
|
blurDecay: "fast", |
|
|
@ -53,7 +52,9 @@ HuesSettings.prototype.defaultSettings = { |
|
|
|
blackoutUI: "off", |
|
|
|
blackoutUI: "off", |
|
|
|
playBuildups: "on", |
|
|
|
playBuildups: "on", |
|
|
|
volume: 0.7, |
|
|
|
volume: 0.7, |
|
|
|
visualiser: "off" |
|
|
|
visualiser: "off", |
|
|
|
|
|
|
|
autoSong: "off", |
|
|
|
|
|
|
|
autoSongShuffle: "on" |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// Don't get saved to localStorage
|
|
|
|
// Don't get saved to localStorage
|
|
|
@ -73,61 +74,72 @@ HuesSettings.prototype.ephemeralSettings = [ |
|
|
|
|
|
|
|
|
|
|
|
// To dynamically build the UI like the cool guy I am
|
|
|
|
// To dynamically build the UI like the cool guy I am
|
|
|
|
HuesSettings.prototype.settingsCategories = { |
|
|
|
HuesSettings.prototype.settingsCategories = { |
|
|
|
"Image Settings" : [ |
|
|
|
"Functionality" : [ |
|
|
|
"smartAlign", |
|
|
|
"autoSong", |
|
|
|
"blurAmount", |
|
|
|
"autoSongShuffle", |
|
|
|
"blurDecay", |
|
|
|
"smartAlign" |
|
|
|
"blurQuality" |
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
"UI Settings" : [ |
|
|
|
"Interface" : [ |
|
|
|
"currentUI", |
|
|
|
"currentUI", |
|
|
|
"colourSet", |
|
|
|
"colourSet", |
|
|
|
"blackoutUI", |
|
|
|
"blackoutUI", |
|
|
|
"visualiser" |
|
|
|
"visualiser" |
|
|
|
], |
|
|
|
], |
|
|
|
"Audio Settings" : [ |
|
|
|
"Graphics" : [ |
|
|
|
|
|
|
|
"blurAmount", |
|
|
|
|
|
|
|
"blurDecay", |
|
|
|
|
|
|
|
"blurQuality" |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
"Audio" : [ |
|
|
|
"playBuildups" |
|
|
|
"playBuildups" |
|
|
|
] |
|
|
|
] |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
HuesSettings.prototype.settingsOptions = { |
|
|
|
HuesSettings.prototype.settingsOptions = { |
|
|
|
smartAlign : { |
|
|
|
smartAlign : { |
|
|
|
name : "Smart Align Images", |
|
|
|
name : "Smart Align images", |
|
|
|
options : ["on", "off"] |
|
|
|
options : ["off", "on"] |
|
|
|
}, |
|
|
|
}, |
|
|
|
blurAmount : { |
|
|
|
blurAmount : { |
|
|
|
name : "Blur Amount", |
|
|
|
name : "Blur amount", |
|
|
|
options : ["low", "medium", "high"] |
|
|
|
options : ["low", "medium", "high"] |
|
|
|
}, |
|
|
|
}, |
|
|
|
blurDecay : { |
|
|
|
blurDecay : { |
|
|
|
name : "Blur Decay", |
|
|
|
name : "Blur decay", |
|
|
|
options : ["slow", "medium", "fast", "faster!"] |
|
|
|
options : ["slow", "medium", "fast", "faster!"] |
|
|
|
}, |
|
|
|
}, |
|
|
|
blurQuality : { |
|
|
|
blurQuality : { |
|
|
|
name : "Blur Quality", |
|
|
|
name : "Blur quality", |
|
|
|
options : ["low", "medium", "high", "extreme"] |
|
|
|
options : ["low", "medium", "high", "extreme"] |
|
|
|
}, |
|
|
|
}, |
|
|
|
visualiser : { |
|
|
|
visualiser : { |
|
|
|
name : "Spectrum analyser", |
|
|
|
name : "Spectrum analyser", |
|
|
|
options : ["on", "off"] |
|
|
|
options : ["off", "on"] |
|
|
|
}, |
|
|
|
}, |
|
|
|
currentUI : { |
|
|
|
currentUI : { |
|
|
|
name : "User Interface", |
|
|
|
name : "UI style", |
|
|
|
options : ["retro", "v4.20", "modern", "xmas", "hlwn"] |
|
|
|
options : ["retro", "v4.20", "modern", "xmas", "hlwn"] |
|
|
|
}, |
|
|
|
}, |
|
|
|
colourSet : { |
|
|
|
colourSet : { |
|
|
|
name : "Colour Set", |
|
|
|
name : "Colour set", |
|
|
|
options : ["normal", "pastel", "v4.20"] |
|
|
|
options : ["normal", "pastel", "v4.20"] |
|
|
|
}, |
|
|
|
}, |
|
|
|
blackoutUI : { |
|
|
|
blackoutUI : { |
|
|
|
name : "Blackout affects UI", |
|
|
|
name : "Blackout affects UI", |
|
|
|
options : ["on", "off"] |
|
|
|
options : ["off", "on"] |
|
|
|
}, |
|
|
|
}, |
|
|
|
playBuildups : { |
|
|
|
playBuildups : { |
|
|
|
name : "Play buildups", |
|
|
|
name : "Play buildups", |
|
|
|
options : ["off", "once", "on"] |
|
|
|
options : ["off", "once", "on"] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
autoSong : { |
|
|
|
|
|
|
|
name : "AutoSong", |
|
|
|
|
|
|
|
options : ["off", "loop", "time"] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
autoSongShuffle : { |
|
|
|
|
|
|
|
name : "AutoSong shuffle", |
|
|
|
|
|
|
|
options : ["off", "on"] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
function HuesSettings(defaults) { |
|
|
|
function HuesSettings(defaults) { |
|
|
|