mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-13 16:44:49 +08:00
27 lines
581 B
JavaScript
27 lines
581 B
JavaScript
import IMouseClick from "./IMouseClick"
|
|
import WindowElement from "../../element/WindowElement"
|
|
|
|
/**
|
|
* @template {HTMLElement} T
|
|
* @extends {IMouseClick<T>}
|
|
*/
|
|
export default class MouseOpenWindow extends IMouseClick {
|
|
|
|
#window
|
|
|
|
constructor(target, blueprint, options = {}) {
|
|
options.windowType ??= "window"
|
|
super(target, blueprint, options)
|
|
}
|
|
|
|
clicked(location) {
|
|
}
|
|
|
|
unclicked(location) {
|
|
this.#window = new WindowElement({
|
|
type: this.options.windowType
|
|
})
|
|
this.blueprint.append(this.#window)
|
|
}
|
|
}
|