phantasmal-world/src/viewer/gui/ViewerView.ts

29 lines
826 B
TypeScript
Raw Normal View History

2019-08-20 04:56:40 +08:00
import { TabContainer } from "../../core/gui/TabContainer";
import { Model3DView } from "./model_3d/Model3DView";
import { TextureView } from "./TextureView";
2019-08-20 04:56:40 +08:00
export class ViewerView extends TabContainer {
constructor(
create_model_3d_view: () => Promise<Model3DView>,
create_texture_view: () => Promise<TextureView>,
) {
super({
class: "viewer_ViewerView",
tabs: [
{
title: "Models",
key: "model",
create_view: create_model_3d_view,
},
{
title: "Textures",
key: "texture",
create_view: create_texture_view,
},
],
});
this.finalize_construction();
2019-08-20 04:56:40 +08:00
}
}