2
0

Sidebar.Properties.js 957 B

12345678910111213141516171819202122232425
  1. import { UITabbedPanel } from './libs/ui.js';
  2. import { SidebarObject } from './Sidebar.Object.js';
  3. import { SidebarGeometry } from './Sidebar.Geometry.js';
  4. import { SidebarMaterial } from './Sidebar.Material.js';
  5. import { SidebarScript } from './Sidebar.Script.js';
  6. function SidebarProperties( editor ) {
  7. const strings = editor.strings;
  8. const container = new UITabbedPanel();
  9. container.setId( 'properties' );
  10. container.addTab( 'objectTab', strings.getKey( 'sidebar/properties/object' ), new SidebarObject( editor ) );
  11. container.addTab( 'geometryTab', strings.getKey( 'sidebar/properties/geometry' ), new SidebarGeometry( editor ) );
  12. container.addTab( 'materialTab', strings.getKey( 'sidebar/properties/material' ), new SidebarMaterial( editor ) );
  13. container.addTab( 'scriptTab', strings.getKey( 'sidebar/properties/script' ), new SidebarScript( editor ) );
  14. container.select( 'objectTab' );
  15. return container;
  16. }
  17. export { SidebarProperties };