You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.5 KiB
38 lines
1.5 KiB
//#region 文件引入
|
|
import { _decorator, Button, Component, Label, Node, sp, Sprite,Animation, RichText } from "cc";
|
|
import BaseUIForm from "../../Mgr_UI/BaseUIForm";
|
|
import UIMgr from "../../Mgr_UI/UIMgr";
|
|
import { EUIForms } from "../../const/UIFormCnf";
|
|
import { TDAnalyticsMgr } from "../../Mgr_Ge/TDAnalyticsMgr";
|
|
import { GEData } from "../../Mgr_Ge/GeDifine";
|
|
//#endregion 文件引入
|
|
const {ccclass, property,menu} = _decorator;
|
|
@ccclass("PopRestartUI_Proxy")
|
|
export default class PopRestartUI_Proxy extends BaseUIForm{
|
|
//#region 节点自动生成
|
|
@property(Button)
|
|
btn_talen: Button = null;
|
|
@property(Button)
|
|
btn_Ok: Button = null;
|
|
//#endregion 节点自动生成
|
|
|
|
onButtonClick(button:Button){
|
|
|
|
/**点击事件触发*/
|
|
switch (button) {
|
|
case this.btn_talen:
|
|
UIMgr.Ins.ShowUI(EUIForms.PopTalentDescUI);
|
|
break;
|
|
case this.btn_Ok:
|
|
// 清档
|
|
TDAnalyticsMgr.ins.userPassTimeSet(this.mDataMgr.Pass.passed_times);
|
|
TDAnalyticsMgr.ins.TrySendtrack(GEData.GEeventName.finish_time, {user_pass:this.mDataMgr.Pass.passed_times});
|
|
UIMgr.Ins.ShowUI(EUIForms.RestartLoadingUI);
|
|
this.CloseUI();
|
|
break;
|
|
default:
|
|
ConsoleEx.Log(button);
|
|
break;
|
|
}
|
|
}
|
|
}
|