消消方块阵换皮表情
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.
 
 
 

48 lines
1.3 KiB

//*********************
// 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);
}
}