Commit 8acdd228 authored by Lwd's avatar Lwd

aaaa

parent e9e05281
...@@ -12,15 +12,13 @@ ...@@ -12,15 +12,13 @@
<h5> add background: </h5> <h5> add background: </h5>
<div class="bg-box"> <div class="bg-box">
<app-upload-image-with-preview <app-upload-image-with-preview [picUrl]="bgItem?.url"
[picUrl]="bgItem?.url"
(imageUploaded)="onBackgroundUploadSuccess($event)"> (imageUploaded)="onBackgroundUploadSuccess($event)">
</app-upload-image-with-preview> </app-upload-image-with-preview>
</div> </div>
</div> </div>
<div nz-col nzSpan="5" nzOffset="1" class="img-box" <div nz-col nzSpan="5" nzOffset="1" class="img-box" *ngFor="let it of hotZoneArr; let i = index">
*ngFor="let it of hotZoneArr; let i = index">
<div <div
style="margin: auto; padding: 5px; margin-top: 30px; width:90%; border: 2px dashed #ddd; border-radius: 10px"> style="margin: auto; padding: 5px; margin-top: 30px; width:90%; border: 2px dashed #ddd; border-radius: 10px">
...@@ -42,8 +40,7 @@ ...@@ -42,8 +40,7 @@
</div> </div>
<div *ngIf="it.itemType == 'pic'"> <div *ngIf="it.itemType == 'pic'">
<app-upload-image-with-preview <app-upload-image-with-preview [picUrl]="it?.pic_url"
[picUrl]="it?.pic_url"
(imageUploaded)="onItemImgUploadSuccess($event, it)"> (imageUploaded)="onItemImgUploadSuccess($event, it)">
</app-upload-image-with-preview> </app-upload-image-with-preview>
</div> </div>
...@@ -53,10 +50,8 @@ ...@@ -53,10 +50,8 @@
</div> </div>
<div style="width: 100%; margin-top: 5px;"> <div style="width: 100%; margin-top: 5px;">
<app-audio-recorder <app-audio-recorder [audioUrl]="it.audio_url"
[audioUrl]="it.audio_url" (audioUploaded)="onItemAudioUploadSuccess($event, it)"></app-audio-recorder>
(audioUploaded)="onItemAudioUploadSuccess($event, it)"
></app-audio-recorder>
</div> </div>
</div> </div>
...@@ -67,8 +62,7 @@ ...@@ -67,8 +62,7 @@
<div nz-col nzSpan="5" nzOffset="1"> <div nz-col nzSpan="5" nzOffset="1">
<div class="bg-box"> <div class="bg-box">
<button nz-button nzType="dashed" (click)="addBtnClick()" <button nz-button nzType="dashed" (click)="addBtnClick()" class="add-btn">
class="add-btn">
<i nz-icon nzType="plus-circle" nzTheme="outline"></i> <i nz-icon nzType="plus-circle" nzTheme="outline"></i>
<!--Add Image--> <!--Add Image-->
Add hot zone Add hot zone
...@@ -83,8 +77,7 @@ ...@@ -83,8 +77,7 @@
<div class="save-box"> <div class="save-box">
<button class="save-btn" nz-button nzType="primary" [nzSize]="'large'" nzShape="round" <button class="save-btn" nz-button nzType="primary" [nzSize]="'large'" nzShape="round" (click)="saveClick()">
(click)="saveClick()" >
<i nz-icon nzType="save"></i> <i nz-icon nzType="save"></i>
Save Save
</button> </button>
...@@ -96,5 +89,3 @@ ...@@ -96,5 +89,3 @@
<label style="opacity: 0; position: absolute; top: 0px; font-family: 'BRLNSR_1'">1</label> <label style="opacity: 0; position: absolute; top: 0px; font-family: 'BRLNSR_1'">1</label>
\ No newline at end of file
import {ApplicationRef, Component, EventEmitter, Input, OnChanges, OnDestroy, Output} from '@angular/core'; import { ApplicationRef, Component, EventEmitter, Input, OnChanges, OnDestroy, Output } from '@angular/core';
import { NzMessageService, UploadXHRArgs, UploadFile } from 'ng-zorro-antd'; import { NzMessageService, UploadXHRArgs, UploadFile } from 'ng-zorro-antd';
...@@ -59,8 +59,8 @@ export class UploadDragonBoneComponent implements OnDestroy, OnChanges { ...@@ -59,8 +59,8 @@ export class UploadDragonBoneComponent implements OnDestroy, OnChanges {
constructor(private appRef: ApplicationRef, private nzMessageService: NzMessageService) { constructor(private appRef: ApplicationRef, private nzMessageService: NzMessageService) {
this.uploadUrl = (<any> window).courseware.uploadUrl(); this.uploadUrl = (<any>window).courseware.uploadUrl();
this.uploadData = (<any> window).courseware.uploadData(); this.uploadData = (<any>window).courseware.uploadData();
window['air'].getUploadCallback = (url, data) => { window['air'].getUploadCallback = (url, data) => {
this.uploadUrl = url; this.uploadUrl = url;
......
...@@ -4,6 +4,13 @@ ...@@ -4,6 +4,13 @@
<input type="text" nz-input [(ngModel)]="item.contentObj.title" (blur)="saveItem()"> <input type="text" nz-input [(ngModel)]="item.contentObj.title" (blur)="saveItem()">
</div> </div>
<div class="section-content;text-align:center">
<div style="display: inline-block; margin-bottom: 10px">
<app-audio-recorder [audioUrl]="item.contentObj.audio_url"
(audioUploaded)="onAudioUploadSuccessByItem($event, item.contentObj)">
</app-audio-recorder>
</div>
</div>
<div *ngFor="let it of pageArr; let i = index" style="padding: 0.5vw; width: 20%;"> <div *ngFor="let it of pageArr; let i = index" style="padding: 0.5vw; width: 20%;">
<div class="border" style="display: flex; align-items: center;"> <div class="border" style="display: flex; align-items: center;">
...@@ -64,12 +71,60 @@ ...@@ -64,12 +71,60 @@
<!--公共部分--> <!--公共部分-->
<div class="item-box" style="width: 35% ;padding-left: 100px"> <div class="item-box" style="width: 35% ;padding-left: 100px">
<div style="width: 100%;"> <div style="width: 100%;">
<app-upload-image-with-preview style="width: 100%" [picUrl]="it['groupPic']" <div style="float: left; text-align: right; margin-right: 10px; margin-left: 10px;">
(imageUploaded)="onImageUploadSuccessByItem($event, it)"> <span>显示选项</span><span> :</span>
</div>
<div style="float: left;width: 100%;">
<nz-radio-group [(ngModel)]="it['type']" (ngModelChange)="handleQuestionTypeChange($event)">
<label nz-radio [nzValue]="'Image'">背景图片</label>
<label nz-radio [nzValue]="'Spine'">骨骼动画</label>
</nz-radio-group>
</div>
<div style="float: left;width: 100%;">
<div *ngIf="it['type']=='Image'">
<app-upload-image-with-preview style="width: 100%;" [picUrl]="it['groupPic']"
(imageUploaded)="onImageUploadSuccessByItem($event, it, 'image_url')">
</app-upload-image-with-preview> </app-upload-image-with-preview>
</div> </div>
<div *ngIf="it['type']=='Spine' ">
<div style="display: flex 1;margin-bottom: 10px;margin-left: 10px;">
<span>上传 ske_json 文件</span><span> : </span>
<nz-upload nzAccept=".json" [nzAction]="uploadUrl" [nzData]="uploadData"
[nzShowUploadList]="false" (nzChange)="handleChange($event, it,'ske_json')">
<button nz-button><i nz-icon nzType="upload"></i>Upload</button>
</nz-upload>
<span style="margin-left: 10px;">{{it["ske_json_name"]}}</span>
</div>
<div style="display: flex 1;margin-bottom: 10px;margin-left: 10px;">
<span>上传 tex_json 文件</span><span> : </span>
<nz-upload nzAccept=".json" [nzAction]="uploadUrl" [nzData]="uploadData"
[nzShowUploadList]="false" (nzChange)="handleChange($event, it,'tex_json')">
<button nz-button><i nz-icon nzType="upload"></i>Upload</button>
</nz-upload>
<span style="margin-left: 10px;">{{ it["tex_json_name"] }}</span>
</div>
<div style="display: flex 1;margin-bottom: 10px;margin-left: 10px;">
<span>上传 tex_png 文件</span><span> : </span>
<nz-upload nzAccept=".png" [nzAction]="uploadUrl" [nzData]="uploadData"
[nzShowUploadList]="false" (nzChange)="handleChange($event, it,'tex_png')">
<button nz-button><i nz-icon nzType="upload"></i>Upload</button>
</nz-upload>
<span style="margin-left: 10px;">{{ it["tex_png_name"] }}</span>
</div>
</div>
</div>
<!-- <app-upload-image-with-preview style="width: 100%" [picUrl]="it['groupPic']"
(imageUploaded)="onImageUploadSuccessByItem($event, it)">
</app-upload-image-with-preview> -->
</div>
<input style=" width: 100%; margin-bottom: 0.5vw" type="text" nz-input placeholder="点击输入文本内容" <input style=" width: 100%; margin-bottom: 0.5vw" type="text" nz-input placeholder="点击输入文本内容"
[(ngModel)]="it.groupLabel" (blur)="saveItem()"> [(ngModel)]="it.groupLabel" (blur)="saveItem()">
<app-audio-recorder style="margin-top: 0.5vw" [audioUrl]="it['group_audio_url']"
(audioUploaded)="onAudioUploadSuccessByItem($event, it, 'group')">
</app-audio-recorder>
</div> </div>
<div class="item-box" style="width:35%; padding-left: 100px"> <div class="item-box" style="width:35%; padding-left: 100px">
......
...@@ -9,6 +9,7 @@ import { ...@@ -9,6 +9,7 @@ import {
ApplicationRef, ApplicationRef,
ChangeDetectorRef ChangeDetectorRef
} from '@angular/core'; } from '@angular/core';
import { NzMessageService, UploadXHRArgs, UploadFile } from 'ng-zorro-antd';
...@@ -19,6 +20,9 @@ import { ...@@ -19,6 +20,9 @@ import {
}) })
export class FormComponent implements OnInit, OnChanges, OnDestroy { export class FormComponent implements OnInit, OnChanges, OnDestroy {
pageArr = [];//页数据 pageArr = [];//页数据
fileList
uploadUrl
uploadData
_item: any; _item: any;
KEY = 'hw_004'; KEY = 'hw_004';
...@@ -43,10 +47,13 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -43,10 +47,13 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
update = new EventEmitter(); update = new EventEmitter();
constructor(private appRef: ApplicationRef, private changeDetectorRef: ChangeDetectorRef) {
constructor(private appRef: ApplicationRef, this.uploadUrl = (<any>window).courseware.uploadUrl();
public changeDetectorRef: ChangeDetectorRef) { this.uploadData = (<any>window).courseware.uploadData();
window['air'].getUploadCallback = (url, data) => {
this.uploadUrl = url;
this.uploadData = data;
};
} }
...@@ -55,6 +62,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -55,6 +62,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.item = {}; this.item = {};
this.item.contentObj = {}; this.item.contentObj = {};
const getData = (<any>window).courseware.getData; const getData = (<any>window).courseware.getData;
getData((data) => { getData((data) => {
...@@ -99,6 +107,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -99,6 +107,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
console.log('item:', this.item); console.log('item:', this.item);
} }
getDefaultPicArr() { getDefaultPicArr() {
const arr = []; const arr = [];
// for (let i = 0; i < 4; i ++) { // for (let i = 0; i < 4; i ++) {
...@@ -170,6 +179,38 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -170,6 +179,38 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.save(); this.save();
} }
uploadSuccess(file, item, key) {
console.log(item);
item[key] = file.response.url;
item[key + '_name'] = file.name;
this.save();
}
handleChange(info: { type: string, file: UploadFile, event: any }, item, key) {
console.log('info:', info);
switch (info.type) {
case 'success':
this.uploadSuccess(info.file, item, key);
break;
}
}
handleQuestionTypeChange(key) {
if (key == 'Spine') {
this.fileList = [
{
uid: '-1',
name: this.item['ske_json'],
status: 'done',
url: this.item['ske_json']
}
]
} else if (key == 'Image') {
}
this.saveItem()
this.changeDetectorRef.detectChanges();
this.changeDetectorRef.markForCheck();
}
//添加页面 //添加页面
addPage() { addPage() {
const data = { const data = {
...@@ -189,6 +230,13 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -189,6 +230,13 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
b_audio_url: '', b_audio_url: '',
groupLabel: '', groupLabel: '',
groupPic: '', groupPic: '',
group_audio_url: '',
type: '',
ske_json: '',
tex_json: '',
tex_png: '',
// uploadData: '',
// uploadUrl: '',
}; };
this.pageArr[i].pageInfo.push(data); this.pageArr[i].pageInfo.push(data);
console.log(this.pageArr); console.log(this.pageArr);
...@@ -222,6 +270,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -222,6 +270,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
const getData = (<any>window).courseware.getData; const getData = (<any>window).courseware.getData;
getData((data) => { getData((data) => {
console.log('data:', data); console.log('data:', data);
// console.log('string:', JSON.stringify(data));
}, this.KEY); }, this.KEY);
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"ver": "1.1.0",
"uuid": "61fcc759-2eb5-4e50-a2f3-0cc3393881d8",
"subMetas": {}
}
\ No newline at end of file
...@@ -75,37 +75,37 @@ ...@@ -75,37 +75,37 @@
"__id__": 5 "__id__": 5
}, },
{ {
"__id__": 25 "__id__": 27
}, },
{ {
"__id__": 68 "__id__": 29
}, },
{ {
"__id__": 70 "__id__": 72
}, },
{ {
"__id__": 73 "__id__": 75
}, },
{ {
"__id__": 126 "__id__": 136
}, },
{ {
"__id__": 144 "__id__": 154
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 146 "__id__": 156
}, },
{ {
"__id__": 147 "__id__": 157
}, },
{ {
"__id__": 148 "__id__": 158
}, },
{ {
"__id__": 149 "__id__": 159
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
"array": [ "array": [
0, 0,
0, 0,
294.44863728670913, 539.5252766428575,
0, 0,
0, 0,
0, 0,
...@@ -271,9 +271,6 @@ ...@@ -271,9 +271,6 @@
{ {
"__id__": 11 "__id__": 11
}, },
{
"__id__": 17
},
{ {
"__id__": 19 "__id__": 19
}, },
...@@ -282,6 +279,9 @@ ...@@ -282,6 +279,9 @@
}, },
{ {
"__id__": 23 "__id__": 23
},
{
"__id__": 25
} }
], ],
"_active": true, "_active": true,
...@@ -571,6 +571,9 @@ ...@@ -571,6 +571,9 @@
}, },
{ {
"__id__": 16 "__id__": 16
},
{
"__id__": 17
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -798,6 +801,88 @@ ...@@ -798,6 +801,88 @@
"_originalHeight": 199, "_originalHeight": 199,
"_id": "c2NzOuTThP4aFmEB/NOnR6" "_id": "c2NzOuTThP4aFmEB/NOnR6"
}, },
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 18
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "6cg20v+bZMBqjVrbW/w80P"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 2
},
"component": "",
"_componentId": "8b0b7lMf15OlIK40chbxp64",
"handler": "",
"customEventData": ""
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "spt_cloud1", "_name": "spt_cloud1",
...@@ -809,7 +894,7 @@ ...@@ -809,7 +894,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 18 "__id__": 20
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -865,7 +950,7 @@ ...@@ -865,7 +950,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 17 "__id__": 19
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -903,7 +988,7 @@ ...@@ -903,7 +988,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 20 "__id__": 22
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -959,7 +1044,7 @@ ...@@ -959,7 +1044,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 19 "__id__": 21
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -997,7 +1082,7 @@ ...@@ -997,7 +1082,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 22 "__id__": 24
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1053,7 +1138,7 @@ ...@@ -1053,7 +1138,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 21 "__id__": 23
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1091,7 +1176,7 @@ ...@@ -1091,7 +1176,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 24 "__id__": 26
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1147,7 +1232,7 @@ ...@@ -1147,7 +1232,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 23 "__id__": 25
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1174,6 +1259,101 @@ ...@@ -1174,6 +1259,101 @@
"_atlas": null, "_atlas": null,
"_id": "62jcSkj0xOKLOzg8dvUB8z" "_id": "62jcSkj0xOKLOzg8dvUB8z"
}, },
{
"__type__": "cc.Node",
"_name": "draw",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 28
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "10XJxX/MZD5risSrkeuYQs"
},
{
"__type__": "cc.Graphics",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
},
"_enabled": true,
"_materials": [
{
"__uuid__": "a153945d-2511-4c14-be7b-05d242f47d57"
}
],
"_lineWidth": 2,
"_strokeColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_lineJoin": 2,
"_lineCap": 0,
"_fillColor": {
"__type__": "cc.Color",
"r": 251,
"g": 0,
"b": 0,
"a": 255
},
"_miterLimit": 10,
"_id": "9eUjS2d0VLlLGCSME0sqci"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "game", "_name": "game",
...@@ -1183,16 +1363,16 @@ ...@@ -1183,16 +1363,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 26 "__id__": 30
}, },
{ {
"__id__": 28 "__id__": 32
}, },
{ {
"__id__": 30 "__id__": 34
}, },
{ {
"__id__": 48 "__id__": 52
} }
], ],
"_active": true, "_active": true,
...@@ -1250,13 +1430,13 @@ ...@@ -1250,13 +1430,13 @@
"_name": "Layout", "_name": "Layout",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 25 "__id__": 29
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 27 "__id__": 31
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1312,7 +1492,7 @@ ...@@ -1312,7 +1492,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 26 "__id__": 30
}, },
"_enabled": true, "_enabled": true,
"_layoutSize": { "_layoutSize": {
...@@ -1344,13 +1524,13 @@ ...@@ -1344,13 +1524,13 @@
"_name": "Layout", "_name": "Layout",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 25 "__id__": 29
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 29 "__id__": 33
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1406,7 +1586,7 @@ ...@@ -1406,7 +1586,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 28 "__id__": 32
}, },
"_enabled": true, "_enabled": true,
"_layoutSize": { "_layoutSize": {
...@@ -1438,32 +1618,32 @@ ...@@ -1438,32 +1618,32 @@
"_name": "item_1", "_name": "item_1",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 25 "__id__": 29
}, },
"_children": [ "_children": [
{ {
"__id__": 31 "__id__": 35
},
{
"__id__": 33
}, },
{ {
"__id__": 37 "__id__": 37
}, },
{ {
"__id__": 39 "__id__": 41
}, },
{ {
"__id__": 43 "__id__": 43
},
{
"__id__": 47
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 45 "__id__": 49
}, },
{ {
"__id__": 46 "__id__": 50
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1498,7 +1678,7 @@ ...@@ -1498,7 +1678,7 @@
1, 1,
1, 1,
1, 1,
1 0
] ]
}, },
"_eulerAngles": { "_eulerAngles": {
...@@ -1519,13 +1699,13 @@ ...@@ -1519,13 +1699,13 @@
"_name": "circle_1", "_name": "circle_1",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 30 "__id__": 34
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 32 "__id__": 36
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1581,7 +1761,7 @@ ...@@ -1581,7 +1761,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 31 "__id__": 35
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1613,17 +1793,17 @@ ...@@ -1613,17 +1793,17 @@
"_name": "circle_1_light", "_name": "circle_1_light",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 30 "__id__": 34
}, },
"_children": [ "_children": [
{ {
"__id__": 34 "__id__": 38
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 36 "__id__": 40
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1679,13 +1859,13 @@ ...@@ -1679,13 +1859,13 @@
"_name": "spt_chick", "_name": "spt_chick",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 33 "__id__": 37
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 35 "__id__": 39
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1705,14 +1885,14 @@ ...@@ -1705,14 +1885,14 @@
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": -0.3 "y": 0.5
}, },
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
-85, -65,
0, 0,
0, 0,
0, 0,
...@@ -1741,7 +1921,7 @@ ...@@ -1741,7 +1921,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 34 "__id__": 38
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1773,7 +1953,7 @@ ...@@ -1773,7 +1953,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 33 "__id__": 37
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1805,13 +1985,13 @@ ...@@ -1805,13 +1985,13 @@
"_name": "spt_Star", "_name": "spt_Star",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 30 "__id__": 34
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 38 "__id__": 42
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1867,7 +2047,7 @@ ...@@ -1867,7 +2047,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 37 "__id__": 41
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1899,17 +2079,17 @@ ...@@ -1899,17 +2079,17 @@
"_name": "mask", "_name": "mask",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 30 "__id__": 34
}, },
"_children": [ "_children": [
{ {
"__id__": 40 "__id__": 44
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 42 "__id__": 46
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1965,13 +2145,13 @@ ...@@ -1965,13 +2145,13 @@
"_name": "spt", "_name": "spt",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 39 "__id__": 43
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 41 "__id__": 45
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2027,7 +2207,7 @@ ...@@ -2027,7 +2207,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 40 "__id__": 44
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2059,7 +2239,7 @@ ...@@ -2059,7 +2239,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 39 "__id__": 43
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2079,13 +2259,13 @@ ...@@ -2079,13 +2259,13 @@
"_name": "error", "_name": "error",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 30 "__id__": 34
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 44 "__id__": 48
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2141,7 +2321,7 @@ ...@@ -2141,7 +2321,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 43 "__id__": 47
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2173,28 +2353,28 @@ ...@@ -2173,28 +2353,28 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 30 "__id__": 34
}, },
"_enabled": true, "_enabled": true,
"Picture": { "Picture": {
"__id__": 37 "__id__": 41
}, },
"nodeState": [ "nodeState": [
{ {
"__id__": 31 "__id__": 35
}, },
{ {
"__id__": 33 "__id__": 37
}, },
{ {
"__id__": 39 "__id__": 43
} }
], ],
"spt_error": { "spt_error": {
"__id__": 43 "__id__": 47
}, },
"spt_chick": { "spt_chick": {
"__id__": 34 "__id__": 38
}, },
"_id": "3bDAY1GxVPhaPpkEexe2pC" "_id": "3bDAY1GxVPhaPpkEexe2pC"
}, },
...@@ -2203,7 +2383,7 @@ ...@@ -2203,7 +2383,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 30 "__id__": 34
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -2212,7 +2392,7 @@ ...@@ -2212,7 +2392,7 @@
"zoomScale": 0.95, "zoomScale": 0.95,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 47 "__id__": 51
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -2273,7 +2453,7 @@ ...@@ -2273,7 +2453,7 @@
{ {
"__type__": "cc.ClickEvent", "__type__": "cc.ClickEvent",
"target": { "target": {
"__id__": 30 "__id__": 34
}, },
"component": "", "component": "",
"_componentId": "e729bOHnRpHpJ09B2/R3cNg", "_componentId": "e729bOHnRpHpJ09B2/R3cNg",
...@@ -2285,35 +2465,35 @@ ...@@ -2285,35 +2465,35 @@
"_name": "item_2", "_name": "item_2",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 25 "__id__": 29
}, },
"_children": [ "_children": [
{ {
"__id__": 49 "__id__": 53
},
{
"__id__": 51
}, },
{ {
"__id__": 53 "__id__": 55
}, },
{ {
"__id__": 57 "__id__": 57
}, },
{ {
"__id__": 59 "__id__": 61
}, },
{ {
"__id__": 63 "__id__": 63
},
{
"__id__": 67
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 65 "__id__": 69
}, },
{ {
"__id__": 66 "__id__": 70
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2348,7 +2528,7 @@ ...@@ -2348,7 +2528,7 @@
1, 1,
1, 1,
1, 1,
1 0
] ]
}, },
"_eulerAngles": { "_eulerAngles": {
...@@ -2369,13 +2549,13 @@ ...@@ -2369,13 +2549,13 @@
"_name": "gun", "_name": "gun",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 48 "__id__": 52
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 50 "__id__": 54
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2431,7 +2611,7 @@ ...@@ -2431,7 +2611,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 49 "__id__": 53
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2463,13 +2643,13 @@ ...@@ -2463,13 +2643,13 @@
"_name": "circle_2", "_name": "circle_2",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 48 "__id__": 52
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 52 "__id__": 56
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2525,7 +2705,7 @@ ...@@ -2525,7 +2705,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 51 "__id__": 55
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2557,17 +2737,17 @@ ...@@ -2557,17 +2737,17 @@
"_name": "circle_2_light", "_name": "circle_2_light",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 48 "__id__": 52
}, },
"_children": [ "_children": [
{ {
"__id__": 54 "__id__": 58
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 56 "__id__": 60
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2623,13 +2803,13 @@ ...@@ -2623,13 +2803,13 @@
"_name": "spt_chick", "_name": "spt_chick",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 53 "__id__": 57
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 55 "__id__": 59
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2649,14 +2829,14 @@ ...@@ -2649,14 +2829,14 @@
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 1.3 "y": 0.5
}, },
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
85, 64,
0, 0,
0, 0,
0, 0,
...@@ -2685,7 +2865,7 @@ ...@@ -2685,7 +2865,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 54 "__id__": 58
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2717,7 +2897,7 @@ ...@@ -2717,7 +2897,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 53 "__id__": 57
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2749,13 +2929,13 @@ ...@@ -2749,13 +2929,13 @@
"_name": "spt_Star", "_name": "spt_Star",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 48 "__id__": 52
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 58 "__id__": 62
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2811,7 +2991,7 @@ ...@@ -2811,7 +2991,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 57 "__id__": 61
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2843,17 +3023,17 @@ ...@@ -2843,17 +3023,17 @@
"_name": "mask", "_name": "mask",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 48 "__id__": 52
}, },
"_children": [ "_children": [
{ {
"__id__": 60 "__id__": 64
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 62 "__id__": 66
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2909,13 +3089,13 @@ ...@@ -2909,13 +3089,13 @@
"_name": "spt", "_name": "spt",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 59 "__id__": 63
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 61 "__id__": 65
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2971,7 +3151,7 @@ ...@@ -2971,7 +3151,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 60 "__id__": 64
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3003,7 +3183,7 @@ ...@@ -3003,7 +3183,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 59 "__id__": 63
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3023,13 +3203,13 @@ ...@@ -3023,13 +3203,13 @@
"_name": "error", "_name": "error",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 48 "__id__": 52
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 64 "__id__": 68
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3085,7 +3265,7 @@ ...@@ -3085,7 +3265,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 63 "__id__": 67
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3117,28 +3297,28 @@ ...@@ -3117,28 +3297,28 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 48 "__id__": 52
}, },
"_enabled": true, "_enabled": true,
"Picture": { "Picture": {
"__id__": 57 "__id__": 61
}, },
"nodeState": [ "nodeState": [
{ {
"__id__": 51 "__id__": 55
}, },
{ {
"__id__": 53 "__id__": 57
}, },
{ {
"__id__": 59 "__id__": 63
} }
], ],
"spt_error": { "spt_error": {
"__id__": 63 "__id__": 67
}, },
"spt_chick": { "spt_chick": {
"__id__": 54 "__id__": 58
}, },
"_id": "8aq54xAINKpbcvXnQAf7Hy" "_id": "8aq54xAINKpbcvXnQAf7Hy"
}, },
...@@ -3147,7 +3327,7 @@ ...@@ -3147,7 +3327,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 48 "__id__": 52
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -3156,7 +3336,7 @@ ...@@ -3156,7 +3336,7 @@
"zoomScale": 0.95, "zoomScale": 0.95,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 67 "__id__": 71
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -3217,7 +3397,7 @@ ...@@ -3217,7 +3397,7 @@
{ {
"__type__": "cc.ClickEvent", "__type__": "cc.ClickEvent",
"target": { "target": {
"__id__": 48 "__id__": 52
}, },
"component": "", "component": "",
"_componentId": "e729bOHnRpHpJ09B2/R3cNg", "_componentId": "e729bOHnRpHpJ09B2/R3cNg",
...@@ -3226,7 +3406,7 @@ ...@@ -3226,7 +3406,7 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "draw", "_name": "bg_grass",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
...@@ -3235,7 +3415,10 @@ ...@@ -3235,7 +3415,10 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 69 "__id__": 73
},
{
"__id__": 74
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3249,8 +3432,8 @@ ...@@ -3249,8 +3432,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 1280,
"height": 0 "height": 126
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3262,7 +3445,7 @@ ...@@ -3262,7 +3445,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, -297,
0, 0,
0, 0,
0, 0,
...@@ -3284,193 +3467,95 @@ ...@@ -3284,193 +3467,95 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "10XJxX/MZD5risSrkeuYQs" "_id": "50BGfp8kdGibPuCp/ZgQ4C"
}, },
{ {
"__type__": "cc.Graphics", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 68 "__id__": 72
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
{ {
"__uuid__": "a153945d-2511-4c14-be7b-05d242f47d57" "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
} }
], ],
"_lineWidth": 2, "_srcBlendFactor": 770,
"_strokeColor": { "_dstBlendFactor": 771,
"__type__": "cc.Color", "_spriteFrame": {
"r": 0, "__uuid__": "20fde735-8d82-48b7-9c66-6ee323b4e927"
"g": 0,
"b": 0,
"a": 255
}, },
"_lineJoin": 2, "_type": 0,
"_lineCap": 0, "_sizeMode": 1,
"_fillColor": { "_fillType": 0,
"__type__": "cc.Color", "_fillCenter": {
"r": 251, "__type__": "cc.Vec2",
"g": 0, "x": 0,
"b": 0, "y": 0
"a": 255
}, },
"_miterLimit": 10, "_fillStart": 0,
"_id": "9eUjS2d0VLlLGCSME0sqci" "_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "09Zlygiw5F9qhUndHJHo99"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 44,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1280,
"_originalHeight": 0,
"_id": "abBOXvdPhGHYsgNRTTj2uz"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "bg_grass", "_name": "result",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [
"_active": true,
"_components": [
{ {
"__id__": 71 "__id__": 76
}, },
{ {
"__id__": 72 "__id__": 79
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 126
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-297,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "50BGfp8kdGibPuCp/ZgQ4C"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 70
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "20fde735-8d82-48b7-9c66-6ee323b4e927"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "09Zlygiw5F9qhUndHJHo99"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 70
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 44,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1280,
"_originalHeight": 0,
"_id": "abBOXvdPhGHYsgNRTTj2uz"
},
{
"__type__": "cc.Node",
"_name": "result",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 74
},
{
"__id__": 77
}, },
{ {
"__id__": 85 "__id__": 91
}, },
{ {
"__id__": 89 "__id__": 99
}, },
{ {
"__id__": 93 "__id__": 103
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 125 "__id__": 135
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3526,16 +3611,16 @@ ...@@ -3526,16 +3611,16 @@
"_name": "Mask", "_name": "Mask",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 73 "__id__": 75
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 75 "__id__": 77
}, },
{ {
"__id__": 76 "__id__": 78
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3591,7 +3676,7 @@ ...@@ -3591,7 +3676,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 74 "__id__": 76
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -3659,7 +3744,7 @@ ...@@ -3659,7 +3744,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 74 "__id__": 76
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3679,20 +3764,23 @@ ...@@ -3679,20 +3764,23 @@
"_name": "frame_3", "_name": "frame_3",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 73 "__id__": 75
}, },
"_children": [ "_children": [
{ {
"__id__": 78 "__id__": 80
}, },
{ {
"__id__": 80 "__id__": 82
},
{
"__id__": 86
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 84 "__id__": 90
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3748,13 +3836,13 @@ ...@@ -3748,13 +3836,13 @@
"_name": "New Sprite", "_name": "New Sprite",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 77 "__id__": 79
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 79 "__id__": 81
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3810,7 +3898,7 @@ ...@@ -3810,7 +3898,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 78 "__id__": 80
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3840,17 +3928,17 @@ ...@@ -3840,17 +3928,17 @@
"_name": "frame_2", "_name": "frame_2",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 77 "__id__": 79
}, },
"_children": [ "_children": [
{ {
"__id__": 81 "__id__": 83
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 83 "__id__": 85
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3906,13 +3994,13 @@ ...@@ -3906,13 +3994,13 @@
"_name": "lb_welldone", "_name": "lb_welldone",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 80 "__id__": 82
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 82 "__id__": 84
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3968,7 +4056,7 @@ ...@@ -3968,7 +4056,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 81 "__id__": 83
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4000,7 +4088,7 @@ ...@@ -4000,7 +4088,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 80 "__id__": 82
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4027,12 +4115,195 @@ ...@@ -4027,12 +4115,195 @@
"_atlas": null, "_atlas": null,
"_id": "59sbJPqMBECJUhfMebZmj6" "_id": "59sbJPqMBECJUhfMebZmj6"
}, },
{
"__type__": "cc.Node",
"_name": "db",
"_objFlags": 0,
"_parent": {
"__id__": 79
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 87
},
{
"__id__": 88
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 300
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "49RK/Nq9dENKjdPTKv0GYm"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 86
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "",
"_animationName": "",
"_preCacheMode": -1,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": null,
"_N$dragonAtlasAsset": null,
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "e9syqQtRlAI7YS64CcDVjt"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 86
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 89
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "2c3iPY1tlNIa8BLbgN4EGD"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 75
},
"component": "",
"_componentId": "b01b30rB85Exb1aIQxobbR8",
"handler": "playSpine",
"customEventData": ""
},
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 77 "__id__": 79
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4064,17 +4335,17 @@ ...@@ -4064,17 +4335,17 @@
"_name": "farme_name", "_name": "farme_name",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 73 "__id__": 75
}, },
"_children": [ "_children": [
{ {
"__id__": 86 "__id__": 92
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 88 "__id__": 98
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4125,18 +4396,87 @@ ...@@ -4125,18 +4396,87 @@
"groupIndex": 0, "groupIndex": 0,
"_id": "91jdQb6cVM4ZFUv8aM2crr" "_id": "91jdQb6cVM4ZFUv8aM2crr"
}, },
{
"__type__": "cc.Node",
"_name": "Layout",
"_objFlags": 0,
"_parent": {
"__id__": 91
},
"_children": [
{
"__id__": 93
}
],
"_active": true,
"_components": [
{
"__id__": 97
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 360.57,
"height": 150
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "c2FsO2o2hN0LOS5aPD6O9R"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "lb_tip", "_name": "lb_tip",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 85 "__id__": 92
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 87 "__id__": 94
},
{
"__id__": 95
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4150,7 +4490,7 @@ ...@@ -4150,7 +4490,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 360.03, "width": 360.57,
"height": 100.8 "height": 100.8
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -4192,7 +4532,7 @@ ...@@ -4192,7 +4532,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 86 "__id__": 93
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4207,8 +4547,10 @@ ...@@ -4207,8 +4547,10 @@
"_fontSize": 50, "_fontSize": 50,
"_lineHeight": 80, "_lineHeight": 80,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": null, "_N$file": {
"_isSystemFontUsed": true, "__uuid__": "61fcc759-2eb5-4e50-a2f3-0cc3393881d8"
},
"_isSystemFontUsed": false,
"_spacingX": 0, "_spacingX": 0,
"_batchAsBitmap": false, "_batchAsBitmap": false,
"_styleFlags": 0, "_styleFlags": 0,
...@@ -4220,12 +4562,126 @@ ...@@ -4220,12 +4562,126 @@
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "a4BUteUKxHFIGAM1jruKrQ" "_id": "a4BUteUKxHFIGAM1jruKrQ"
}, },
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 93
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 96
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "40wDNFc6BC0bxp306+Uoj7"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 75
},
"component": "",
"_componentId": "b01b30rB85Exb1aIQxobbR8",
"handler": "playAudio",
"customEventData": ""
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 92
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 360.57,
"height": 150
},
"_resize": 1,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": "b2qblV1lZHBrmG96obSFBt"
},
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 85 "__id__": 91
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4257,16 +4713,16 @@ ...@@ -4257,16 +4713,16 @@
"_name": "btn_close", "_name": "btn_close",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 73 "__id__": 75
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 90 "__id__": 100
}, },
{ {
"__id__": 91 "__id__": 101
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4322,7 +4778,7 @@ ...@@ -4322,7 +4778,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 89 "__id__": 99
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4354,7 +4810,7 @@ ...@@ -4354,7 +4810,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 89 "__id__": 99
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -4363,7 +4819,7 @@ ...@@ -4363,7 +4819,7 @@
"zoomScale": 1.2, "zoomScale": 1.2,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 92 "__id__": 102
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -4424,7 +4880,7 @@ ...@@ -4424,7 +4880,7 @@
{ {
"__type__": "cc.ClickEvent", "__type__": "cc.ClickEvent",
"target": { "target": {
"__id__": 73 "__id__": 75
}, },
"component": "", "component": "",
"_componentId": "b01b30rB85Exb1aIQxobbR8", "_componentId": "b01b30rB85Exb1aIQxobbR8",
...@@ -4436,24 +4892,9 @@ ...@@ -4436,24 +4892,9 @@
"_name": "node_eff", "_name": "node_eff",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 73 "__id__": 75
}, },
"_children": [ "_children": [
{
"__id__": 94
},
{
"__id__": 96
},
{
"__id__": 98
},
{
"__id__": 100
},
{
"__id__": 102
},
{ {
"__id__": 104 "__id__": 104
}, },
...@@ -4483,12 +4924,27 @@ ...@@ -4483,12 +4924,27 @@
}, },
{ {
"__id__": 122 "__id__": 122
},
{
"__id__": 124
},
{
"__id__": 126
},
{
"__id__": 128
},
{
"__id__": 130
},
{
"__id__": 132
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 124 "__id__": 134
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4544,13 +5000,13 @@ ...@@ -4544,13 +5000,13 @@
"_name": "1", "_name": "1",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 93 "__id__": 103
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 95 "__id__": 105
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4606,7 +5062,7 @@ ...@@ -4606,7 +5062,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 94 "__id__": 104
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4638,13 +5094,13 @@ ...@@ -4638,13 +5094,13 @@
"_name": "2", "_name": "2",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 93 "__id__": 103
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 97 "__id__": 107
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4700,7 +5156,7 @@ ...@@ -4700,7 +5156,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 96 "__id__": 106
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4732,13 +5188,13 @@ ...@@ -4732,13 +5188,13 @@
"_name": "3", "_name": "3",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 93 "__id__": 103
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 99 "__id__": 109
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4794,7 +5250,7 @@ ...@@ -4794,7 +5250,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 98 "__id__": 108
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4826,13 +5282,13 @@ ...@@ -4826,13 +5282,13 @@
"_name": "4", "_name": "4",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 93 "__id__": 103
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 101 "__id__": 111
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4888,7 +5344,7 @@ ...@@ -4888,7 +5344,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 100 "__id__": 110
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4920,13 +5376,13 @@ ...@@ -4920,13 +5376,13 @@
"_name": "5", "_name": "5",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 93 "__id__": 103
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 103 "__id__": 113
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4982,7 +5438,7 @@ ...@@ -4982,7 +5438,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 102 "__id__": 112
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5014,13 +5470,13 @@ ...@@ -5014,13 +5470,13 @@
"_name": "6", "_name": "6",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 93 "__id__": 103
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 105 "__id__": 115
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5076,7 +5532,7 @@ ...@@ -5076,7 +5532,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 104 "__id__": 114
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5108,13 +5564,13 @@ ...@@ -5108,13 +5564,13 @@
"_name": "7", "_name": "7",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 93 "__id__": 103
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 107 "__id__": 117
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5170,7 +5626,7 @@ ...@@ -5170,7 +5626,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 106 "__id__": 116
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5202,13 +5658,13 @@ ...@@ -5202,13 +5658,13 @@
"_name": "8", "_name": "8",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 93 "__id__": 103
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 109 "__id__": 119
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5264,7 +5720,7 @@ ...@@ -5264,7 +5720,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 108 "__id__": 118
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5296,13 +5752,13 @@ ...@@ -5296,13 +5752,13 @@
"_name": "9", "_name": "9",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 93 "__id__": 103
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 111 "__id__": 121
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5358,7 +5814,7 @@ ...@@ -5358,7 +5814,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 110 "__id__": 120
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5390,13 +5846,13 @@ ...@@ -5390,13 +5846,13 @@
"_name": "10", "_name": "10",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 93 "__id__": 103
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 113 "__id__": 123
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5452,7 +5908,7 @@ ...@@ -5452,7 +5908,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 112 "__id__": 122
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5484,13 +5940,13 @@ ...@@ -5484,13 +5940,13 @@
"_name": "11", "_name": "11",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 93 "__id__": 103
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 115 "__id__": 125
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5546,7 +6002,7 @@ ...@@ -5546,7 +6002,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 114 "__id__": 124
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5578,13 +6034,13 @@ ...@@ -5578,13 +6034,13 @@
"_name": "12", "_name": "12",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 93 "__id__": 103
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 117 "__id__": 127
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5640,7 +6096,7 @@ ...@@ -5640,7 +6096,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 116 "__id__": 126
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5672,13 +6128,13 @@ ...@@ -5672,13 +6128,13 @@
"_name": "13", "_name": "13",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 93 "__id__": 103
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 119 "__id__": 129
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5734,7 +6190,7 @@ ...@@ -5734,7 +6190,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 118 "__id__": 128
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5766,13 +6222,13 @@ ...@@ -5766,13 +6222,13 @@
"_name": "14", "_name": "14",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 93 "__id__": 103
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 121 "__id__": 131
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5828,7 +6284,7 @@ ...@@ -5828,7 +6284,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 120 "__id__": 130
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5860,13 +6316,13 @@ ...@@ -5860,13 +6316,13 @@
"_name": "15", "_name": "15",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 93 "__id__": 103
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 123 "__id__": 133
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5922,7 +6378,7 @@ ...@@ -5922,7 +6378,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 122 "__id__": 132
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5954,7 +6410,7 @@ ...@@ -5954,7 +6410,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 93 "__id__": 103
}, },
"_enabled": true, "_enabled": true,
"_defaultClip": { "_defaultClip": {
...@@ -5973,23 +6429,29 @@ ...@@ -5973,23 +6429,29 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 73 "__id__": 75
}, },
"_enabled": true, "_enabled": true,
"Picture": { "Picture": {
"__id__": 78 "__id__": 80
}, },
"wellDone": { "wellDone": {
"__id__": 80 "__id__": 82
}, },
"frame_tips": { "frame_tips": {
"__id__": 85 "__id__": 91
}, },
"lb_tips": { "lb_tips": {
"__id__": 87 "__id__": 94
}, },
"eff_sahua": { "eff_sahua": {
"__id__": 124 "__id__": 134
},
"Armature": {
"__id__": 87
},
"layoutText": {
"__id__": 92
}, },
"_id": "aanl6eAfxD/IRkmdVyvj7C" "_id": "aanl6eAfxD/IRkmdVyvj7C"
}, },
...@@ -6002,22 +6464,22 @@ ...@@ -6002,22 +6464,22 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 127 "__id__": 137
}, },
{ {
"__id__": 131 "__id__": 141
}, },
{ {
"__id__": 135 "__id__": 145
}, },
{ {
"__id__": 139 "__id__": 149
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 143 "__id__": 153
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6073,16 +6535,16 @@ ...@@ -6073,16 +6535,16 @@
"_name": "btn_left", "_name": "btn_left",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 126 "__id__": 136
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 128 "__id__": 138
}, },
{ {
"__id__": 129 "__id__": 139
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6138,7 +6600,7 @@ ...@@ -6138,7 +6600,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 127 "__id__": 137
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6170,7 +6632,7 @@ ...@@ -6170,7 +6632,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 127 "__id__": 137
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -6179,7 +6641,7 @@ ...@@ -6179,7 +6641,7 @@
"zoomScale": 1.2, "zoomScale": 1.2,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 130 "__id__": 140
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -6252,16 +6714,16 @@ ...@@ -6252,16 +6714,16 @@
"_name": "btn_start", "_name": "btn_start",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 126 "__id__": 136
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 132 "__id__": 142
}, },
{ {
"__id__": 133 "__id__": 143
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6317,7 +6779,7 @@ ...@@ -6317,7 +6779,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 131 "__id__": 141
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6349,7 +6811,7 @@ ...@@ -6349,7 +6811,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 131 "__id__": 141
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -6358,7 +6820,7 @@ ...@@ -6358,7 +6820,7 @@
"zoomScale": 1.2, "zoomScale": 1.2,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 134 "__id__": 144
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -6431,16 +6893,16 @@ ...@@ -6431,16 +6893,16 @@
"_name": "btn_right", "_name": "btn_right",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 126 "__id__": 136
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 136 "__id__": 146
}, },
{ {
"__id__": 137 "__id__": 147
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6496,7 +6958,7 @@ ...@@ -6496,7 +6958,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 135 "__id__": 145
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6528,7 +6990,7 @@ ...@@ -6528,7 +6990,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 135 "__id__": 145
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -6537,7 +6999,7 @@ ...@@ -6537,7 +6999,7 @@
"zoomScale": 1.2, "zoomScale": 1.2,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 138 "__id__": 148
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -6610,16 +7072,16 @@ ...@@ -6610,16 +7072,16 @@
"_name": "btn_sound", "_name": "btn_sound",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 126 "__id__": 136
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 140 "__id__": 150
}, },
{ {
"__id__": 141 "__id__": 151
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6675,7 +7137,7 @@ ...@@ -6675,7 +7137,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 139 "__id__": 149
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6707,7 +7169,7 @@ ...@@ -6707,7 +7169,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 139 "__id__": 149
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -6716,7 +7178,7 @@ ...@@ -6716,7 +7178,7 @@
"zoomScale": 1.2, "zoomScale": 1.2,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 142 "__id__": 152
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -6789,7 +7251,7 @@ ...@@ -6789,7 +7251,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 126 "__id__": 136
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -6822,7 +7284,7 @@ ...@@ -6822,7 +7284,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 145 "__id__": 155
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6878,7 +7340,7 @@ ...@@ -6878,7 +7340,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 144 "__id__": 154
}, },
"_enabled": true, "_enabled": true,
"eff_btn": { "eff_btn": {
...@@ -6954,22 +7416,22 @@ ...@@ -6954,22 +7416,22 @@
}, },
"_enabled": true, "_enabled": true,
"contentArr_1": { "contentArr_1": {
"__id__": 26 "__id__": 30
}, },
"Item_1": { "Item_1": {
"__id__": 30 "__id__": 34
}, },
"contentArr_2": { "contentArr_2": {
"__id__": 28 "__id__": 32
}, },
"Item_2": { "Item_2": {
"__id__": 48 "__id__": 52
}, },
"draw": { "draw": {
"__id__": 69 "__id__": 28
}, },
"resultNode": { "resultNode": {
"__id__": 73 "__id__": 75
}, },
"title": { "title": {
"__id__": 13 "__id__": 13
...@@ -6987,7 +7449,7 @@ ...@@ -6987,7 +7449,7 @@
"UIMax": [], "UIMax": [],
"topUI": [], "topUI": [],
"canvasView": { "canvasView": {
"__id__": 146 "__id__": 156
}, },
"isCanvas": true, "isCanvas": true,
"_id": "5eOVDDzARGnoMLcNXyk5ml" "_id": "5eOVDDzARGnoMLcNXyk5ml"
......
...@@ -114,6 +114,13 @@ var game = cc.Class({ ...@@ -114,6 +114,13 @@ var game = cc.Class({
} }
this.resultNode.active = false; this.resultNode.active = false;
//重置游戏数据游戏数据
g.data_mgr.resGameData();
g.data_mgr.addPreloadImage();
g.data_mgr.addPreloadAudio();
g.data_mgr.addPreloadAnima();
//初始化界面 //初始化界面
this.UpdataUi(); this.UpdataUi();
...@@ -123,6 +130,8 @@ var game = cc.Class({ ...@@ -123,6 +130,8 @@ var game = cc.Class({
//游戏开始 //游戏开始
g.game.inst.gameStart(); g.game.inst.gameStart();
//清除线 //清除线
this.clearLine(); this.clearLine();
}, },
...@@ -162,6 +171,15 @@ var game = cc.Class({ ...@@ -162,6 +171,15 @@ var game = cc.Class({
}); });
}, },
//播放标题音效
playAudioTitle: function () {
//获得播放路径
var path = g.data_mgr.data.contentObj.audio_url;
g.res_mgr.playAudioByUrl(path, (url) => {
g.snd_mgr.playEffect(url);
});
},
//添加项 //添加项
addItem: function (listInfo, content, item, i) { addItem: function (listInfo, content, item, i) {
if (listInfo.length <= i) { if (listInfo.length <= i) {
...@@ -190,7 +208,12 @@ var game = cc.Class({ ...@@ -190,7 +208,12 @@ var game = cc.Class({
for (var i = 0; i < conten.childrenCount; i++) { for (var i = 0; i < conten.childrenCount; i++) {
var item = conten.children[i] var item = conten.children[i]
if (item.state == 1 || item.state == 3) { if (item.state == 1 || item.state == 3) {
// if (state == 2) {
var com = item.getComponent("item");
//设置状态为可答题
com.setBtnState(item.state);
continue; continue;
// }
} else { } else {
var com = item.getComponent("item"); var com = item.getComponent("item");
//设置状态为可答题 //设置状态为可答题
...@@ -199,7 +222,7 @@ var game = cc.Class({ ...@@ -199,7 +222,7 @@ var game = cc.Class({
} }
}, },
ShowLine: function (sx, sy, ex, ey) { ShowLine: function (sx, sy, ex, ey, cb) {
var b = 0; var b = 0;
var a = 0; var a = 0;
var k = ex == sx ? 0 : (ey - sy) / (ex - sx); var k = ex == sx ? 0 : (ey - sy) / (ex - sx);
...@@ -220,7 +243,7 @@ var game = cc.Class({ ...@@ -220,7 +243,7 @@ var game = cc.Class({
if (difnode) { if (difnode) {
this.scheduleOnce(function () { this.scheduleOnce(function () {
this.DrawLine(sx, sy, difx, dify); this.DrawLine(sx, sy, difx, dify);
this.ShowLine(difx, dify, ex, ey); this.ShowLine(difx, dify, ex, ey, cb);
}.bind(this), 0.01); }.bind(this), 0.01);
} }
else { else {
...@@ -232,6 +255,7 @@ var game = cc.Class({ ...@@ -232,6 +255,7 @@ var game = cc.Class({
//显示弹窗 //显示弹窗
var Info = g.data_mgr.getResultInfo(g.data_mgr.nowNode.typeId); var Info = g.data_mgr.getResultInfo(g.data_mgr.nowNode.typeId);
g.game.inst.showResult(Info); g.game.inst.showResult(Info);
cb && cb();
} }
}, },
......
...@@ -62,7 +62,7 @@ cc.Class({ ...@@ -62,7 +62,7 @@ cc.Class({
//设置按钮状态0可点击 1已答对 2答错 3连线完成 //设置按钮状态0可点击 1已答对 2答错 3连线完成
setBtnState: function (num) { setBtnState: function (num) {
this.nodeState[num].active = true; //this.nodeState[num].active = true;
switch (~~num) { switch (~~num) {
case 0: case 0:
this.nodeState[0].active = true; this.nodeState[0].active = true;
...@@ -110,15 +110,18 @@ cc.Class({ ...@@ -110,15 +110,18 @@ cc.Class({
g.game.inst.allLightDark(2, 0); g.game.inst.allLightDark(2, 0);
//把这个答对的节点保存起来 //把这个答对的节点保存起来
g.data_mgr.itemInfo = this.spt_chick; g.data_mgr.itemInfo = this;
} }
//如果答对的是下排的话 //如果答对的是下排的话
if (this.itemInfo.positionId == 2) { if (this.itemInfo.positionId == 2) {
//连线 //连线
var posStart = g.data_mgr.itemInfo.parent.convertToWorldSpaceAR(g.data_mgr.itemInfo.position); var posStart = g.data_mgr.itemInfo.spt_chick.parent.convertToWorldSpaceAR(g.data_mgr.itemInfo.spt_chick.position);
var posEnd = this.spt_chick.parent.convertToWorldSpaceAR(this.spt_chick.position); var posEnd = this.spt_chick.parent.convertToWorldSpaceAR(this.spt_chick.position);
g.data_mgr.nowNode = this.itemInfo; g.data_mgr.nowNode = this.itemInfo;
g.game.inst.ShowLine(posStart.x - 640, posStart.y - 360, posEnd.x - 640, posEnd.y - 360); g.game.inst.ShowLine(posStart.x - 640, posStart.y - 360, posEnd.x - 640, posEnd.y - 360, () => {
g.data_mgr.itemInfo.setBtnState(3);
this.setBtnState(3);
});
// //显示弹窗 // //显示弹窗
// var Info = g.data_mgr.getResultInfo(this.itemInfo.typeId); // var Info = g.data_mgr.getResultInfo(this.itemInfo.typeId);
// g.game.inst.showResult(Info); // g.game.inst.showResult(Info);
......
/** /**
* result * result
*/ */
const Color_texts = ['#BE1AC1', '#24C11A', '#1A1DC1', '#9F5307'];
var result = cc.Class({ var result = cc.Class({
extends: cc.Component, extends: cc.Component,
...@@ -29,6 +31,16 @@ var result = cc.Class({ ...@@ -29,6 +31,16 @@ var result = cc.Class({
default: null, default: null,
type: cc.Animation, type: cc.Animation,
displayName: "撒花特效" displayName: "撒花特效"
},
Armature: {
default: null,
type: dragonBones.ArmatureDisplay,
displayName: "动画"
},
layoutText: {
default: null,
type: cc.Node,
displayName: "文字布局"
} }
}, },
...@@ -39,13 +51,24 @@ var result = cc.Class({ ...@@ -39,13 +51,24 @@ var result = cc.Class({
//更新界面ui //更新界面ui
updateUI: function (Info) { updateUI: function (Info) {
this.Picture.active = false;
this.Armature.node.active = false;
if (Info) { if (Info) {
//当前数据 //当前数据
this.itemInfo = Info; this.itemInfo = Info;
//显示图片
if (Info.type == "Image") {
//设置图片 //设置图片
this.setPicture(Info.groupPic); this.setPicture(Info.groupPic);
//设置图片 }
this.setTips(Info.groupLabel);
//显示骨骼动画
if (Info.type == "Spine") {
g.res_mgr.loadSpine(this.Armature, Info);
}
this.initRichText(Info.groupLabel);
this.wellDone.active = false; this.wellDone.active = false;
this.frame_tips.active = true; this.frame_tips.active = true;
this.eff_sahua.node.active = false; this.eff_sahua.node.active = false;
...@@ -61,9 +84,9 @@ var result = cc.Class({ ...@@ -61,9 +84,9 @@ var result = cc.Class({
} }
}, },
//设置标签 // 初始化文本
setTips: function (num) { initRichText(text) {
this.lb_tips.string = num; this.lb_tips.string = text;
}, },
//设置图片 //设置图片
...@@ -75,6 +98,51 @@ var result = cc.Class({ ...@@ -75,6 +98,51 @@ var result = cc.Class({
}.bind(this)); }.bind(this));
}, },
//播放龙骨动画
playSpine() {
this.Armature.playAnimation(g.data_mgr.dragonName, 1);
},
stopSpine() {
this.Armature.dragonAtlasAsset = null;
this.Armature.dragonAsset = null;
this.Armature.armatureName = '';
this.scheduleOnce(() => {
g.res_mgr.loadSpine(this.Armature, this.Info);
})
},
playAudio() {
cc.assetManager.loadRemote(this.itemInfo.group_audio_url, null, (err, clip) => {
this.audioID = cc.audioEngine.play(clip, false, 1);
this.audioDuration = cc.audioEngine.getDuration(this.audioID);
this.textDuration = this.audioDuration / this.layoutText.childrenCount;
this.textIndex = 0;
this.schedule(this.chengeTextColor, this.textDuration, this.layoutText.childrenCount, 0.01)
});
},
stopAudio() {
cc.audioEngine.stop(this.audioID);
this.unschedule(this.chengeTextColor);
this.isPlaying = false;
this.stopSpine();
},
chengeTextColor() {
if (!this.layoutText.children[this.textIndex] || this.textIndex == this.layoutText.childrenCount) {
this.isPlaying = false;
this.unschedule(this.chengeTextColor);
}
this.layoutText.children[this.textIndex] && (this.layoutText.children[this.textIndex].color = new cc.Color().fromHEX(Color_texts[3]));
this.layoutText.children[this.textIndex - 1] && (this.layoutText.children[this.textIndex - 1].color = new cc.Color().fromHEX(Color_texts[3]));
this.textIndex++;
},
clearTextColor() {
for (let i = 0; i < this.layoutText.children.length; i++) {
this.layoutText.children[i].color = new cc.Color().fromHEX(Color_texts[3]);
}
},
//点击关闭 //点击关闭
onBtnClose: function () { onBtnClose: function () {
this.node.active = false; this.node.active = false;
......
...@@ -13,6 +13,7 @@ g.data_mgr = { ...@@ -13,6 +13,7 @@ g.data_mgr = {
data: null,//表所有数据 data: null,//表所有数据
pageId: 0,//页id pageId: 0,//页id
dragonName: null,//龙骨动画名字
lineColor: ['#FF0000', '#FF7F00', '#FFFF00', '#00FF00', '#00FFFF', '#0000FF', ' #8B00FF',],//线的颜色 lineColor: ['#FF0000', '#FF7F00', '#FFFF00', '#00FF00', '#00FFFF', '#0000FF', ' #8B00FF',],//线的颜色
...@@ -22,11 +23,12 @@ g.data_mgr = { ...@@ -22,11 +23,12 @@ g.data_mgr = {
//获得默认数据 //获得默认数据
getDefaultData() { getDefaultData() {
const dataJson = '{ "contentObj": { "title":"frd iwhfii9w","pageArr": [{ "pageInfo": [{ "a_pic_url": "http://staging-teach.cdn.ireadabc.com/19d51663c49a4faed1fd569de26611a3.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/7629f54dc9ae5e3c556b4d898509f888.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/495324991838775e49e3ca6593d432c9.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/17cc0e2a383e4632147dc495a1397915.mp3", "groupLabel": "", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" }, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/e813b164253de04bbcdd9f1a38cc228d.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/2c5f7fedc1cdcb91dda5bb621a2d0235.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/20f16608cf7fc6499eb1f942e625658d.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/205722475ccaca6233b2f28e635405ca.mp3", "groupLabel": "", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" }, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/9d7bdb483c7690728f0658022753c8ed.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/9d7bdb483c7690728f0658022753c8ed.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/0b6ef24f15c6d8ad7bf27cc913445ebf.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/b2c170f84b85dddf554b5c837d1d6e30.mp3", "groupLabel": "", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" }, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/7502f454d1edc0d1d52efbe8a9b2020a.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/7502f454d1edc0d1d52efbe8a9b2020a.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/1e3e361ef1953dec43f250278be63e1d.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/a589225b18d35b045bc52e283ec7cceb.mp3", "groupLabel": "", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" }, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/86fb8f1694cf0d5d2d81c26fecfae709.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/a41083db803c2f15cd67402f4b751b87.png", "a_audio_url": "", "b_audio_url": "", "groupLabel": "", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" }, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/adccd435985b8ce20737e4b6a235d88f.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/2c5f7fedc1cdcb91dda5bb621a2d0235.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/69cbbc96cd60283120521ad606f8c886.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/11bcdcf1720dd260b90a0f4b523633f8.mp3", "groupLabel": "", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" }] }, { "pageInfo": [{ "a_pic_url": "http://staging-teach.cdn.ireadabc.com/7629f54dc9ae5e3c556b4d898509f888.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/2c5f7fedc1cdcb91dda5bb621a2d0235.png", "a_audio_url": "", "b_audio_url": "", "groupLabel": "", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" }, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/19d51663c49a4faed1fd569de26611a3.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/7629f54dc9ae5e3c556b4d898509f888.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/a787397544260023572b154914ff961b.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/4fb9a05072f2b3c0493a2fcbb55307bf.mp3", "groupLabel": "", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" }, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/e813b164253de04bbcdd9f1a38cc228d.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/2c5f7fedc1cdcb91dda5bb621a2d0235.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/cc93f9eacb135dbeba69857d37d2a0fd.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/3806065de519a70e2758f2b5ed46f7c1.mp3", "groupLabel": "", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" }, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/9d7bdb483c7690728f0658022753c8ed.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/7629f54dc9ae5e3c556b4d898509f888.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/3ed9f5f1278b67380e792d94e7a7564b.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/87fb5b526def6f946c5991490ce31475.mp3", "groupLabel": "", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" }, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/c9147ba4f6865137f78a9a6331c81151.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/502c5d3a110c40a6bfcf1a2cd1dab9ea.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/69cbbc96cd60283120521ad606f8c886.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/87fb5b526def6f946c5991490ce31475.mp3", "groupLabel": "", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" }, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/9159668d6274ead9dc1ab0cd8cd2e442.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/adccd435985b8ce20737e4b6a235d88f.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/4fb9a05072f2b3c0493a2fcbb55307bf.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/3d2d9f1ed700be793508ab79d6de76a2.mp3", "groupLabel": "", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" }] }] } }' const dataJson = '{ "contentObj": { "title":"frd iwhfii9w","pageArr": [{ "pageInfo": [{ "a_pic_url": "http://staging-teach.cdn.ireadabc.com/19d51663c49a4faed1fd569de26611a3.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/7629f54dc9ae5e3c556b4d898509f888.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/495324991838775e49e3ca6593d432c9.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/17cc0e2a383e4632147dc495a1397915.mp3", "groupLabel": "I am Ala", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" ,"type":"Spine","ske_json":"http://staging-teach.cdn.ireadabc.com/e48564e39f64ef92dee4309b3493652a.json","ske_json_name":"mao_ske.json","tex_json":"http://staging-teach.cdn.ireadabc.com/233b2f102f321086b70c239a1bd4ba1a.json","tex_json_name":"mao_tex.json","tex_png":"http://staging-teach.cdn.ireadabc.com/d5c00d0cf339484801dc235ed33200d0.png","tex_png_name":"mao_tex.png"}, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/e813b164253de04bbcdd9f1a38cc228d.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/2c5f7fedc1cdcb91dda5bb621a2d0235.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/20f16608cf7fc6499eb1f942e625658d.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/205722475ccaca6233b2f28e635405ca.mp3", "groupLabel": "I am Ala", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" ,"type":"Image"}, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/9d7bdb483c7690728f0658022753c8ed.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/9d7bdb483c7690728f0658022753c8ed.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/0b6ef24f15c6d8ad7bf27cc913445ebf.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/b2c170f84b85dddf554b5c837d1d6e30.mp3", "groupLabel": "I am Ala", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" ,"type":"Image"}, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/7502f454d1edc0d1d52efbe8a9b2020a.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/7502f454d1edc0d1d52efbe8a9b2020a.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/1e3e361ef1953dec43f250278be63e1d.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/a589225b18d35b045bc52e283ec7cceb.mp3", "groupLabel": "I am Ala", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" ,"type":"Image"}, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/86fb8f1694cf0d5d2d81c26fecfae709.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/a41083db803c2f15cd67402f4b751b87.png", "a_audio_url": "", "b_audio_url": "", "groupLabel": "I am Ala", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" ,"type":"Image"}, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/adccd435985b8ce20737e4b6a235d88f.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/2c5f7fedc1cdcb91dda5bb621a2d0235.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/69cbbc96cd60283120521ad606f8c886.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/11bcdcf1720dd260b90a0f4b523633f8.mp3", "groupLabel": "I am Ala", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" }] ,"type":"Image"}, { "pageInfo": [{ "a_pic_url": "http://staging-teach.cdn.ireadabc.com/7629f54dc9ae5e3c556b4d898509f888.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/2c5f7fedc1cdcb91dda5bb621a2d0235.png", "a_audio_url": "", "b_audio_url": "", "groupLabel": "I am Ala", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" ,"type":"Image"}, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/19d51663c49a4faed1fd569de26611a3.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/7629f54dc9ae5e3c556b4d898509f888.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/a787397544260023572b154914ff961b.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/4fb9a05072f2b3c0493a2fcbb55307bf.mp3", "groupLabel": "I am Ala", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" ,"type":"Image"}, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/e813b164253de04bbcdd9f1a38cc228d.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/2c5f7fedc1cdcb91dda5bb621a2d0235.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/cc93f9eacb135dbeba69857d37d2a0fd.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/3806065de519a70e2758f2b5ed46f7c1.mp3", "groupLabel": "I am Ala", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" ,"type":"Image"}, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/9d7bdb483c7690728f0658022753c8ed.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/7629f54dc9ae5e3c556b4d898509f888.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/3ed9f5f1278b67380e792d94e7a7564b.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/87fb5b526def6f946c5991490ce31475.mp3", "groupLabel": "I am Ala", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" ,"type":"Image"}, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/c9147ba4f6865137f78a9a6331c81151.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/502c5d3a110c40a6bfcf1a2cd1dab9ea.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/69cbbc96cd60283120521ad606f8c886.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/87fb5b526def6f946c5991490ce31475.mp3", "groupLabel": "I am Ala", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" ,"type":"Image"}, { "a_pic_url": "http://staging-teach.cdn.ireadabc.com/9159668d6274ead9dc1ab0cd8cd2e442.png", "b_pic_url": "http://staging-teach.cdn.ireadabc.com/adccd435985b8ce20737e4b6a235d88f.png", "a_audio_url": "http://staging-teach.cdn.ireadabc.com/4fb9a05072f2b3c0493a2fcbb55307bf.mp3", "b_audio_url": "http://staging-teach.cdn.ireadabc.com/3d2d9f1ed700be793508ab79d6de76a2.mp3", "groupLabel": "I am Ala", "groupPic": "http://staging-teach.cdn.ireadabc.com/376ac33efcae601263566d37c61005e3.png", "common_pic_url": "http://staging-teach.cdn.ireadabc.com/28ef69eeb008a030ce1fbb237a5d0637.png" }] }] } }'
const data = JSON.parse(dataJson); const data = JSON.parse(dataJson);
return data; return data;
}, },
//{"contentObj":{"pageArr":[{"pageInfo":[{"a_pic_url":"http://staging-teach.cdn.ireadabc.com/4c987bc8980e235c6b6e2ae9a409cfc1.png","b_pic_url":"http://staging-teach.cdn.ireadabc.com/1ffb03273ae56047adab077dc8cc794c.png","a_audio_url":"","b_audio_url":"","groupLabel":"11111","groupPic":"http://staging-teach.cdn.ireadabc.com/2d349cf780b1fcec761a2350936183f0.png","type":"Image"},{"a_pic_url":"","b_pic_url":"","a_audio_url":"","b_audio_url":"","groupLabel":"a","groupPic":"" ,"type":"Spine","ske_json":"http://staging-teach.cdn.ireadabc.com/e48564e39f64ef92dee4309b3493652a.json","ske_json_name":"mao_ske.json","tex_json":"http://staging-teach.cdn.ireadabc.com/233b2f102f321086b70c239a1bd4ba1a.json","tex_json_name":"mao_tex.json","tex_png":"http://staging-teach.cdn.ireadabc.com/d5c00d0cf339484801dc235ed33200d0.png","tex_png_name":"mao_tex.png"}]},{"pageInfo":[]},{"pageInfo":[{"a_pic_url":"","b_pic_url":"","a_audio_url":"","b_audio_url":"","groupLabel":"","groupPic":"","type":"Spine","uploadData":"","uploadUrl":"","ske_json":"http://staging-teach.cdn.ireadabc.com/e48564e39f64ef92dee4309b3493652a.json","ske_json_name":"mao_ske.json"}]}],"title":"16516510","audio_url":"http://staging-teach.cdn.ireadabc.com/bfcd329e246551615375ce0788fc397e.mp3"},"type":"Image"}
//重置数据 //重置数据
resGameData() { resGameData() {
this._imageResList = []; this._imageResList = [];
......
...@@ -53,13 +53,47 @@ g.res_mgr = { ...@@ -53,13 +53,47 @@ g.res_mgr = {
if (audio_url) { if (audio_url) {
cc.assetManager.loadRemote(audio_url, (err, audioClip) => { cc.assetManager.loadRemote(audio_url, (err, audioClip) => {
cb && cb(audioClip); cb && cb(audioClip);
// const audioId = cc.audioEngine.play(audioClip, false, 0.8);
// if (cb) {
// cc.audioEngine.setFinishCallback(audioId, () => {
// cb();
// });
// }
}); });
} }
}, },
//加载龙骨
loadSpine(animationDisplay, Info) {
if (Info.type == 'Image') {
return;
}
cc.assetManager.loadAny([{ url: Info.tex_json, ext: '.txt' }, { url: Info.ske_json, ext: '.txt' }], (error, assets) => {
if (error) {
console.log(error)
}
else {
cc.assetManager.loadRemote(Info.tex_png, (error, texture) => {
if (error) {
console.log(error)
}
else {
var atlas = new dragonBones.DragonBonesAtlasAsset();
atlas._uuid = Info.tex_json;
atlas.atlasJson = assets[0];
atlas.texture = texture;
var asset = new dragonBones.DragonBonesAsset();
asset._uuid = Info.ske_json;
asset.dragonBonesJson = assets[1];
animationDisplay.dragonAtlasAsset = atlas;
animationDisplay.dragonAsset = asset;
let data = asset._dragonBonesJsonData.armature[0];
if (!data) {
return;
}
animationDisplay.armatureName = data.name;
g.data_mgr.dragonName = data.animation[0].name;
animationDisplay.node.active = true;
}
});
}
});
},
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment