123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- Menubar.File = function ( signals ) {
- var container = new UI.Panel();
- container.setClass( 'menu' );
- var title = new UI.Panel();
- title.setTextContent( 'File' ).setColor( '#666' );
- title.setMargin( '0px' );
- title.setPadding( '8px' );
- container.add( title );
- //
- var options = new UI.Panel();
- options.setClass( 'options' );
- container.add( options );
- /*
- // open
- var option = new UI.Panel();
- option.setClass( 'option' );
- option.setTextContent( 'Open' );
- option.onClick( function () { alert( 'Open' ) } );
- options.add( option );
- */
- // reset scene
- var option = new UI.Panel();
- option.setClass( 'option' );
- option.setTextContent( 'Reset' );
- option.onClick( function () { signals.resetScene.dispatch(); } );
- options.add( option );
- // export geometry
- var option = new UI.Panel();
- option.setClass( 'option' );
- option.setTextContent( 'Export Geometry' );
- option.onClick( function () { signals.exportGeometry.dispatch(); } );
- options.add( option );
- // export scene
- var option = new UI.Panel();
- option.setClass( 'option' );
- option.setTextContent( 'Export Scene' );
- option.onClick( function () { signals.exportScene.dispatch(); } );
- options.add( option );
- /*
- // export OBJ
- var option = new UI.Panel();
- option.setClass( 'option' );
- option.setTextContent( 'Export OBJ' );
- option.onClick( function () { alert( 'Export OBJ' ) } );
- options.add( option );
- */
- //
- return container;
- }
|