feat(ui): 调整卡片与列表UI布局并添加高等级光效动画
- 为卡片组件添加高等级光效显示逻辑与动画资源 - 调整card.prefab中多个UI元素的尺寸、边距与位置 - 重构melist.prefab中排名列表的节点结构与样式 - 更新list.prefab中数字标签的字体大小与位置 - 修改部分图片资源与新增动画元数据文件
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { mLogger } from "../common/Logger";
|
||||
import { _decorator, Animation, AnimationClip, EventTouch, Label, Node, NodeEventType, Sprite, SpriteAtlas, Tween, tween, UIOpacity, Vec3, resources } from "cc";
|
||||
import { _decorator, Animation, AnimationClip, EventTouch, Label, Node, NodeEventType, Sprite, SpriteAtlas, Tween, tween, UIOpacity, Vec3, resources, Light } from "cc";
|
||||
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
||||
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
||||
import { CardConfig, CardType, SpecialRefreshCardList, SpecialUpgradeCardList, CKind } from "../common/config/CardSet";
|
||||
@@ -400,8 +400,9 @@ export class CardComp extends CCComp {
|
||||
activeFrameNode.children.forEach(child => {
|
||||
child.active = (child.name === cardLvStr);
|
||||
});
|
||||
if(isHighLevel){activeFrameNode.getChildByName("light").active=true}
|
||||
}
|
||||
|
||||
|
||||
if(this.card_type===CardType.Hero){
|
||||
const hero = HeroInfo[this.card_uuid];
|
||||
const heroLv = Math.max(1, Math.floor(this.cardData.hero_lv ?? hero?.lv ?? 1));
|
||||
|
||||
Reference in New Issue
Block a user