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": { "_scale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.805834949016571, "x": 0.583953857421875,
"y": 0.805834949016571, "y": 0.583953857421875,
"z": 1 "z": 1
}, },
"_quat": { "_quat": {

View File

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

View File

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

View File

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

View File

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