大侠
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.
 
 
 

39 lines
1.4 KiB

//#region 文件引入
import { _decorator, Button, Component, Label, Node, sp, Sprite,Animation, RichText } from "cc";
import BaseUIForm from "../../Mgr_UI/BaseUIForm";
import { Global } from "../../Global";
import { EVideoType, TXVideoMapping } from "../../const/GameEnum";
import { TXSDKMgr } from "../../Mgr_Ge/TXSDKMgr";
//#endregion 文件引入
const {ccclass, property,menu} = _decorator;
@ccclass("GongFaUpUI_Proxy")
export default class GongFaUpUI_Proxy extends BaseUIForm{
//#region 节点自动生成
@property(Button)
btn_ADUp: Button = null;
//#endregion 节点自动生成
onButtonClick(button:Button){
/**点击事件触发*/
switch (button) {
case this.btn_ADUp:
Global.showvideo({name: EVideoType.UpLevelWG, gamelv: this.mDataMgr.Scene.getRealLevel()},
()=>{this.param && this.param.success && this.param.success(),this.CloseUI()},
()=>{this.param && this.param.fail && this.param.fail()});
break;
default:
ConsoleEx.Log(button);
break;
}
}
protected start(): void {
TXSDKMgr.ins.AD_UI_SHOW(TXVideoMapping[EVideoType.UpLevelWG]);
}
onClick_closeBtn(btn?:Node){
this.param && this.param.fail && this.param.fail();
this.CloseUI(btn);
}
}