123456789101112131415161718192021222324252627282930313233343536373839404142 |
- Menubar.Help = function ( editor ) {
- var container = new UI.Panel();
- container.setClass( 'menu' );
- container.onMouseOver( function () { options.setDisplay( 'block' ) } );
- container.onMouseOut( function () { options.setDisplay( 'none' ) } );
- container.onClick( function () { options.setDisplay( 'block' ) } );
- var title = new UI.Panel();
- title.setTextContent( 'Help' ).setColor( '#666' );
- title.setMargin( '0px' );
- title.setPadding( '8px' );
- container.add( title );
- //
- var options = new UI.Panel();
- options.setClass( 'options' );
- options.setDisplay( 'none' );
- 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;
- }
|