奖励结算++
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -12905,10 +12905,10 @@
|
|||||||
"height": 54,
|
"height": 54,
|
||||||
"rawWidth": 54,
|
"rawWidth": 54,
|
||||||
"rawHeight": 54,
|
"rawHeight": 54,
|
||||||
"borderTop": 0,
|
"borderTop": 27,
|
||||||
"borderBottom": 0,
|
"borderBottom": 27,
|
||||||
"borderLeft": 0,
|
"borderLeft": 27,
|
||||||
"borderRight": 0,
|
"borderRight": 27,
|
||||||
"packable": true,
|
"packable": true,
|
||||||
"pixelsToUnit": 100,
|
"pixelsToUnit": 100,
|
||||||
"pivotX": 0.5,
|
"pivotX": 0.5,
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ export class VictoryComp extends CCComp {
|
|||||||
this.add_reward(args.rewards)
|
this.add_reward(args.rewards)
|
||||||
this.rewards=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("victory").active=args.victory
|
||||||
this.node.getChildByName("title").getChildByName("defeat").active=!args.victory
|
this.node.getChildByName("title").getChildByName("defeat").active=!args.victory
|
||||||
this.node.getChildByName("btns").getChildByName("next").active=false
|
this.node.getChildByName("btns").getChildByName("next").active=false
|
||||||
|
|||||||
@@ -444,3 +444,4 @@ export class GameDataManager {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -914,3 +914,4 @@ wx.cloud.callFunction({
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -268,3 +268,4 @@ module.exports = {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user