mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-26 07:24:57 +01:00
46 lines
865 B
JavaScript
Executable File
46 lines
865 B
JavaScript
Executable File
/**
|
|
* @author mrdoob / http://mrdoob.com/
|
|
*/
|
|
|
|
Menubar.Help = function ( editor ) {
|
|
|
|
var container = new UI.Panel();
|
|
container.setClass( 'menu' );
|
|
|
|
var title = new UI.Panel();
|
|
title.setClass( 'title' );
|
|
title.setTextContent( 'Help' );
|
|
container.add( title );
|
|
|
|
var options = new UI.Panel();
|
|
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 () {
|
|
|
|
window.open( 'http://threejs.org', '_blank' );
|
|
|
|
} );
|
|
options.add( option );
|
|
|
|
return container;
|
|
|
|
};
|