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 { EVideoType, PropType, TXVideoMapping } from "../../const/GameEnum";
|
|
import UIMgr from "../../Mgr_UI/UIMgr";
|
|
import { EUIForms } from "../../const/UIFormCnf";
|
|
import { Global } from "../../Global";
|
|
import { TXSDKMgr } from "../../Mgr_Ge/TXSDKMgr";
|
|
import { AD_DOUBLE_TYPE, GAME_PARAMS } from "../../const/GGameData";
|
|
//#endregion 文件引入
|
|
const {ccclass, property,menu} = _decorator;
|
|
@ccclass("LookAdGetUI_Proxy")
|
|
export default class LookAdGetUI_Proxy extends BaseUIForm{
|
|
//#region 节点自动生成
|
|
@property(Button)
|
|
btn_AdGet: Button = null;
|
|
//#endregion 节点自动生成
|
|
// private m_AdGetNum:number = 100000;
|
|
onButtonClick(button:Button){
|
|
|
|
/**点击事件触发*/
|
|
switch (button) {
|
|
case this.btn_AdGet:
|
|
Global.showvideo({name: EVideoType.AddCoin, gamelv: this.mDataMgr.Scene.getRealLevel()},()=>{
|
|
UIMgr.Ins.ShowUI(EUIForms.LookAdGetDouleUI,{param:{type:AD_DOUBLE_TYPE.AD_ADD_COIN, coin:GAME_PARAMS.AD_COIN_NUM}});
|
|
this.CloseUI();
|
|
});
|
|
break;
|
|
default:
|
|
ConsoleEx.Log(button);
|
|
break;
|
|
}
|
|
}
|
|
|
|
protected start(): void {
|
|
TXSDKMgr.ins.AD_UI_SHOW(TXVideoMapping[EVideoType.AddCoin]);
|
|
}
|
|
}
|