updater
This commit is contained in:
parent
083412466b
commit
ee6096ac78
@ -11303,7 +11303,7 @@
|
|||||||
"__id__": 329
|
"__id__": 329
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": false,
|
"_active": true,
|
||||||
"_level": 2,
|
"_level": 2,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
|
@ -23879,6 +23879,12 @@
|
|||||||
"rewardIcons": {
|
"rewardIcons": {
|
||||||
"__id__": 489
|
"__id__": 489
|
||||||
},
|
},
|
||||||
|
"stars": {
|
||||||
|
"__id__": 14
|
||||||
|
},
|
||||||
|
"fullStarSpriteframe": {
|
||||||
|
"__uuid__": "6558fdbc-ce62-4135-81fd-449de06bbd38"
|
||||||
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -3250,6 +3250,12 @@
|
|||||||
"boostNode": {
|
"boostNode": {
|
||||||
"__id__": 54
|
"__id__": 54
|
||||||
},
|
},
|
||||||
|
"stars": {
|
||||||
|
"__id__": 8
|
||||||
|
},
|
||||||
|
"fullStarSpriteframe": {
|
||||||
|
"__uuid__": "6558fdbc-ce62-4135-81fd-449de06bbd38"
|
||||||
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -6902,7 +6902,7 @@
|
|||||||
"__id__": 197
|
"__id__": 197
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": false,
|
"_active": true,
|
||||||
"_level": 5,
|
"_level": 5,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
|
@ -3206,7 +3206,7 @@
|
|||||||
"__id__": 89
|
"__id__": 89
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": false,
|
"_active": true,
|
||||||
"_level": 4,
|
"_level": 4,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
@ -7827,7 +7827,7 @@
|
|||||||
"__id__": 222
|
"__id__": 222
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": false,
|
"_active": true,
|
||||||
"_level": 4,
|
"_level": 4,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
@ -12448,7 +12448,7 @@
|
|||||||
"__id__": 355
|
"__id__": 355
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": false,
|
"_active": true,
|
||||||
"_level": 4,
|
"_level": 4,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
@ -17069,7 +17069,7 @@
|
|||||||
"__id__": 488
|
"__id__": 488
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": false,
|
"_active": true,
|
||||||
"_level": 4,
|
"_level": 4,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
|
@ -1778,7 +1778,7 @@
|
|||||||
"__id__": 49
|
"__id__": 49
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": false,
|
"_active": true,
|
||||||
"_level": 4,
|
"_level": 4,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
@ -5151,7 +5151,7 @@
|
|||||||
"__id__": 147
|
"__id__": 147
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": false,
|
"_active": true,
|
||||||
"_level": 4,
|
"_level": 4,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
@ -8524,7 +8524,7 @@
|
|||||||
"__id__": 245
|
"__id__": 245
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": false,
|
"_active": true,
|
||||||
"_level": 4,
|
"_level": 4,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
|
@ -43,8 +43,18 @@ cc.Class({
|
|||||||
rewardIcons:{
|
rewardIcons:{
|
||||||
default:null,
|
default:null,
|
||||||
type:cc.Node
|
type:cc.Node
|
||||||
}
|
},
|
||||||
|
|
||||||
|
|
||||||
|
stars:{
|
||||||
|
default:null,
|
||||||
|
type:cc.Node
|
||||||
|
},
|
||||||
|
|
||||||
|
fullStarSpriteframe:{
|
||||||
|
default:null,
|
||||||
|
type:cc.SpriteFrame
|
||||||
|
}
|
||||||
// needNode: {
|
// needNode: {
|
||||||
// default: null,
|
// default: null,
|
||||||
// type: cc.Node,
|
// type: cc.Node,
|
||||||
@ -63,6 +73,15 @@ cc.Class({
|
|||||||
|
|
||||||
this.setRewards(data.reward)
|
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) {
|
if (data.param3) {
|
||||||
for(let i=0;i<this.herolistNode.children.length;i+=1){
|
for(let i=0;i<this.herolistNode.children.length;i+=1){
|
||||||
this.herolistNode.children[i].active = false
|
this.herolistNode.children[i].active = false
|
||||||
|
@ -38,7 +38,15 @@ cc.Class({
|
|||||||
type: cc.Node,
|
type: cc.Node,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
stars:{
|
||||||
|
default:null,
|
||||||
|
type:cc.Node
|
||||||
|
},
|
||||||
|
|
||||||
|
fullStarSpriteframe:{
|
||||||
|
default:null,
|
||||||
|
type:cc.SpriteFrame
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onClickBtn() {
|
onClickBtn() {
|
||||||
@ -95,6 +103,15 @@ cc.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
init(data, originData) {
|
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.wantedData = data;
|
||||||
this.missionId = originData.mission_id;
|
this.missionId = originData.mission_id;
|
||||||
if (originData.state == 0) {
|
if (originData.state == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user