phantasmal-world/src/viewer/gui/ViewerView.ts
2019-09-14 15:20:36 +02:00

28 lines
841 B
TypeScript

import { TabContainer } from "../../core/gui/TabContainer";
export class ViewerView extends TabContainer {
constructor() {
super({
class: "viewer_ViewerView",
tabs: [
{
title: "Models",
key: "model",
create_view: async function() {
return new (await import("./model_3d/Model3DView")).Model3DView();
},
},
{
title: "Textures",
key: "texture",
create_view: async function() {
return new (await import("./TextureView")).TextureView();
},
},
],
});
this.finalize_construction(ViewerView.prototype);
}
}