2
0

Menubar.Help.js 861 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. */
  4. Menubar.Help = function ( editor ) {
  5. var container = new UI.Panel();
  6. container.setClass( 'menu' );
  7. var title = new UI.Panel();
  8. title.setClass( 'title' );
  9. title.setTextContent( 'Help' );
  10. container.add( title );
  11. var options = new UI.Panel();
  12. options.setClass( 'options' );
  13. container.add( options );
  14. // Source code
  15. var option = new UI.Row();
  16. option.setClass( 'option' );
  17. option.setTextContent( 'Source code' );
  18. option.onClick( function () {
  19. window.open( 'https://github.com/mrdoob/three.js/tree/master/editor', '_blank' )
  20. } );
  21. options.add( option );
  22. // About
  23. var option = new UI.Row();
  24. option.setClass( 'option' );
  25. option.setTextContent( 'About' );
  26. option.onClick( function () {
  27. window.open( 'http://threejs.org', '_blank' );
  28. } );
  29. options.add( option );
  30. return container;
  31. };