This commit is contained in:
guoqing.zhu 2022-06-06 11:59:36 +08:00
parent 083412466b
commit ee6096ac78
8 changed files with 59 additions and 11 deletions

View File

@ -11303,7 +11303,7 @@
"__id__": 329
}
],
"_active": false,
"_active": true,
"_level": 2,
"_components": [
{

View File

@ -23879,6 +23879,12 @@
"rewardIcons": {
"__id__": 489
},
"stars": {
"__id__": 14
},
"fullStarSpriteframe": {
"__uuid__": "6558fdbc-ce62-4135-81fd-449de06bbd38"
},
"_id": ""
},
{

View File

@ -3250,6 +3250,12 @@
"boostNode": {
"__id__": 54
},
"stars": {
"__id__": 8
},
"fullStarSpriteframe": {
"__uuid__": "6558fdbc-ce62-4135-81fd-449de06bbd38"
},
"_id": ""
},
{

View File

@ -6902,7 +6902,7 @@
"__id__": 197
}
],
"_active": false,
"_active": true,
"_level": 5,
"_components": [
{

View File

@ -3206,7 +3206,7 @@
"__id__": 89
}
],
"_active": false,
"_active": true,
"_level": 4,
"_components": [
{
@ -7827,7 +7827,7 @@
"__id__": 222
}
],
"_active": false,
"_active": true,
"_level": 4,
"_components": [
{
@ -12448,7 +12448,7 @@
"__id__": 355
}
],
"_active": false,
"_active": true,
"_level": 4,
"_components": [
{
@ -17069,7 +17069,7 @@
"__id__": 488
}
],
"_active": false,
"_active": true,
"_level": 4,
"_components": [
{

View File

@ -1778,7 +1778,7 @@
"__id__": 49
}
],
"_active": false,
"_active": true,
"_level": 4,
"_components": [
{
@ -5151,7 +5151,7 @@
"__id__": 147
}
],
"_active": false,
"_active": true,
"_level": 4,
"_components": [
{
@ -8524,7 +8524,7 @@
"__id__": 245
}
],
"_active": false,
"_active": true,
"_level": 4,
"_components": [
{

View File

@ -43,8 +43,18 @@ cc.Class({
rewardIcons:{
default:null,
type:cc.Node
}
},
stars:{
default:null,
type:cc.Node
},
fullStarSpriteframe:{
default:null,
type:cc.SpriteFrame
}
// needNode: {
// default: null,
// type: cc.Node,
@ -63,6 +73,15 @@ cc.Class({
this.setRewards(data.reward)
console.log(data.param2)
if(data.param2){
for(let i=0;i<data.param2;i+=1){
console.log("set onmr ")
this.stars.children[i].getComponent(cc.Sprite).spriteFrame = this.fullStarSpriteframe
}
}
if (data.param3) {
for(let i=0;i<this.herolistNode.children.length;i+=1){
this.herolistNode.children[i].active = false

View File

@ -38,7 +38,15 @@ cc.Class({
type: cc.Node,
},
stars:{
default:null,
type:cc.Node
},
fullStarSpriteframe:{
default:null,
type:cc.SpriteFrame
}
},
onClickBtn() {
@ -95,6 +103,15 @@ cc.Class({
},
init(data, originData) {
if(data.param2){
for(let i=0;i<data.param2;i+=1){
this.stars.children[i].getComponent(cc.Sprite).spriteFrame = this.fullStarSpriteframe
}
}
this.wantedData = data;
this.missionId = originData.mission_id;
if (originData.state == 0) {