import _AUTOUI from "../../../data/autoui/_MODULE/_AUTOUI";
import UIBase, { BASE_POP } from "../UIBase";
import UIHelp from "../UIHelp";

const { ccclass, menu, property } = cc._decorator;

@ccclass
@menu("UI/_MODULE/_UINAME")
export default class _UINAME extends UIBase {
	ui: _AUTOUI = null;

	protected static prefabUrl = "_PREFABPATH";
	protected static className = "_UINAME";

	protected static pop = BASE_POP.UI;

	onUILoad() {
		this.ui = this.node.addComponent(_AUTOUI);
	}

	onShow() {

	}

	onHide() {

	}

	onStart() {

	}

	onClose() {
		UIHelp.CloseUI(_UINAME);
	}
}