Sidebar.js 796 B

123456789101112131415161718192021222324252627282930313233
  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 project = new Sidebar.Project( editor );
  15. var settings = new UI.Span().add(
  16. new Sidebar.Settings( editor ),
  17. new Sidebar.History( editor )
  18. );
  19. container.addTab( 'scene', strings.getKey( 'sidebar/scene' ), scene );
  20. container.addTab( 'project', strings.getKey( 'sidebar/project' ), project );
  21. container.addTab( 'settings', strings.getKey( 'sidebar/settings' ), settings );
  22. container.select( 'scene' );
  23. return container;
  24. };