//********************* // create by 流云 // time: Sat Nov 29 2025 // desc: //********************* import { _decorator, Component, Node, find } from 'cc'; import { Auto_GetNewGoodid } from './Auto_GetNewGoodid'; import { SpriteLoad } from 'db://assets/mx/components/SpriteLoad'; import { GPath, GBundle } from '../../game/ConfigRes'; import { NewFunType } from '../../newFun/NewFun'; const { ccclass, property } = _decorator; @ccclass('UIGetNewGoodid') export class UIGetNewGoodid extends Auto_GetNewGoodid { onLoad(): void { super.onLoad(); } onEnable(): void { super.onEnable(); } onDisable(): void { super.onDisable(); } onInit(): void { this.showOpenCenterEff(); this.showOpenMaskEff(2); gg.newFun.setUnLockNewFun(NewFunType.Weapon, this.prema); this.Data = gg.data.project.getWeaponData(this.prema); let itemData = gg.data.table.getItemData(this.Data.itemID); this.lb_desc.string = gg.lang.get(itemData.desc2); this.lb_name.string = gg.lang.get(this.Data.name); this.ui_icon.getComponent(SpriteLoad).setSprite(GPath.Item(itemData.icon), GBundle.Items); } Data: ITableWeapon2 = null; click_bgMask() { this.close(2); } }