|
@@ -10,6 +10,8 @@ var Editor = function () {
|
|
|
|
|
|
// notifications
|
|
// notifications
|
|
|
|
|
|
|
|
+ themeChanged: new SIGNALS.Signal(),
|
|
|
|
+
|
|
transformModeChanged: new SIGNALS.Signal(),
|
|
transformModeChanged: new SIGNALS.Signal(),
|
|
snapChanged: new SIGNALS.Signal(),
|
|
snapChanged: new SIGNALS.Signal(),
|
|
spaceChanged: new SIGNALS.Signal(),
|
|
spaceChanged: new SIGNALS.Signal(),
|
|
@@ -52,6 +54,14 @@ var Editor = function () {
|
|
|
|
|
|
Editor.prototype = {
|
|
Editor.prototype = {
|
|
|
|
|
|
|
|
+ setTheme: function ( value ) {
|
|
|
|
+
|
|
|
|
+ document.getElementById( 'theme' ).href = value;
|
|
|
|
+
|
|
|
|
+ this.signals.themeChanged.dispatch( value );
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+
|
|
setScene: function ( scene ) {
|
|
setScene: function ( scene ) {
|
|
|
|
|
|
this.scene.name = scene.name;
|
|
this.scene.name = scene.name;
|