修复(任务卡片, GUI): 恢复英雄数量动画并调整UI边框参数
取消MissionCardComp.ts中的动画相关注释,启用英雄数量增减和已满时的弹出动画;调整ui3.plist.meta的UI元素边框参数优化显示效果。
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1036,10 +1036,10 @@
|
||||
"height": 62,
|
||||
"rawWidth": 653,
|
||||
"rawHeight": 80,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"borderTop": 23,
|
||||
"borderBottom": 21,
|
||||
"borderLeft": 56,
|
||||
"borderRight": 29,
|
||||
"packable": true,
|
||||
"pixelsToUnit": 100,
|
||||
"pivotX": 0.5,
|
||||
@@ -6972,8 +6972,8 @@
|
||||
"rawHeight": 57,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"borderLeft": 40,
|
||||
"borderRight": 42,
|
||||
"packable": true,
|
||||
"pixelsToUnit": 100,
|
||||
"pivotX": 0.5,
|
||||
|
||||
@@ -405,7 +405,7 @@ export class MissionCardComp extends CCComp {
|
||||
payload.cancel = true;
|
||||
payload.reason = "hero_limit";
|
||||
oops.gui.toast(`英雄已满 (${current}/${heroMax})`);
|
||||
// this.playHeroNumDeniedAnim();
|
||||
this.playHeroNumDeniedAnim();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -907,24 +907,24 @@ export class MissionCardComp extends CCComp {
|
||||
private updateHeroNumUI(animate: boolean, isIncrease: boolean) {
|
||||
this.syncMissionHeroData();
|
||||
if (!animate || !isIncrease) return;
|
||||
// this.playHeroNumGainAnim();
|
||||
this.playHeroNumGainAnim();
|
||||
}
|
||||
|
||||
// private playHeroNumGainAnim() {
|
||||
// if (!this.hero_num_node || !this.hero_num_node.isValid) return;
|
||||
// const iconNode = this.hero_num_node.getChildByName("icon");
|
||||
// const numNode = this.hero_num_node.getChildByName("num");
|
||||
// this.playHeroNumNodePop(iconNode, 1.2);
|
||||
// this.playHeroNumNodePop(numNode, 1.2);
|
||||
// }
|
||||
private playHeroNumGainAnim() {
|
||||
if (!this.hero_num_node || !this.hero_num_node.isValid) return;
|
||||
const iconNode = this.hero_num_node.getChildByName("icon");
|
||||
const numNode = this.hero_num_node.getChildByName("num");
|
||||
this.playHeroNumNodePop(iconNode, 1.2);
|
||||
this.playHeroNumNodePop(numNode, 1.2);
|
||||
}
|
||||
|
||||
// private playHeroNumDeniedAnim() {
|
||||
// if (!this.hero_num_node || !this.hero_num_node.isValid) return;
|
||||
// const iconNode = this.hero_num_node.getChildByName("icon");
|
||||
// const numNode = this.hero_num_node.getChildByName("num");
|
||||
// this.playHeroNumNodePop(iconNode, 1.2);
|
||||
// this.playHeroNumNodePop(numNode, 1.2);
|
||||
// }
|
||||
private playHeroNumDeniedAnim() {
|
||||
if (!this.hero_num_node || !this.hero_num_node.isValid) return;
|
||||
const iconNode = this.hero_num_node.getChildByName("icon");
|
||||
const numNode = this.hero_num_node.getChildByName("num");
|
||||
this.playHeroNumNodePop(iconNode, 1.2);
|
||||
this.playHeroNumNodePop(numNode, 1.2);
|
||||
}
|
||||
|
||||
private playHeroNumNodePop(node: Node | null, scalePeak: number) {
|
||||
this.playNodeScalePop(node, scalePeak, 0.08, 0.1);
|
||||
|
||||
Reference in New Issue
Block a user