提交 d5bba152 编写于 作者: M Mr.doob

Editor: Added some handy links.

上级 41aa5e35
...@@ -15,6 +15,7 @@ Menubar.File = function ( signals ) { ...@@ -15,6 +15,7 @@ Menubar.File = function ( signals ) {
options.setClass( 'options' ); options.setClass( 'options' );
container.add( options ); container.add( options );
/*
// open // open
var option = new UI.Panel(); var option = new UI.Panel();
...@@ -22,6 +23,7 @@ Menubar.File = function ( signals ) { ...@@ -22,6 +23,7 @@ Menubar.File = function ( signals ) {
option.setTextContent( 'Open' ); option.setTextContent( 'Open' );
option.onClick( function () { alert( 'Open' ) } ); option.onClick( function () { alert( 'Open' ) } );
options.add( option ); options.add( option );
*/
// reset scene // reset scene
...@@ -47,6 +49,7 @@ Menubar.File = function ( signals ) { ...@@ -47,6 +49,7 @@ Menubar.File = function ( signals ) {
option.onClick( function () { signals.exportScene.dispatch(); } ); option.onClick( function () { signals.exportScene.dispatch(); } );
options.add( option ); options.add( option );
/*
// export OBJ // export OBJ
var option = new UI.Panel(); var option = new UI.Panel();
...@@ -54,6 +57,7 @@ Menubar.File = function ( signals ) { ...@@ -54,6 +57,7 @@ Menubar.File = function ( signals ) {
option.setTextContent( 'Export OBJ' ); option.setTextContent( 'Export OBJ' );
option.onClick( function () { alert( 'Export OBJ' ) } ); option.onClick( function () { alert( 'Export OBJ' ) } );
options.add( option ); options.add( option );
*/
// //
......
...@@ -15,12 +15,20 @@ Menubar.Help = function ( signals ) { ...@@ -15,12 +15,20 @@ Menubar.Help = function ( signals ) {
options.setClass( 'options' ); options.setClass( 'options' );
container.add( 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 // about
var option = new UI.Panel(); var option = new UI.Panel();
option.setClass( 'option' ); option.setClass( 'option' );
option.setTextContent( 'About' ); option.setTextContent( 'About' );
option.onClick( function () { alert( 'About' ) } ); option.onClick( function () { window.open( 'http://threejs.org', '_blank' ) } );
options.add( option ); options.add( option );
// //
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册