修复(任务卡片, GUI): 恢复英雄数量动画并调整UI边框参数

取消MissionCardComp.ts中的动画相关注释,启用英雄数量增减和已满时的弹出动画;调整ui3.plist.meta的UI元素边框参数优化显示效果。
This commit is contained in:
walkpan
2026-05-24 20:00:36 +08:00
parent 1b26a9079d
commit 429c07cc79
3 changed files with 9045 additions and 1776 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1036,10 +1036,10 @@
"height": 62, "height": 62,
"rawWidth": 653, "rawWidth": 653,
"rawHeight": 80, "rawHeight": 80,
"borderTop": 0, "borderTop": 23,
"borderBottom": 0, "borderBottom": 21,
"borderLeft": 0, "borderLeft": 56,
"borderRight": 0, "borderRight": 29,
"packable": true, "packable": true,
"pixelsToUnit": 100, "pixelsToUnit": 100,
"pivotX": 0.5, "pivotX": 0.5,
@@ -6972,8 +6972,8 @@
"rawHeight": 57, "rawHeight": 57,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 40,
"borderRight": 0, "borderRight": 42,
"packable": true, "packable": true,
"pixelsToUnit": 100, "pixelsToUnit": 100,
"pivotX": 0.5, "pivotX": 0.5,

View File

@@ -405,7 +405,7 @@ export class MissionCardComp extends CCComp {
payload.cancel = true; payload.cancel = true;
payload.reason = "hero_limit"; payload.reason = "hero_limit";
oops.gui.toast(`英雄已满 (${current}/${heroMax})`); oops.gui.toast(`英雄已满 (${current}/${heroMax})`);
// this.playHeroNumDeniedAnim(); this.playHeroNumDeniedAnim();
} }
} }
@@ -907,24 +907,24 @@ export class MissionCardComp extends CCComp {
private updateHeroNumUI(animate: boolean, isIncrease: boolean) { private updateHeroNumUI(animate: boolean, isIncrease: boolean) {
this.syncMissionHeroData(); this.syncMissionHeroData();
if (!animate || !isIncrease) return; if (!animate || !isIncrease) return;
// this.playHeroNumGainAnim(); this.playHeroNumGainAnim();
} }
// private playHeroNumGainAnim() { private playHeroNumGainAnim() {
// if (!this.hero_num_node || !this.hero_num_node.isValid) return; if (!this.hero_num_node || !this.hero_num_node.isValid) return;
// const iconNode = this.hero_num_node.getChildByName("icon"); const iconNode = this.hero_num_node.getChildByName("icon");
// const numNode = this.hero_num_node.getChildByName("num"); const numNode = this.hero_num_node.getChildByName("num");
// this.playHeroNumNodePop(iconNode, 1.2); this.playHeroNumNodePop(iconNode, 1.2);
// this.playHeroNumNodePop(numNode, 1.2); this.playHeroNumNodePop(numNode, 1.2);
// } }
// private playHeroNumDeniedAnim() { private playHeroNumDeniedAnim() {
// if (!this.hero_num_node || !this.hero_num_node.isValid) return; if (!this.hero_num_node || !this.hero_num_node.isValid) return;
// const iconNode = this.hero_num_node.getChildByName("icon"); const iconNode = this.hero_num_node.getChildByName("icon");
// const numNode = this.hero_num_node.getChildByName("num"); const numNode = this.hero_num_node.getChildByName("num");
// this.playHeroNumNodePop(iconNode, 1.2); this.playHeroNumNodePop(iconNode, 1.2);
// this.playHeroNumNodePop(numNode, 1.2); this.playHeroNumNodePop(numNode, 1.2);
// } }
private playHeroNumNodePop(node: Node | null, scalePeak: number) { private playHeroNumNodePop(node: Node | null, scalePeak: number) {
this.playNodeScalePop(node, scalePeak, 0.08, 0.1); this.playNodeScalePop(node, scalePeak, 0.08, 0.1);