Menubar.Help.js 842 B

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