fix(map): 移除奖励数字前的加号前缀
调整RewardItemComp和VictoryComp中的奖励数量显示逻辑,去掉原本的+号前缀,统一展示原始数值
This commit is contained in:
@@ -34,7 +34,7 @@ export class RewardItemComp extends CCComp {
|
|||||||
*/
|
*/
|
||||||
setReward(count: number) {
|
setReward(count: number) {
|
||||||
if (this.count_label) {
|
if (this.count_label) {
|
||||||
this.count_label.string = `+${count}`;
|
this.count_label.string = `${count}`;
|
||||||
}
|
}
|
||||||
this.playEnter();
|
this.playEnter();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -619,7 +619,7 @@ export class VictoryComp extends CCComp {
|
|||||||
node.getComponent(ChipComp)?.setHeroByUuid(f.uuid);
|
node.getComponent(ChipComp)?.setHeroByUuid(f.uuid);
|
||||||
const numLabel = node.getChildByName("num")?.getComponent(Label);
|
const numLabel = node.getChildByName("num")?.getComponent(Label);
|
||||||
if (numLabel) {
|
if (numLabel) {
|
||||||
numLabel.string = `+${f.count}`;
|
numLabel.string = `${f.count}`;
|
||||||
numLabel.node.active = true;
|
numLabel.node.active = true;
|
||||||
}
|
}
|
||||||
items.push(node);
|
items.push(node);
|
||||||
|
|||||||
Reference in New Issue
Block a user