//********************* // create by 流云 // time: Fri Apr 10 2026 // desc: //********************* import { _decorator, Component, Node, find } from 'cc'; import { Auto_GetNewFun } from './Auto_GetNewFun'; const { ccclass, property } = _decorator; @ccclass('UIGetNewFun') export class UIGetNewFun extends Auto_GetNewFun { onLoad(): void { super.onLoad(); } onEnable(): void { super.onEnable(); this.ui_center.on(Node.EventType.TOUCH_END, this.onTouchEnd, this); } onDisable(): void { super.onDisable(); this.ui_center.off(Node.EventType.TOUCH_END, this.onTouchEnd, this); } Data: ITableNewFun = null; onInit(): void { this.showOpenCenterEff(); this.showOpenMaskEff(2); this.Data = this.prema; this.updateUI(); } updateUI(): void { this.lb_Title.string = gg.lang.get(this.Data.name + "解锁"); this.lb_desc.string = gg.lang.get(this.Data.popDesc); this.ui_fun.children.map(x => x.active = x.name == `${this.Data.type}_${this.Data.funId}`); } onTouchEnd(): void { this.close(2); } }