You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

2 years ago
import { UITabbedPanel, UISpan } from './libs/ui.js';
import { SidebarScene } from './Sidebar.Scene.js';
import { SidebarProperties } from './Sidebar.Properties.js';
import { SidebarScript } from './Sidebar.Script.js';
import { SidebarAnimation } from './Sidebar.Animation.js';
import { SidebarProject } from './Sidebar.Project.js';
import { SidebarSettings } from './Sidebar.Settings.js';
function Sidebar( editor ) {
const strings = editor.strings;
const container = new UITabbedPanel();
container.setId( 'sidebar' );
const scene = new UISpan().add(
new SidebarScene( editor ),
new SidebarProperties( editor ),
new SidebarAnimation( editor ),
new SidebarScript( editor )
);
const project = new SidebarProject( editor );
const settings = new SidebarSettings( editor );
container.addTab( 'scene', strings.getKey( 'sidebar/scene' ), scene );
container.addTab( 'project', strings.getKey( 'sidebar/project' ), project );
container.addTab( 'settings', strings.getKey( 'sidebar/settings' ), settings );
container.select( 'scene' );
return container;
}
export { Sidebar };