Files
ueblueprint/js/input/mouse/MouseOpenWindow.js
2022-10-09 11:43:28 +02:00

23 lines
497 B
JavaScript

import IMouseClick from "./IMouseClick"
import WindowElement from "../../element/WindowElement"
/**
* @template {HTMLElement} T
* @extends {IMouseClick<T>}
*/
export default class MouseOpenWindow extends IMouseClick {
#window
clicked(location) {
}
unclicked(location) {
this.#window = new WindowElement({
type: this.options.windowType,
windowOptions: this.options.windowOptions,
})
this.blueprint.append(this.#window)
}
}