Browse Source

Editor: Added some handy links.

Mr.doob 12 years ago
parent
commit
d5bba1520b
2 changed files with 13 additions and 1 deletions
  1. 4 0
      editor/js/ui/Menubar.File.js
  2. 9 1
      editor/js/ui/Menubar.Help.js

+ 4 - 0
editor/js/ui/Menubar.File.js

@@ -15,6 +15,7 @@ Menubar.File = function ( signals ) {
 	options.setClass( 'options' );
 	container.add( options );
 
+	/*
 	// open
 
 	var option = new UI.Panel();
@@ -22,6 +23,7 @@ Menubar.File = function ( signals ) {
 	option.setTextContent( 'Open' );
 	option.onClick( function () { alert( 'Open' ) } );
 	options.add( option );
+	*/
 
 	// reset scene
 
@@ -47,6 +49,7 @@ Menubar.File = function ( signals ) {
 	option.onClick( function () { signals.exportScene.dispatch(); } );
 	options.add( option );
 
+	/*
 	// export OBJ
 
 	var option = new UI.Panel();
@@ -54,6 +57,7 @@ Menubar.File = function ( signals ) {
 	option.setTextContent( 'Export OBJ' );
 	option.onClick( function () { alert( 'Export OBJ' ) } );
 	options.add( option );
+	*/
 
 	//
 

+ 9 - 1
editor/js/ui/Menubar.Help.js

@@ -15,12 +15,20 @@ Menubar.Help = function ( signals ) {
 	options.setClass( 'options' );
 	container.add( options );
 
+	// source code
+
+	var option = new UI.Panel();
+	option.setClass( 'option' );
+	option.setTextContent( 'Source code' );
+	option.onClick( function () { window.open( 'https://github.com/mrdoob/three.js/tree/master/editor', '_blank' ) } );
+	options.add( option );
+
 	// about
 
 	var option = new UI.Panel();
 	option.setClass( 'option' );
 	option.setTextContent( 'About' );
-	option.onClick( function () { alert( 'About' ) } );
+	option.onClick( function () { window.open( 'http://threejs.org', '_blank' ) } );
 	options.add( option );
 
 	//