1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
/**
* @author mrdoob / http://mrdoob.com/
*/
Menubar.Help = function ( editor ) {
var strings = editor.strings;
var container = new UI.Panel();
container.setClass( 'menu' );
var title = new UI.Panel();
title.setClass( 'title' );
title.setTextContent( strings.getKey( 'menubar/help' ) );
container.add( title );
var options = new UI.Panel();
options.setClass( 'options' );
container.add( options );
// Source code
var option = new UI.Row();
option.setClass( 'option' );
option.setTextContent( strings.getKey( 'menubar/help/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.Row();
option.setClass( 'option' );
option.setTextContent( strings.getKey( 'menubar/help/about' ) );
option.onClick( function () {
window.open( 'http://threejs.org', '_blank' );
} );
options.add( option );
return container;
};
|