44 lines
998 B
TypeScript
44 lines
998 B
TypeScript
// Learn TypeScript:
|
|
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
|
|
// Learn Attribute:
|
|
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
|
|
// Learn life-cycle callbacks:
|
|
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
|
|
|
|
import { PanelType } from "../../common/ui/config/SysDefine";
|
|
import UIBaseEv from "../../common/ui/uiEv/UIBaseEv";
|
|
|
|
const {ccclass, property} = cc._decorator;
|
|
|
|
@ccclass
|
|
export default class UIMessageLayer extends UIBaseEv {
|
|
|
|
panelType: PanelType = PanelType.PopUp;
|
|
// LIFE-CYCLE CALLBACKS:
|
|
|
|
// onLoad () {}
|
|
|
|
onClickEvent(event,customEventData)
|
|
{
|
|
switch (+customEventData) {
|
|
case 0:
|
|
UIMessageLayer.closeView();
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
|
|
onShow(data:string)
|
|
{
|
|
this._Labels.Tips.string = " "+data;
|
|
}
|
|
|
|
start () {
|
|
|
|
|
|
}
|
|
|
|
// update (dt) {}
|
|
}
|