Menubar.Help.js 816 B

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