phantasmal-world/src/quest_editor/gui/DisabledView.ts

21 lines
560 B
TypeScript
Raw Normal View History

import { Widget } from "../../core/gui/Widget";
import { el } from "../../core/gui/dom";
import { Label } from "../../core/gui/Label";
import "./DisabledView.css";
export class DisabledView extends Widget {
readonly element = el.div({ class: "quest_editor_DisabledView" });
private readonly label: Label;
constructor(text: string) {
super();
this.label = this.disposable(new Label(text, { enabled: false }));
this.element.append(this.label.element);
this.finalize_construction(DisabledView.prototype);
}
}