Last change
on this file since 28897 was 28897, checked in by davidb, 10 years ago |
GUI front-end to server base plus web page content
|
File size:
842 bytes
|
Rev | Line | |
---|
[28897] | 1 | Menubar.Help = function ( editor ) {
|
---|
| 2 |
|
---|
| 3 | var container = new UI.Panel();
|
---|
| 4 | container.setClass( 'menu' );
|
---|
| 5 |
|
---|
| 6 | var title = new UI.Panel();
|
---|
| 7 | title.setTextContent( 'Help' );
|
---|
| 8 | title.setMargin( '0px' );
|
---|
| 9 | title.setPadding( '8px' );
|
---|
| 10 | container.add( title );
|
---|
| 11 |
|
---|
| 12 | //
|
---|
| 13 |
|
---|
| 14 | var options = new UI.Panel();
|
---|
| 15 | options.setClass( 'options' );
|
---|
| 16 | container.add( options );
|
---|
| 17 |
|
---|
| 18 | // source code
|
---|
| 19 |
|
---|
| 20 | var option = new UI.Panel();
|
---|
| 21 | option.setClass( 'option' );
|
---|
| 22 | option.setTextContent( 'Source code' );
|
---|
| 23 | option.onClick( function () { window.open( 'https://github.com/mrdoob/three.js/tree/master/editor', '_blank' ) } );
|
---|
| 24 | options.add( option );
|
---|
| 25 |
|
---|
| 26 | // about
|
---|
| 27 |
|
---|
| 28 | var option = new UI.Panel();
|
---|
| 29 | option.setClass( 'option' );
|
---|
| 30 | option.setTextContent( 'About' );
|
---|
| 31 | option.onClick( function () { window.open( 'http://threejs.org', '_blank' ) } );
|
---|
| 32 | options.add( option );
|
---|
| 33 |
|
---|
| 34 | //
|
---|
| 35 |
|
---|
| 36 | return container;
|
---|
| 37 |
|
---|
| 38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.