奖励结算++

This commit is contained in:
2025-08-20 09:59:01 +08:00
parent bee97b4fe8
commit dbe2da2927
6 changed files with 2799 additions and 431 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -12905,10 +12905,10 @@
"height": 54,
"rawWidth": 54,
"rawHeight": 54,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"borderTop": 27,
"borderBottom": 27,
"borderLeft": 27,
"borderRight": 27,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,

View File

@@ -35,6 +35,9 @@ export class VictoryComp extends CCComp {
this.add_reward(args.rewards)
this.rewards=args.rewards
}
this.node.getChildByName("box").getChildByName("exp").getChildByName("num").getComponent(Label)!.string="x"+this.game_data["exp"].toString()
this.node.getChildByName("box").getChildByName("gold").getChildByName("num").getComponent(Label)!.string="x"+this.game_data["gold"].toString()
this.node.getChildByName("box").getChildByName("diamond").getChildByName("num").getComponent(Label)!.string="x"+this.game_data["diamond"].toString()
this.node.getChildByName("title").getChildByName("victory").active=args.victory
this.node.getChildByName("title").getChildByName("defeat").active=!args.victory
this.node.getChildByName("btns").getChildByName("next").active=false

View File

@@ -444,3 +444,4 @@ export class GameDataManager {