This commit is contained in:
zhuguoqing 2022-06-06 15:04:48 +08:00
parent d43e889908
commit 7d3ced3fdf
5 changed files with 24 additions and 4 deletions

View File

@ -47,8 +47,8 @@
},
"_scale": {
"__type__": "cc.Vec3",
"x": 0.805834949016571,
"y": 0.805834949016571,
"x": 0.583953857421875,
"y": 0.583953857421875,
"z": 1
},
"_quat": {

View File

@ -23885,6 +23885,9 @@
"fullStarSpriteframe": {
"__uuid__": "6558fdbc-ce62-4135-81fd-449de06bbd38"
},
"ceg_num": {
"__id__": 501
},
"_id": ""
},
{

View File

@ -3256,6 +3256,9 @@
"fullStarSpriteframe": {
"__uuid__": "6558fdbc-ce62-4135-81fd-449de06bbd38"
},
"ceg_num": {
"__id__": 38
},
"_id": ""
},
{

View File

@ -54,6 +54,10 @@ cc.Class({
fullStarSpriteframe:{
default:null,
type:cc.SpriteFrame
},
ceg_num:{
default:null,
type:cc.Label
}
// needNode: {
// default: null,
@ -61,7 +65,7 @@ cc.Class({
// },
},
initData(data) {
initData(data,ceg_num) {
console.log("mission detail:"+JSON.stringify(data))
this.allChooseHero = new Array();
@ -98,6 +102,8 @@ cc.Class({
this.gunlistNode.children[i].active = true
}
}
this.ceg_num.string =`x${ceg_num}`
},

View File

@ -46,6 +46,11 @@ cc.Class({
fullStarSpriteframe:{
default:null,
type:cc.SpriteFrame
},
ceg_num:{
default:null,
type:cc.Label
}
},
@ -58,7 +63,7 @@ cc.Class({
}
if (this.missionState == 1) {
const node = cc.instantiate(this.missionPrefab);
node.getComponent('mission_choose').initData(this.wantedData);
node.getComponent('mission_choose').initData(this.wantedData,this.ceg);
cc.find('Canvas').addChild(node);
}
if (this.missionState == 2) {
@ -142,6 +147,9 @@ cc.Class({
if (originData.state == 1) {
this.node.destroy();
}
this.ceg = originData.ceg_num
this.ceg_num.string =`x${originData.ceg_num}`
},
start(){