Sidebar.js 771 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. */
  4. var Sidebar = function ( editor ) {
  5. var strings = editor.strings;
  6. var container = new UI.TabbedPanel();
  7. container.setId( 'sidebar' );
  8. var scene = new UI.Span().add(
  9. new Sidebar.Scene( editor ),
  10. new Sidebar.Properties( editor ),
  11. new Sidebar.Animation( editor ),
  12. new Sidebar.Script( editor )
  13. );
  14. var settings = new UI.Span().add(
  15. new Sidebar.Settings( editor ),
  16. new Sidebar.History( editor )
  17. );
  18. container.addTab( 'scene', strings.getKey( 'sidebar/scene' ), scene );
  19. container.addTab( 'project', strings.getKey( 'sidebar/project' ), new Sidebar.Project( editor ) );
  20. container.addTab( 'settings', strings.getKey( 'sidebar/settings' ), settings );
  21. container.select( 'scene' );
  22. return container;
  23. };