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

28 lines
841 B
TypeScript
Raw Normal View History

2019-08-20 04:56:40 +08:00
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);
2019-08-20 04:56:40 +08:00
}
}