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

52 lines
1.4 KiB

1 week ago
//*********************
// create by 流云
// time: Wed Dec 17 2025
// desc:
//*********************
import { _decorator, Component, Node, find } from 'cc';
import { Auto_GetNewModel } from './Auto_GetNewModel';
import { SpriteLoad } from 'db://assets/mx/components/SpriteLoad';
import { GBundle, GPath } from '../../game/ConfigRes';
import { NewFunType } from '../../newFun/NewFun';
const { ccclass, property } = _decorator;
@ccclass('UIGetNewModel')
export class UIGetNewModel extends Auto_GetNewModel {
isCloselayer: boolean = false;
onLoad(): void {
super.onLoad();
}
onEnable(): void {
super.onEnable();
}
onDisable(): void {
super.onDisable();
}
Data: ITableNewFun = null;
onInit(): void {
this.showOpenCenterEff()
this.showOpenMaskEff(2);
this.Data = this.prema;
gg.newFun.setUnLockNewFun(NewFunType.Replica, this.Data.funId);
let reData = gg.data.project.getReplicaConfig(this.Data.funId);
this.lb_title.string = reData.name;
this.ui_icon.getComponent(SpriteLoad).setSprite(GPath.texture("title_" + this.Data.funId), GBundle.Replica);
//加载图片
this.scheduleOnce(() => {
this.isCloselayer = true;
}, 0.5)
}
click_bgMask() {
if (this.isCloselayer) {
this.close(2)
}
}
}