|
@@ -21,7 +21,49 @@ Sidebar.Project = function ( editor ) {
|
|
|
container.setBorderTop( '0' );
|
|
|
container.setPaddingTop( '20px' );
|
|
|
|
|
|
- // class
|
|
|
+ // Title
|
|
|
+
|
|
|
+ var titleRow = new UI.Row();
|
|
|
+ var title = new UI.Input( config.getKey( 'project/title' ) ).setLeft( '100px' ).onChange( function () {
|
|
|
+
|
|
|
+ config.setKey( 'project/title', this.getValue() );
|
|
|
+
|
|
|
+ } );
|
|
|
+
|
|
|
+ titleRow.add( new UI.Text( 'Title' ).setWidth( '90px' ) );
|
|
|
+ titleRow.add( title );
|
|
|
+
|
|
|
+ container.add( titleRow );
|
|
|
+
|
|
|
+ // Editable
|
|
|
+
|
|
|
+ var editableRow = new UI.Row();
|
|
|
+ var editable = new UI.Checkbox( config.getKey( 'project/editable' ) ).setLeft( '100px' ).onChange( function () {
|
|
|
+
|
|
|
+ config.setKey( 'project/editable', this.getValue() );
|
|
|
+
|
|
|
+ } );
|
|
|
+
|
|
|
+ editableRow.add( new UI.Text( 'Editable' ).setWidth( '90px' ) );
|
|
|
+ editableRow.add( editable );
|
|
|
+
|
|
|
+ container.add( editableRow );
|
|
|
+
|
|
|
+ // VR
|
|
|
+
|
|
|
+ var vrRow = new UI.Row();
|
|
|
+ var vr = new UI.Checkbox( config.getKey( 'project/vr' ) ).setLeft( '100px' ).onChange( function () {
|
|
|
+
|
|
|
+ config.setKey( 'project/vr', this.getValue() );
|
|
|
+
|
|
|
+ } );
|
|
|
+
|
|
|
+ vrRow.add( new UI.Text( 'VR' ).setWidth( '90px' ) );
|
|
|
+ vrRow.add( vr );
|
|
|
+
|
|
|
+ container.add( vrRow );
|
|
|
+
|
|
|
+ // Renderer
|
|
|
|
|
|
var options = {};
|
|
|
|
|
@@ -55,7 +97,7 @@ Sidebar.Project = function ( editor ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
- // antialiasing
|
|
|
+ // Renderer / Antialias
|
|
|
|
|
|
var rendererPropertiesRow = new UI.Row().setMarginLeft( '90px' );
|
|
|
|
|
@@ -67,7 +109,7 @@ Sidebar.Project = function ( editor ) {
|
|
|
} );
|
|
|
rendererPropertiesRow.add( rendererAntialias );
|
|
|
|
|
|
- // shadow
|
|
|
+ // Renderer / Shadows
|
|
|
|
|
|
var rendererShadows = new UI.THREE.Boolean( config.getKey( 'project/renderer/shadows' ), 'shadows' ).onChange( function () {
|
|
|
|
|
@@ -79,7 +121,7 @@ Sidebar.Project = function ( editor ) {
|
|
|
|
|
|
rendererPropertiesRow.add( new UI.Break() );
|
|
|
|
|
|
- // gamma input
|
|
|
+ // Renderer / Gamma input
|
|
|
|
|
|
var rendererGammaInput = new UI.THREE.Boolean( config.getKey( 'project/renderer/gammaInput' ), 'γ input' ).onChange( function () {
|
|
|
|
|
@@ -89,7 +131,7 @@ Sidebar.Project = function ( editor ) {
|
|
|
} );
|
|
|
rendererPropertiesRow.add( rendererGammaInput );
|
|
|
|
|
|
- // gamma output
|
|
|
+ // Renderer / Gamma output
|
|
|
|
|
|
var rendererGammaOutput = new UI.THREE.Boolean( config.getKey( 'project/renderer/gammaOutput' ), 'γ output' ).onChange( function () {
|
|
|
|
|
@@ -101,34 +143,6 @@ Sidebar.Project = function ( editor ) {
|
|
|
|
|
|
container.add( rendererPropertiesRow );
|
|
|
|
|
|
- // Editable
|
|
|
-
|
|
|
- var editableRow = new UI.Row();
|
|
|
- var editable = new UI.Checkbox( config.getKey( 'project/editable' ) ).setLeft( '100px' ).onChange( function () {
|
|
|
-
|
|
|
- config.setKey( 'project/editable', this.getValue() );
|
|
|
-
|
|
|
- } );
|
|
|
-
|
|
|
- editableRow.add( new UI.Text( 'Editable' ).setWidth( '90px' ) );
|
|
|
- editableRow.add( editable );
|
|
|
-
|
|
|
- container.add( editableRow );
|
|
|
-
|
|
|
- // VR
|
|
|
-
|
|
|
- var vrRow = new UI.Row();
|
|
|
- var vr = new UI.Checkbox( config.getKey( 'project/vr' ) ).setLeft( '100px' ).onChange( function () {
|
|
|
-
|
|
|
- config.setKey( 'project/vr', this.getValue() );
|
|
|
-
|
|
|
- } );
|
|
|
-
|
|
|
- vrRow.add( new UI.Text( 'VR' ).setWidth( '90px' ) );
|
|
|
- vrRow.add( vr );
|
|
|
-
|
|
|
- container.add( vrRow );
|
|
|
-
|
|
|
//
|
|
|
|
|
|
function updateRenderer() {
|