英雄可升级动画

This commit is contained in:
2025-01-02 16:20:56 +08:00
parent e4722cac4a
commit f516551508
31 changed files with 14757 additions and 3979 deletions

View File

@@ -6,6 +6,7 @@ import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/O
import { smc } from "../common/SingletonModuleComp";
import { HeroInfo } from "../common/config/heroSet";
import { ColorSet } from "../common/config/BoxSet";
import { SlvUp } from "../common/config/RoleSet";
const { ccclass, property } = _decorator;
@@ -51,6 +52,9 @@ export class HeroCardComp extends CCComp {
this.node.getChildByName("lock").active=false
slv.getChildByName("slv").getComponent(Label).string=smc.heros[this.h_uuid].slv.toString()
}
let slvneed=HeroInfo[this.h_uuid].slvexp*smc.heros[this.h_uuid].slv
let slvnum=smc.heros[this.h_uuid].num
this.node.getChildByName("up").active=slvnum>=slvneed
switch(HeroInfo[this.h_uuid].quality){
case 1:
this.node.getChildByName("bg").getComponent(Sprite).color= new Color().fromHEX(ColorSet["BLUE"]);