Commit a9c5babd authored by Lwd's avatar Lwd

aaaa

parent c6c7de31
export class Course {
sheepfoldArr: Array<Sheepfold> = [];
sheepArr: Array<Sheep> = [];
title: string;
}
export class Sheepfold {
id: string;
word: string;
// audioUrl: string;
picUrl: string;
// /**P-图片,T-文字 */
// contentType = 'T';
}
export class Sheep {
sheepfoldId: string;
word: string;
picUrl: string;
// /**P-图片,T-文字 */
// contentType = 'T';
// audioUrl: string;
}
\ No newline at end of file
...@@ -6,30 +6,3 @@ ...@@ -6,30 +6,3 @@
height: 100%; height: 100%;
} }
.radioPaire {
float: left;
margin: 3px;
border-style: dashed;
border-color: #000;
border-width: 1px;
}
.border {
border-radius: 20px;
border-style: dashed;
padding: 20px;
margin: 20px;
/*width: 500px; */
/*//border-radius: 20px;*/
/*//border-width: 2px;*/
/*//border-color: #000000;*/
}
.border-lite {
border: 2px dashed #ddd;
border-radius: 0.5rem;
padding: 10px;
margin: 10px;
}
<div class="model-content"> <div class="model-content">
<nz-card nzTitle="课程练习内容编辑" style="margin:5vw;" nzType="inner">
<div style="padding: 10px;"> <nz-divider nzText="标题" nzOrientation="left"></nz-divider>
<div nz-row>
<div style="width: 300px;" align='center'> <div style="width: 300px; margin-top: 15px;">
<span>图1: </span> <span>点击输入标题: </span>
<app-upload-image-with-preview <input type="text" nz-input [(ngModel)]="item.title" (blur)="save()">
[picUrl]="item.pic_url"
(imageUploaded)="onImageUploadSuccess($event, 'pic_url')">
</app-upload-image-with-preview>
</div> </div>
<div style="width: 300px; margin-top: 5px;" align='center'>
<span>图2: </span>
<app-upload-image-with-preview
[picUrl]="item.pic_url_2"
(imageUploaded)="onImageUploadSuccess($event, 'pic_url_2')">
</app-upload-image-with-preview>
</div> </div>
<div style="width: 300px; margin-top: 15px;"> <nz-divider nzText="类别" nzOrientation="left"></nz-divider>
<span>文本: </span> <!-- <div nz-row>
<input type="text" nz-input [(ngModel)]="item.text" (blur)="save()"> <nz-form-item>
<nz-form-label [nzSpan]="6" nzFor="add-btn" nzNoColon=true>龙巢</nz-form-label>
<nz-form-control [nzXs]='24' [nzSm]='12' [nzMd]='12' [nzLg]='6'>
<button nz-button nzType="dashed" class="add-btn" id="add-btn"
[disabled]="item.sheepfoldArr.length==2" (click)="addSheepfold()">
<i nz-icon nzType="plus-circle" nzTheme="outline"></i>添加
</button>
</nz-form-control>
</nz-form-item>
</div> -->
<div nz-row>
<div *ngFor="let data of item.sheepfoldArr;let i = index" style="margin: 2vw;">
<div nz-col [nzXs]='24' [nzSm]='12' [nzMd]='12' [nzLg]='9'>
<nz-card nzTitle="类别-{{i + 1}}" [nzExtra]="extraTemplate" style="height: 150px; margin: 1vw;">
<nz-form-item>
<nz-form-label [nzSpan]="6" nzFor="{{i}}.word">标题</nz-form-label>
<nz-form-control [nzSpan]="12">
<input nz-input type="text" id="{{i}}.word" placeholder="请输入标题" [(ngModel)]="data.word"
(blur)="save()">
</nz-form-control>
</nz-form-item>
</nz-card>
</div> </div>
<div style="margin-top: 5px">
<span>音频: </span>
<app-audio-recorder
[audioUrl]="item.audio_url"
(audioUploaded)="onAudioUploadSuccess($event, 'audio_url')"
></app-audio-recorder>
</div> </div>
</div>
<nz-divider nzText="选项" nzOrientation="left"></nz-divider>
<div nz-row>
<nz-form-item>
<nz-form-label [nzSpan]="6" nzFor="add-btn" nzNoColon=true>选项</nz-form-label>
<nz-form-control [nzXs]='24' [nzSm]='12' [nzMd]='12' [nzLg]='6'>
<button nz-button nzType="dashed" class="add-btn" id="sheep-add-btn" (click)="addSheep()">
<i nz-icon nzType="plus-circle" nzTheme="outline"></i>添加
</button>
</nz-form-control>
</nz-form-item>
</div> </div>
<div nz-row>
<div *ngFor="let data of item.sheepArr;let i = index" style="margin: 1vw;">
<div nz-col [nzXs]='24' [nzSm]='12' [nzMd]='12' [nzLg]='8'>
<nz-card nzTitle="选项-{{i + 1}}" [nzExtra]="extraTemplate1" style="height: 400px; margin: 1vw;">
<nz-form-item>
<nz-form-label [nzSpan]="6">类别</nz-form-label>
<nz-form-control [nzSpan]="12">
<nz-radio-group [(ngModel)]="data.sheepfoldId"
(ngModelChange)="setSheepfoldId($event, data)">
<label nz-radio [nzValue]="option.id"
*ngFor="let option of item.sheepfoldArr; let j = index">类别-{{j +
1}}({{option.word}})</label>
</nz-radio-group>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="6" nzFor="{{i}}.picUrl">图片</nz-form-label>
<nz-form-control [nzSpan]="12">
<app-upload-image-with-preview style="width: 100%" [picUrl]="data.picUrl"
(imageUploaded)="onImageUploadSuccess($event, data, 'picUrl')">
</app-upload-image-with-preview>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="6" nzFor="{{i}}.word">文本</nz-form-label>
<nz-form-control [nzSpan]="12">
<input nz-input type="text" id="{{i}}.word" placeholder="请录入内容" [(ngModel)]="data.word"
(blur)="save()">
</nz-form-control>
</nz-form-item>
</nz-card>
<ng-template #extraTemplate1>
<button style="margin: 10px;" nz-button nzType="danger" (click)="delSheep(i)">
<span>删除</span>
</button>
</ng-template>
</div>
</div>
</div>
</nz-card>
</div> </div>
\ No newline at end of file
import { Component, EventEmitter, Input, OnDestroy, OnChanges, OnInit, Output, ApplicationRef, ChangeDetectorRef } from '@angular/core'; import { Component, EventEmitter, Input, OnDestroy, OnChanges, OnInit, Output, ApplicationRef, ChangeDetectorRef } from '@angular/core';
import { JsonPipe } from '@angular/common'; import { Sheepfold, Sheep, Course } from './Course';
@Component({ @Component({
...@@ -10,56 +11,52 @@ import { JsonPipe } from '@angular/common'; ...@@ -10,56 +11,52 @@ import { JsonPipe } from '@angular/common';
export class FormComponent implements OnInit, OnChanges, OnDestroy { export class FormComponent implements OnInit, OnChanges, OnDestroy {
// 储存数据用 // 储存数据用
saveKey = "test_001"; saveKey = "LST07";
// 储存对象 // 储存对象
item; item;
constructor(private appRef: ApplicationRef, private changeDetectorRef: ChangeDetectorRef) {
} constructor(private appRef: ApplicationRef, private changeDetectorRef: ChangeDetectorRef) {
createShell() {
this.item.wordList.push({
word: '',
audio: '',
backWord: '',
backWordAudio: '',
});
this.save();
} }
removeShell(idx) {
this.item.wordList.splice(idx, 1);
this.save();
}
ngOnInit() { ngOnInit() {
this.item = new Course();
this.item = {};
// 获取存储的数据 // 获取存储的数据
(<any>window).courseware.getData((data) => { (<any>window).courseware.getData((data) => {
if (data) { if (data) {
this.item = data; this.item = data;
} }
console.log(data);
this.init(); this.init();
this.changeDetectorRef.markForCheck(); this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges(); this.changeDetectorRef.detectChanges();
this.refresh(); this.refresh();
}, this.saveKey); }, this.saveKey);
console.log(this.item);
} }
ngOnChanges() { ngOnChanges() {
} }
ngOnDestroy() { ngOnDestroy() {
} }
init() {
init() {
if (!this.item) {
this.item = new Course();
}
if (this.item && (this.item.sheepfoldArr.length < 1)) {
for (var i = 0; i < 2; i++) {
this.addSheepfold();
}
}
} }
...@@ -67,9 +64,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -67,9 +64,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
* 储存图片数据 * 储存图片数据
* @param e * @param e
*/ */
onImageUploadSuccess(e, key) { onImageUploadSuccess(e, item, key) {
this.item[key] = e.url; item[key] = e.url;
this.save(); this.save();
} }
...@@ -77,29 +74,23 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -77,29 +74,23 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
* 储存音频数据 * 储存音频数据
* @param e * @param e
*/ */
onAudioUploadSuccess(e, key) { onAudioUploadSuccess(e, item, key) {
this.item[key] = e.url;
this.save();
}
onWordAudioUploadSuccess(e, idx) { item[key] = e.url;
this.item.wordList[idx].audio = e.url;
this.save(); this.save();
} }
onBackWordAudioUploadSuccess(e, idx) {
this.item.wordList[idx].backWordAudio = e.url;
this.save();
}
/** /**
* 储存数据 * 储存数据
*/ */
save() { save() {
(<any>window).courseware.setData(this.item, null, this.saveKey); (<any>window).courseware.setData(this.item, null, this.saveKey);
this.refresh(); this.refresh();
console.log('this.item = ' + JSON.stringify(this.item)); console.log(this.item);
console.log(JSON.stringify(this.item));
} }
/** /**
...@@ -111,4 +102,65 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -111,4 +102,65 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
}, 1); }, 1);
} }
randomChar() {
var x = "0123456789qwertyuioplkjhgfdsazxcvbnm";
var tmp = "";
var timestamp = new Date().getTime();
for (var i = 0; i < 6; i++) {
tmp += x.charAt(Math.ceil(Math.random() * 100000000) % x.length);
}
return timestamp + tmp;
}
addSheepfold() {
let sheepfold = new Sheepfold();
sheepfold.id = this.randomChar();
this.item.sheepfoldArr.push(sheepfold);
this.save();
}
delSheepfold(index) {
if (index !== -1) {
this.item.sheepfoldArr.splice(index, 1);
this.save();
}
}
addSheep() {
let sheep = new Sheep();
this.item.sheepArr.push(sheep);
this.save();
}
delSheep(index) {
if (index !== -1) {
this.item.sheepArr.splice(index, 1);
this.save();
}
}
setSheepfoldId(event, item) {
item.sheepfoldId = event;
this.save();
}
setContentType(e, item) {
item['contentType'] = e;
if ("T" == e) {
item['picUrl'] = "";
}
else if ("P" == e) {
item['word'] = "";
}
this.save();
}
} }
This source diff could not be displayed because it is too large. You can view the blob instead.
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "24c4d28a-b9c9-4d73-8bd6-bd2101ffba7c", "uuid": "ae65e299-f876-41c4-838d-8baa87f66f83",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.556563, "duration": 0.216,
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "c533d5b8-bf5c-48ce-aa60-ccc7195ec880", "uuid": "24c4d28a-b9c9-4d73-8bd6-bd2101ffba7c",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.938688, "duration": 0.556563,
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "c533d5b8-bf5c-48ce-aa60-ccc7195ec880",
"downloadMode": 0,
"duration": 0.938688,
"subMetas": {}
}
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "paperBase",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 10
},
{
"__id__": 18
},
{
"__id__": 26
},
{
"__id__": 34
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 42
},
"_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": [
-255,
-187,
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": ""
},
{
"__type__": "cc.Node",
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 9
},
"_opacity": 200,
"_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": ""
},
{
"__type__": "cc.Node",
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 4
}
],
"_active": true,
"_components": [
{
"__id__": 7
}
],
"_prefab": {
"__id__": 8
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-291,
-280,
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": ""
},
{
"__type__": "cc.Node",
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 5
}
],
"_prefab": {
"__id__": 6
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 226,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e73ee213-5760-4419-a7ca-7ef48e02f398"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "4ecZYdeTdBPbZNEum8uKku",
"sync": false
},
{
"__type__": "cc.MeshRenderer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_materials": [
{
"__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
}
],
"_mesh": {
"__uuid__": "e93d3fa9-8c21-4375-8a21-14ba84066c77"
},
"_receiveShadows": false,
"_shadowCastingMode": 0,
"_enableAutoBatch": false,
"textures": [],
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "43S9KKiqdAmrXrqKsQOhM+",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "786B4MTVxBFa4Sqm6ee7JZ",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 11
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 17
},
"_opacity": 200,
"_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": ""
},
{
"__type__": "cc.Node",
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 10
},
"_children": [
{
"__id__": 12
}
],
"_active": true,
"_components": [
{
"__id__": 15
}
],
"_prefab": {
"__id__": 16
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-291,
-211,
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": ""
},
{
"__type__": "cc.Node",
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 11
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
}
],
"_prefab": {
"__id__": 14
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 74,
"g": 205,
"b": 225,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e73ee213-5760-4419-a7ca-7ef48e02f398"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "b32g8d/oVAcpoZ1EdKHhxB",
"sync": false
},
{
"__type__": "cc.MeshRenderer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_materials": [
{
"__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
}
],
"_mesh": {
"__uuid__": "e93d3fa9-8c21-4375-8a21-14ba84066c77"
},
"_receiveShadows": false,
"_shadowCastingMode": 0,
"_enableAutoBatch": false,
"textures": [],
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "30hJgP4uFIfqJ3vdMzYF6g",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "11TGHbg09BG5OPaxqrOMBR",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 19
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 25
},
"_opacity": 200,
"_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": ""
},
{
"__type__": "cc.Node",
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 18
},
"_children": [
{
"__id__": 20
}
],
"_active": true,
"_components": [
{
"__id__": 23
}
],
"_prefab": {
"__id__": 24
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-291,
-141,
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": ""
},
{
"__type__": "cc.Node",
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 19
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 21
}
],
"_prefab": {
"__id__": 22
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 233,
"g": 143,
"b": 253,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e73ee213-5760-4419-a7ca-7ef48e02f398"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "22NHJV2KVJCpDphLLi4HHV",
"sync": false
},
{
"__type__": "cc.MeshRenderer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
},
"_enabled": true,
"_materials": [
{
"__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
}
],
"_mesh": {
"__uuid__": "e93d3fa9-8c21-4375-8a21-14ba84066c77"
},
"_receiveShadows": false,
"_shadowCastingMode": 0,
"_enableAutoBatch": false,
"textures": [],
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "d3r3nK4pVC361K7j6uLw48",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "aah8YaqZtBe51A/MyO+q5y",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 27
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 33
},
"_opacity": 200,
"_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": ""
},
{
"__type__": "cc.Node",
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 26
},
"_children": [
{
"__id__": 28
}
],
"_active": true,
"_components": [
{
"__id__": 31
}
],
"_prefab": {
"__id__": 32
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-291,
-72,
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": ""
},
{
"__type__": "cc.Node",
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 27
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 29
}
],
"_prefab": {
"__id__": 30
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 253,
"g": 182,
"b": 82,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e73ee213-5760-4419-a7ca-7ef48e02f398"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "61RSGo3apKlKFkObWG602+",
"sync": false
},
{
"__type__": "cc.MeshRenderer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
},
"_enabled": true,
"_materials": [
{
"__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
}
],
"_mesh": {
"__uuid__": "e93d3fa9-8c21-4375-8a21-14ba84066c77"
},
"_receiveShadows": false,
"_shadowCastingMode": 0,
"_enableAutoBatch": false,
"textures": [],
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "54ye+gdmxLPo0D0gTfdk8+",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "1bguL+oWhFkoVjDOzFPTmA",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 35
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 41
},
"_opacity": 200,
"_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": ""
},
{
"__type__": "cc.Node",
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 34
},
"_children": [
{
"__id__": 36
}
],
"_active": true,
"_components": [
{
"__id__": 39
}
],
"_prefab": {
"__id__": 40
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-291,
-2,
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": ""
},
{
"__type__": "cc.Node",
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 37
}
],
"_prefab": {
"__id__": 38
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 254,
"g": 83,
"b": 108,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e73ee213-5760-4419-a7ca-7ef48e02f398"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "1eKJgwUG9FloGkH70G7Pnd",
"sync": false
},
{
"__type__": "cc.MeshRenderer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
},
"_enabled": true,
"_materials": [
{
"__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
}
],
"_mesh": {
"__uuid__": "e93d3fa9-8c21-4375-8a21-14ba84066c77"
},
"_receiveShadows": false,
"_shadowCastingMode": 0,
"_enableAutoBatch": false,
"textures": [],
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "39EFfmtY9F86JGwwG3nIG+",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "29s4DQbk1MLpWu8HFU9ceA",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
"_children": [ "_children": [
{ {
"__id__": 2 "__id__": 2
},
{
"__id__": 92
} }
], ],
"_active": false, "_active": false,
...@@ -75,22 +78,25 @@ ...@@ -75,22 +78,25 @@
"__id__": 5 "__id__": 5
}, },
{ {
"__id__": 67 "__id__": 85
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 69 "__id__": 87
}, },
{ {
"__id__": 70 "__id__": 88
}, },
{ {
"__id__": 71 "__id__": 89
}, },
{ {
"__id__": 72 "__id__": 90
},
{
"__id__": 91
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -180,7 +186,7 @@ ...@@ -180,7 +186,7 @@
"array": [ "array": [
0, 0,
0, 0,
278.86018001858923, 539.5338265577053,
0, 0,
0, 0,
0, 0,
...@@ -254,7 +260,7 @@ ...@@ -254,7 +260,7 @@
"__id__": 8 "__id__": 8
}, },
{ {
"__id__": 63 "__id__": 81
} }
], ],
"_active": true, "_active": true,
...@@ -425,7 +431,13 @@ ...@@ -425,7 +431,13 @@
"__id__": 53 "__id__": 53
}, },
{ {
"__id__": 62 "__id__": 56
},
{
"__id__": 68
},
{
"__id__": 80
} }
], ],
"_active": true, "_active": true,
...@@ -781,9 +793,9 @@ ...@@ -781,9 +793,9 @@
"_enabled": true, "_enabled": true,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 15, "r": 0,
"g": 94, "g": 113,
"b": 15, "b": 77,
"a": 255 "a": 255
}, },
"_width": 3, "_width": 3,
...@@ -1275,7 +1287,7 @@ ...@@ -1275,7 +1287,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 450, "width": 450,
"height": 150 "height": 60.39
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1322,7 +1334,7 @@ ...@@ -1322,7 +1334,7 @@
"_layoutSize": { "_layoutSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 450, "width": 450,
"height": 150 "height": 60.39
}, },
"_resize": 1, "_resize": 1,
"_N$layoutType": 3, "_N$layoutType": 3,
...@@ -1340,7 +1352,7 @@ ...@@ -1340,7 +1352,7 @@
"_N$spacingY": 0, "_N$spacingY": 0,
"_N$verticalDirection": 1, "_N$verticalDirection": 1,
"_N$horizontalDirection": 0, "_N$horizontalDirection": 0,
"_N$affectedByScale": false, "_N$affectedByScale": true,
"_id": "d0FQXzSL5ExaecaoWOwgd3" "_id": "d0FQXzSL5ExaecaoWOwgd3"
}, },
{ {
...@@ -2050,7 +2062,7 @@ ...@@ -2050,7 +2062,7 @@
"_N$spacingY": 0, "_N$spacingY": 0,
"_N$verticalDirection": 1, "_N$verticalDirection": 1,
"_N$horizontalDirection": 0, "_N$horizontalDirection": 0,
"_N$affectedByScale": false, "_N$affectedByScale": true,
"_id": "d05uEn0C1LuIZM8W+K5VIB" "_id": "d05uEn0C1LuIZM8W+K5VIB"
}, },
{ {
...@@ -2458,7 +2470,7 @@ ...@@ -2458,7 +2470,7 @@
"_N$spacingY": 0, "_N$spacingY": 0,
"_N$verticalDirection": 1, "_N$verticalDirection": 1,
"_N$horizontalDirection": 0, "_N$horizontalDirection": 0,
"_N$affectedByScale": false, "_N$affectedByScale": true,
"_id": "eahGg7w01C4oTBvDfTeDux" "_id": "eahGg7w01C4oTBvDfTeDux"
}, },
{ {
...@@ -2490,29 +2502,19 @@ ...@@ -2490,29 +2502,19 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "item", "_name": "frame_2",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 8 "__id__": 8
}, },
"_children": [ "_children": [],
{ "_active": true,
"__id__": 54
},
{
"__id__": 56
},
{
"__id__": 58
}
],
"_active": false,
"_components": [ "_components": [
{ {
"__id__": 60 "__id__": 54
}, },
{ {
"__id__": 61 "__id__": 55
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2526,8 +2528,8 @@ ...@@ -2526,8 +2528,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 110, "width": 70,
"height": 61 "height": 60
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2539,7 +2541,7 @@ ...@@ -2539,7 +2541,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, -200,
0, 0,
0, 0,
0, 0,
...@@ -2561,29 +2563,88 @@ ...@@ -2561,29 +2563,88 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "49PYhrnt5CdYVwzgHWbFjY" "_id": "a9iZ0t6v9Ml5xWfhS5be/5"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 53
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 70,
"height": 60
},
"_resize": 1,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 40,
"_N$paddingRight": 40,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 10,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": true,
"_id": "d15f8wu+FDU5OhAsuUO2FP"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 53
},
"_enabled": true,
"alignMode": 2,
"_target": null,
"_alignFlags": 4,
"_left": 490,
"_right": 490,
"_top": 520,
"_bottom": 130,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 300,
"_originalHeight": 200,
"_id": "8drDNpHatJCLEunOsR0MN1"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "red", "_name": "item_1",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 53 "__id__": 8
}, },
"_children": [], "_children": [
"_active": false,
"_components": [
{ {
"__id__": 55 "__id__": 57
} }
], ],
"_active": false,
"_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 230, "r": 255,
"g": 0, "g": 255,
"b": 0, "b": 255,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
...@@ -2623,52 +2684,95 @@ ...@@ -2623,52 +2684,95 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "3bZdfCDMNNnITxi8ds4KV1" "_id": "430+T99SJJs6RTNgz98BQR"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Node",
"_name": "", "_name": "item",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 54 "__id__": 56
}, },
"_enabled": true, "_children": [
"_materials": [
{ {
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" "__id__": 58
},
{
"__id__": 60
},
{
"__id__": 64
} }
], ],
"_srcBlendFactor": 770, "_active": true,
"_dstBlendFactor": 771, "_components": [
"_spriteFrame": { {
"__uuid__": "b4b3adb0-395b-4a27-bbbb-7b8f6bbc8cc4" "__id__": 66
}, },
"_type": 0, {
"_sizeMode": 1, "__id__": 67
"_fillType": 0, }
"_fillCenter": { ],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 110,
"height": 61
},
"_anchorPoint": {
"__type__": "cc.Vec2", "__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, "x": 0,
"y": 0 "y": 0,
"z": 0
}, },
"_fillStart": 0, "_skewX": 0,
"_fillRange": 0, "_skewY": 0,
"_isTrimmedMode": true, "_is3DNode": false,
"_atlas": null, "_groupIndex": 0,
"_id": "cfe990eEdPQbw1zcZ7xRRJ" "groupIndex": 0,
"_id": "49PYhrnt5CdYVwzgHWbFjY"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "name", "_name": "name",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 53 "__id__": 57
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 57 "__id__": 59
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2724,7 +2828,7 @@ ...@@ -2724,7 +2828,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 56 "__id__": 58
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2756,31 +2860,35 @@ ...@@ -2756,31 +2860,35 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "photo", "_name": "red",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 53 "__id__": 57
}, },
"_children": [], "_children": [
{
"__id__": 61
}
],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 59 "__id__": 63
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 230,
"g": 255, "g": 0,
"b": 255, "b": 0,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 40, "width": 110,
"height": 40 "height": 61
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2814,25 +2922,122 @@ ...@@ -2814,25 +2922,122 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "97RwUkWZVF67SNAPE5ooes" "_id": "3bZdfCDMNNnITxi8ds4KV1"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Node",
"_name": "", "_name": "name",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 58 "__id__": 60
}, },
"_enabled": true, "_children": [],
"_materials": [ "_active": true,
"_components": [
{ {
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" "__id__": 62
} }
], ],
"_srcBlendFactor": 770, "_prefab": null,
"_dstBlendFactor": 771, "_opacity": 255,
"_spriteFrame": { "_color": {
"__uuid__": "3f8b5930-2b6f-4ebf-8d24-4e0ea93fa0dd" "__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 90,
"height": 42.84
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
3,
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": "03GcQKYixNypd+rw0GVAoa"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 61
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "telefe",
"_N$string": "telefe",
"_fontSize": 24,
"_lineHeight": 30,
"_enableWrapText": false,
"_N$file": {
"__uuid__": "f0214b38-1b2a-41ef-aa3e-1d6949fd3b12"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$cacheMode": 0,
"_id": "731gOIyztEqJ89PDPblOML"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 60
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "18f1dd43-5fb1-48a2-96ad-ec7a1b5d83e9"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 0, "_sizeMode": 0,
...@@ -2846,6 +3051,100 @@ ...@@ -2846,6 +3051,100 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "cfe990eEdPQbw1zcZ7xRRJ"
},
{
"__type__": "cc.Node",
"_name": "photo",
"_objFlags": 0,
"_parent": {
"__id__": 57
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 65
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 72,
"height": 73
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
3,
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": "97RwUkWZVF67SNAPE5ooes"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 64
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "3f8b5930-2b6f-4ebf-8d24-4e0ea93fa0dd"
},
"_type": 0,
"_sizeMode": 2,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "7dWW2Y7oxCPYmBsaNkxnDV" "_id": "7dWW2Y7oxCPYmBsaNkxnDV"
}, },
{ {
...@@ -2853,7 +3152,7 @@ ...@@ -2853,7 +3152,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 53 "__id__": 57
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2867,7 +3166,7 @@ ...@@ -2867,7 +3166,7 @@
"__uuid__": "b4b3adb0-395b-4a27-bbbb-7b8f6bbc8cc4" "__uuid__": "b4b3adb0-395b-4a27-bbbb-7b8f6bbc8cc4"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 2,
"_fillType": 0, "_fillType": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2885,26 +3184,33 @@ ...@@ -2885,26 +3184,33 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 53 "__id__": 57
}, },
"_enabled": true, "_enabled": true,
"Item_name": { "Item_name": {
"__id__": 57 "__id__": 59
},
"Item_redName": {
"__id__": 62
}, },
"Item_photo": { "Item_photo": {
"__id__": 58 "__id__": 64
}, },
"_id": "c6/2WIOWRJ1bavF5ytftPN" "_id": "c6/2WIOWRJ1bavF5ytftPN"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "item", "_name": "item_2",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 8 "__id__": 8
}, },
"_children": [], "_children": [
"_active": true, {
"__id__": 69
}
],
"_active": false,
"_components": [], "_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
...@@ -2917,8 +3223,2227 @@ ...@@ -2917,8 +3223,2227 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 110, "width": 165,
"height": 61 "height": 91.5
},
"_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": "2bCsrlV6RI4pQHGXXff1id"
},
{
"__type__": "cc.Node",
"_name": "item",
"_objFlags": 0,
"_parent": {
"__id__": 68
},
"_children": [
{
"__id__": 70
},
{
"__id__": 72
},
{
"__id__": 76
}
],
"_active": true,
"_components": [
{
"__id__": 78
},
{
"__id__": 79
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 165,
"height": 91.5
},
"_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": "ff/vW16y5El7dmgw37cjv7"
},
{
"__type__": "cc.Node",
"_name": "name",
"_objFlags": 0,
"_parent": {
"__id__": 69
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 71
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 150,
"g": 89,
"b": 37,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 90,
"height": 42.84
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
3,
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": "33aDMYNphAqJTC4xDKePUZ"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 70
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "telefe",
"_N$string": "telefe",
"_fontSize": 32,
"_lineHeight": 36,
"_enableWrapText": false,
"_N$file": {
"__uuid__": "f0214b38-1b2a-41ef-aa3e-1d6949fd3b12"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$cacheMode": 0,
"_id": "42aHpce9VHIYpr1fbJKJ+u"
},
{
"__type__": "cc.Node",
"_name": "red",
"_objFlags": 0,
"_parent": {
"__id__": 69
},
"_children": [
{
"__id__": 73
}
],
"_active": false,
"_components": [
{
"__id__": 75
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 230,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 165,
"height": 91.5
},
"_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": "4fFfGNGX5KhqIqcsTHJ68P"
},
{
"__type__": "cc.Node",
"_name": "name",
"_objFlags": 0,
"_parent": {
"__id__": 72
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 74
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 90,
"height": 42.84
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
3,
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": "92wKLtmUtMA6c/8aNLec8r"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 73
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "telefe",
"_N$string": "telefe",
"_fontSize": 32,
"_lineHeight": 36,
"_enableWrapText": false,
"_N$file": {
"__uuid__": "f0214b38-1b2a-41ef-aa3e-1d6949fd3b12"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$cacheMode": 0,
"_id": "05Z6O5GrtI1YcwO/RkWPOP"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "18f1dd43-5fb1-48a2-96ad-ec7a1b5d83e9"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d4hv1eww5MQrXWAsoAMLwW"
},
{
"__type__": "cc.Node",
"_name": "photo",
"_objFlags": 0,
"_parent": {
"__id__": 69
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 77
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 72,
"height": 73
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
3,
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": "6dCkURStxAt7t+DuybJFpj"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 76
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "3f8b5930-2b6f-4ebf-8d24-4e0ea93fa0dd"
},
"_type": 0,
"_sizeMode": 2,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "86RLEVyHxGiYzWU2zEgKlS"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 69
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "b4b3adb0-395b-4a27-bbbb-7b8f6bbc8cc4"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "cedPDtVBtDXITWV3ROj6VR"
},
{
"__type__": "e729bOHnRpHpJ09B2/R3cNg",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 69
},
"_enabled": true,
"Item_name": {
"__id__": 71
},
"Item_redName": {
"__id__": 74
},
"Item_photo": {
"__id__": 76
},
"_id": "d3S/vW/XNO7Z5Jrqs6S78C"
},
{
"__type__": "cc.Node",
"_name": "item_temp",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 110,
"height": 61
},
"_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": "28tvzGHutDUY5IzP6nuBkR"
},
{
"__type__": "cc.Node",
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 82
},
{
"__id__": 83
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 5000,
"height": 5000
},
"_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": "c2bmd0u+BDNIivdoKz1pc8"
},
{
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 81
},
"_enabled": true,
"_id": "80PylZIy9EbJR4/AZl0xgK"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 81
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 84
}
],
"_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": "cc1qEGA9pIR5pCangYCuxP"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 2
},
"component": "",
"_componentId": "8b0b7lMf15OlIK40chbxp64",
"handler": "onBtnMask",
"customEventData": ""
},
{
"__type__": "cc.Node",
"_name": "speaker",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 86
}
],
"_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": [
-640,
-360,
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": "27oJBo5bZCIpkH3vJkrEF7"
},
{
"__type__": "ab520ccsGNNxY+Qe3caTQ5o",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 85
},
"_enabled": true,
"eff_btn": {
"__uuid__": "ae65e299-f876-41c4-838d-8baa87f66f83"
},
"eff_congratulation": {
"__uuid__": "a9d1d994-0776-4dcf-9bb7-eac5dbee2854"
},
"eff_error": {
"__uuid__": "24c4d28a-b9c9-4d73-8bd6-bd2101ffba7c"
},
"eff_good": {
"__uuid__": "c533d5b8-bf5c-48ce-aa60-ccc7195ec880"
},
"eff_showPop": {
"__uuid__": "4cd1a303-1f39-40a3-9127-5afcad88e2af"
},
"eff_start": {
"__uuid__": "be885015-b019-4b28-8900-dcb6b18752f3"
},
"eff_open": {
"__uuid__": "e84b4934-1211-4c2b-86c8-b0cb8ff50ab2"
},
"eff_restart": {
"__uuid__": "326dee4a-6daf-4748-86a3-acecad20fc07"
},
"_id": "b6mbjgRkRFnaxtyq52WlFU"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_fitWidth": true,
"_fitHeight": true,
"_id": "59Cd0ovbdF4byw5sbjJDx7"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_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": 0,
"_originalHeight": 0,
"_id": "29zXboiXFBKoIV4PQ2liTe"
},
{
"__type__": "8b0b7lMf15OlIK40chbxp64",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"Item_0": [
{
"__id__": 56
},
{
"__id__": 68
},
{
"__id__": 80
}
],
"contentArr": {
"__id__": 50
},
"contentArr_2": [
{
"__id__": 50
},
{
"__id__": 53
}
],
"contentArr_1": [
{
"__id__": 19
},
{
"__id__": 34
}
],
"lb_title": {
"__id__": 14
},
"mask_node": null,
"_id": "81gKWTbrREiJRzfyjAWVUZ"
},
{
"__type__": "0e963+p6iFJLqmukqM6jHRW",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"UIMax": [],
"topUI": [],
"bgScaleMax": [
{
"__id__": 6
}
],
"nodeUIOffset": [
{
"__id__": 8
}
],
"canvasView": {
"__id__": 87
},
"isCanvas": true,
"_id": "5eOVDDzARGnoMLcNXyk5ml"
},
{
"__type__": "0df3ats5ixH+KeRVgc97Mrt",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_id": "89VBuG/kRNq7+914VK1Eaf"
},
{
"__type__": "cc.Node",
"_name": "paperBase",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 93
},
{
"__id__": 101
},
{
"__id__": 109
},
{
"__id__": 117
},
{
"__id__": 125
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 133
},
"_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": [
-494.766,
-254.998,
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": "6baIohvjdO57jhaXe76ffR"
},
{
"__type__": "cc.Node",
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 92
},
"_children": [
{
"__id__": 94
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 100
},
"_opacity": 200,
"_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": "5bp0Nr1GZGe7PxvS4S1cIz"
},
{
"__type__": "cc.Node",
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 93
},
"_children": [
{
"__id__": 95
}
],
"_active": true,
"_components": [
{
"__id__": 98
}
],
"_prefab": {
"__id__": 99
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-291,
-280,
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": "14cmwCSp5AOaOHHDDk+mhF"
},
{
"__type__": "cc.Node",
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 94
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 96
}
],
"_prefab": {
"__id__": 97
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 226,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_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": "8f5h8IdT9PuodvVo1wD46G"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 95
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e73ee213-5760-4419-a7ca-7ef48e02f398"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "41xzlDO5NF7ZgnoDQK4uFl"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 92
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "4ecZYdeTdBPbZNEum8uKku",
"sync": false
},
{
"__type__": "cc.MeshRenderer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 94
},
"_enabled": true,
"_materials": [
{
"__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
}
],
"_mesh": {
"__uuid__": "e93d3fa9-8c21-4375-8a21-14ba84066c77"
},
"_receiveShadows": false,
"_shadowCastingMode": 0,
"_enableAutoBatch": false,
"textures": [],
"_id": "e6whM3h9FD0ayhyB0CJpR/"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 92
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "43S9KKiqdAmrXrqKsQOhM+",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 92
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "786B4MTVxBFa4Sqm6ee7JZ",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 92
},
"_children": [
{
"__id__": 102
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 108
},
"_opacity": 200,
"_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": "8bEClw6o9Hg6HuvamJplrh"
},
{
"__type__": "cc.Node",
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 101
},
"_children": [
{
"__id__": 103
}
],
"_active": true,
"_components": [
{
"__id__": 106
}
],
"_prefab": {
"__id__": 107
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-291,
-211,
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": "1aSJKzWgFKgIw+OSCsWThT"
},
{
"__type__": "cc.Node",
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 102
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 104
}
],
"_prefab": {
"__id__": 105
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 74,
"g": 205,
"b": 225,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_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": "3dipxT8etIUKqKSVprz6EH"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 103
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e73ee213-5760-4419-a7ca-7ef48e02f398"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b7FPyFOPZD2aJTskNVKBol"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 92
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "b32g8d/oVAcpoZ1EdKHhxB",
"sync": false
},
{
"__type__": "cc.MeshRenderer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 102
},
"_enabled": true,
"_materials": [
{
"__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
}
],
"_mesh": {
"__uuid__": "e93d3fa9-8c21-4375-8a21-14ba84066c77"
},
"_receiveShadows": false,
"_shadowCastingMode": 0,
"_enableAutoBatch": false,
"textures": [],
"_id": "c4u1ih60pFWa1BRgvMyYyv"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 92
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "30hJgP4uFIfqJ3vdMzYF6g",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 92
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "11TGHbg09BG5OPaxqrOMBR",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 92
},
"_children": [
{
"__id__": 110
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 116
},
"_opacity": 200,
"_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": "62Lnq3S2BG2ZJA0YM1uw9i"
},
{
"__type__": "cc.Node",
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 109
},
"_children": [
{
"__id__": 111
}
],
"_active": true,
"_components": [
{
"__id__": 114
}
],
"_prefab": {
"__id__": 115
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-291,
-141,
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": "a6KHAxFvxG+q1ercqXoGI+"
},
{
"__type__": "cc.Node",
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 110
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 112
}
],
"_prefab": {
"__id__": 113
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 233,
"g": 143,
"b": 253,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_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": "b9r/tAmFRNfqeLq5boNgvr"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 111
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e73ee213-5760-4419-a7ca-7ef48e02f398"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c6p1Yt7UVHAaVOq7I+qMXL"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 92
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "22NHJV2KVJCpDphLLi4HHV",
"sync": false
},
{
"__type__": "cc.MeshRenderer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
},
"_enabled": true,
"_materials": [
{
"__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
}
],
"_mesh": {
"__uuid__": "e93d3fa9-8c21-4375-8a21-14ba84066c77"
},
"_receiveShadows": false,
"_shadowCastingMode": 0,
"_enableAutoBatch": false,
"textures": [],
"_id": "721R63lKpN4pnbl/gGFGrv"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 92
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "d3r3nK4pVC361K7j6uLw48",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 92
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "aah8YaqZtBe51A/MyO+q5y",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 92
},
"_children": [
{
"__id__": 118
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 124
},
"_opacity": 200,
"_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": "1bkbUP1X9Pfqy628OFb7+q"
},
{
"__type__": "cc.Node",
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 117
},
"_children": [
{
"__id__": 119
}
],
"_active": true,
"_components": [
{
"__id__": 122
}
],
"_prefab": {
"__id__": 123
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-291,
-72,
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": "d5Vakr+UpOt7SSFpxh1Z80"
},
{
"__type__": "cc.Node",
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 118
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 120
}
],
"_prefab": {
"__id__": 121
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 253,
"g": 182,
"b": 82,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
},
"_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": "18M31zKRBAW4FoHa4KthXp"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 119
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e73ee213-5760-4419-a7ca-7ef48e02f398"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "76vcUjkcVLCI0bltOc2CPl"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 92
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "61RSGo3apKlKFkObWG602+",
"sync": false
},
{
"__type__": "cc.MeshRenderer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 118
},
"_enabled": true,
"_materials": [
{
"__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
}
],
"_mesh": {
"__uuid__": "e93d3fa9-8c21-4375-8a21-14ba84066c77"
},
"_receiveShadows": false,
"_shadowCastingMode": 0,
"_enableAutoBatch": false,
"textures": [],
"_id": "5cMyT4/+1DNag2gK+Q7dx6"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 92
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "54ye+gdmxLPo0D0gTfdk8+",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 92
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "1bguL+oWhFkoVjDOzFPTmA",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 92
},
"_children": [
{
"__id__": 126
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 132
},
"_opacity": 200,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2952,26 +5477,29 @@ ...@@ -2952,26 +5477,29 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "430+T99SJJs6RTNgz98BQR" "_id": "4aXd590AdFAosq63p8NXJb"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "mask", "_name": "quad",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 5 "__id__": 125
}, },
"_children": [], "_children": [
"_active": false,
"_components": [
{ {
"__id__": 64 "__id__": 127
}, }
],
"_active": true,
"_components": [
{ {
"__id__": 65 "__id__": 130
} }
], ],
"_prefab": null, "_prefab": {
"__id__": 131
},
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
...@@ -2982,8 +5510,8 @@ ...@@ -2982,8 +5510,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 5000, "width": 29,
"height": 5000 "height": 29
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2994,8 +5522,8 @@ ...@@ -2994,8 +5522,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, -291,
0, -2,
0, 0,
0, 0,
0, 0,
...@@ -3017,127 +5545,37 @@ ...@@ -3017,127 +5545,37 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "c2bmd0u+BDNIivdoKz1pc8" "_id": "f99xwwDeJHApKEuc3V6JeR"
},
{
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 63
},
"_enabled": true,
"_id": "80PylZIy9EbJR4/AZl0xgK"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 63
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 66
}
],
"_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": "cc1qEGA9pIR5pCangYCuxP"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 2
},
"component": "",
"_componentId": "8b0b7lMf15OlIK40chbxp64",
"handler": "onBtnMask",
"customEventData": ""
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "speaker", "_name": "paper",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 126
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 68 "__id__": 128
} }
], ],
"_prefab": null, "_prefab": {
"__id__": 129
},
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 254,
"g": 255, "g": 83,
"b": 255, "b": 108,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 29,
"height": 0 "height": 29
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3148,8 +5586,8 @@ ...@@ -3148,8 +5586,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-640, 0,
-360, 0,
0, 0,
0, 0,
0, 0,
...@@ -3171,138 +5609,104 @@ ...@@ -3171,138 +5609,104 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "27oJBo5bZCIpkH3vJkrEF7" "_id": "a8IwmkghpJTqiTHFeK6zYI"
}, },
{ {
"__type__": "ab520ccsGNNxY+Qe3caTQ5o", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 67 "__id__": 127
}, },
"_enabled": true, "_enabled": true,
"eff_btn": { "_materials": [
"__uuid__": "1da4a1eb-1b7f-4c66-b682-afb2bb2c25f8" {
}, "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"eff_congratulation": { }
"__uuid__": "a9d1d994-0776-4dcf-9bb7-eac5dbee2854" ],
}, "_srcBlendFactor": 770,
"eff_error": { "_dstBlendFactor": 771,
"__uuid__": "c533d5b8-bf5c-48ce-aa60-ccc7195ec880" "_spriteFrame": {
}, "__uuid__": "e73ee213-5760-4419-a7ca-7ef48e02f398"
"eff_good": {
"__uuid__": "24c4d28a-b9c9-4d73-8bd6-bd2101ffba7c"
}, },
"eff_showPop": { "_type": 0,
"__uuid__": "4cd1a303-1f39-40a3-9127-5afcad88e2af" "_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
}, },
"eff_start": { "_fillStart": 0,
"__uuid__": "be885015-b019-4b28-8900-dcb6b18752f3" "_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a2ranlHa9CiIK7trVhj9Nz"
}, },
"eff_open": { {
"__uuid__": "e84b4934-1211-4c2b-86c8-b0cb8ff50ab2" "__type__": "cc.PrefabInfo",
"root": {
"__id__": 92
}, },
"eff_restart": { "asset": {
"__uuid__": "326dee4a-6daf-4748-86a3-acecad20fc07" "__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
}, },
"_id": "b6mbjgRkRFnaxtyq52WlFU" "fileId": "1eKJgwUG9FloGkH70G7Pnd",
"sync": false
}, },
{ {
"__type__": "cc.Canvas", "__type__": "cc.MeshRenderer",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 2 "__id__": 126
}, },
"_enabled": true, "_enabled": true,
"_designResolution": { "_materials": [
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_fitWidth": true,
"_fitHeight": true,
"_id": "59Cd0ovbdF4byw5sbjJDx7"
},
{ {
"__type__": "cc.Widget", "__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
"_name": "", }
"_objFlags": 0, ],
"node": { "_mesh": {
"__id__": 2 "__uuid__": "e93d3fa9-8c21-4375-8a21-14ba84066c77"
}, },
"_enabled": true, "_receiveShadows": false,
"alignMode": 1, "_shadowCastingMode": 0,
"_target": null, "_enableAutoBatch": false,
"_alignFlags": 45, "textures": [],
"_left": 0, "_id": "44hE/stYdFDYKe87U2M5mx"
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "29zXboiXFBKoIV4PQ2liTe"
}, },
{ {
"__type__": "8b0b7lMf15OlIK40chbxp64", "__type__": "cc.PrefabInfo",
"_name": "", "root": {
"_objFlags": 0, "__id__": 92
"node": {
"__id__": 2
},
"_enabled": true,
"Item_0": {
"__id__": 62
}, },
"Item_1": { "asset": {
"__id__": 53 "__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
}, },
"contentArr": { "fileId": "39EFfmtY9F86JGwwG3nIG+",
"__id__": 50 "sync": false
}, },
"contentArr_1": [
{ {
"__id__": 19 "__type__": "cc.PrefabInfo",
"root": {
"__id__": 92
}, },
{ "asset": {
"__id__": 34 "__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
}
],
"mask_node": null,
"_id": "81gKWTbrREiJRzfyjAWVUZ"
}, },
{ "fileId": "29s4DQbk1MLpWu8HFU9ceA",
"__type__": "0e963+p6iFJLqmukqM6jHRW", "sync": false
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
}, },
"_enabled": true,
"UIMax": [],
"topUI": [],
"bgScaleMax": [
{
"__id__": 6
}
],
"nodeUIOffset": [
{ {
"__id__": 8 "__type__": "cc.PrefabInfo",
} "root": {
], "__id__": 92
"canvasView": {
"__id__": 69
}, },
"isCanvas": true, "asset": {
"_id": "5eOVDDzARGnoMLcNXyk5ml" "__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "",
"sync": false
} }
] ]
\ No newline at end of file
// Learn cc.Class:
// - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
import { asyncDelay, RandomInt } from "../common/utils";
var effect = cc.Class({
extends: cc.Component,
properties: {
},
ctor: function () {
effect.inst = this;
g.effect = effect;
},
showEffect: function () {
const bg = cc.find('Canvas/bg/connent');
this.showAllFirework(bg, cc.find('paperBase').children);
g.speaker.inst.play_congratulation();
},
async showOneFirework(pos, parentNode, nodeList) {
for (let i = 0; i < 3; i++) {
this.showFirework(pos, parentNode, nodeList, 200, 200, 15);
await asyncDelay(0.1);
}
},
async showAllFirework(parentNode, nodeList) {
for (let i = 0; i < 6; i++) {
this.showFirework(cc.v2(0, -parentNode.height / 2), parentNode, nodeList, parentNode.width * 2 / 3, parentNode.height * 1.3);
await asyncDelay(0.1);
}
},
showFirework(pos, parentNode, nodeList, width = 200, height = 200, number = 30) {
for (let i = 0; i < number; i++) {
const quad = this.createQuads(pos, parentNode, nodeList);
const targetX = RandomInt(width / 2, -width / 2);
const targetY = RandomInt(height);
cc.tween(quad)
.by(0.5, { x: targetX })
.by(3, { x: targetX * 2 })
.start();
cc.tween(quad)
.by(0.5, { y: targetY }, { easing: 'quadOut' })
.to(4, { y: -parentNode.height * 2 }, { easing: 'quadIn' })
.removeSelf()
.start();
cc.tween(quad)
.delay(1)
.to(1.5, { opacity: 0 })
.start();
}
},
createQuads(pos, parentNode, nodeList) {
const quadBase = cc.instantiate(nodeList[RandomInt(nodeList.length)]);
quadBase.x = pos.x;
quadBase.y = pos.y;
quadBase.z = pos.z;
quadBase.angle = RandomInt(180);
quadBase.parent = parentNode;
const quad = quadBase.getChildByName('quad');
quad.x = 0;
quad.y = 0;
quad.angle = RandomInt(180);
const paper = quad.getChildByName('paper');
paper.scaleX = Math.random() * 0.5 + 0.5;
paper.scaleY = Math.random() * 0.5 + 0.5;
quadBase.scaleX = Math.random();
cc.tween(quadBase)
.to((1 - quadBase.scaleX) * 0.3, { scaleX: 1 })
.call(() => {
const time = Math.random() * 0.2;
cc.tween(quadBase)
.to(0.1 + time, { scaleX: -1 })
.to(0.1 + time, { scaleX: 1 })
.union()
.repeatForever()
.start();
})
.start();
return quadBase;
},
});
{
"ver": "1.0.8",
"uuid": "0df3ab6c-e62c-47f8-a791-56073deccaed",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -6,13 +6,7 @@ var game = cc.Class({ ...@@ -6,13 +6,7 @@ var game = cc.Class({
properties: { properties: {
Item_0: { Item_0: {
default: null, default: [],
type: cc.Node,
displayName: "空节点"
},
Item_1: {
default: null,
type: cc.Node, type: cc.Node,
displayName: "预制体" displayName: "预制体"
}, },
...@@ -23,12 +17,24 @@ var game = cc.Class({ ...@@ -23,12 +17,24 @@ var game = cc.Class({
displayName: "底下内容" displayName: "底下内容"
}, },
contentArr_2: {
default: [],
type: cc.Node,
displayName: "底下内容2"
},
contentArr_1: { contentArr_1: {
default: [], default: [],
type: cc.Node, type: cc.Node,
displayName: "目标位置" displayName: "目标位置"
}, },
lb_title: {
default: null,
type: cc.Label,
displayName: "大标题"
},
// btnList: { // btnList: {
// default: [], // default: [],
// type: cc.Button, // type: cc.Button,
...@@ -48,9 +54,8 @@ var game = cc.Class({ ...@@ -48,9 +54,8 @@ var game = cc.Class({
// 生命周期 onLoad // 生命周期 onLoad
onLoad() { onLoad() {
// //初始化游戏 //初始化游戏
// this.initGame(); this.initGame();
this.UpdataUi();
if (window.addEventListener) { if (window.addEventListener) {
window.addEventListener('resize', this.scaleEventCallBack, false) window.addEventListener('resize', this.scaleEventCallBack, false)
} else if (window.attachEvent) { } else if (window.attachEvent) {
...@@ -65,13 +70,8 @@ var game = cc.Class({ ...@@ -65,13 +70,8 @@ var game = cc.Class({
//初始化游戏 //初始化游戏
initGame: function () { initGame: function () {
//重置游戏数据游戏数据
g.data_mgr.resGameData();
//获得数据 //获得数据
g.res_mgr.getFormData(); g.res_mgr.getFormData();
let rec1 = new cc.Rect(10, 10, 100, 50);//声明矩形区域
}, },
setAABB(Id) { setAABB(Id) {
...@@ -108,47 +108,72 @@ var game = cc.Class({ ...@@ -108,47 +108,72 @@ var game = cc.Class({
}, },
//添加节点 //添加节点
addItem2: function (Info) { addItem: function () {
for (var i = 0; i < 30; i++) { let itemArr = g.data_mgr.getSheepArr();
//for (var i = 0; i < Info.length; i++) { this.idx = this.checkNodeParent();
let newItem_0 = cc.instantiate(this.Item_0); g.data_mgr.nowNum = itemArr.length;
for (var i = 0; i < itemArr.length; i++) {
let newItem_0 = cc.instantiate(this.Item_0[this.idx]);
let newItem_1 = cc.instantiate(this.Item_1); //let newItem_1 = cc.instantiate(this.Item_1);
//更新子项 //更新子项
//var com = newItem.getComponent("item"); var com = newItem_0.getChildByName("item").getComponent("item");
//com.updateUI(Info[i]); let itemInfo = itemArr[i > 3 ? 1 : i];
//newItem.scale = this.checkScale(Info.length); com.updateUI(itemInfo);
//newItem.y = 0; newItem_0.active = true;
// newItem_1.active = true;
newItem_1.active = true; //设置类别
newItem_1.type = 1; let sheepInfo = g.data_mgr.getSheep(i > 3 ? 1 : i);
newItem_1.parent = newItem_0; newItem_0.getChildByName("item").type = this.checkType(sheepInfo.sheepfoldId);
// newItem_1.parent = newItem_0;
newItem_0.parent = this.contentArr; // newItem_0.parent = this.contentArr;
// if (i == 1 && Info.length == 2) { // var idx = this.checkNodeParent(i);
// newItem.parent = this.contentArr[2];
// this.contentArr[2].active = true; newItem_0.parent = this.contentArr_2[this.idx];
// //this.contentArr[2].height *= this.checkScale(Info.length);
// }
// else {
// var num_1 = Math.ceil((i + 1) / 2) - 1;
// newItem.parent = this.contentArr[num_1]
// this.contentArr[num_1].active = true;
// this.contentArr[num_1].height == 300 && (this.contentArr[num_1].height = this.contentArr[num_1].height * this.checkScale(Info.length));
// }
}; };
}, },
//检测放到哪个节点底下
checkNodeParent: function () {
//获取到总列表
var itemArr = g.data_mgr.getSheepArr();
//
if (itemArr.length <= 7) {
this.contentArr_2[1].active = true;
var idx = 1;
} else {
this.contentArr_2[0].active = true;
var idx = 0;
}
return idx;
},
//检查类别
checkType: function (Id) {
for (var i in g.data_mgr.getSheepfoldArr()) {
var sheepfoldInfo = g.data_mgr.getSheepfoldArr()[i];
if (Id == sheepfoldInfo.id) {
return ~~i + 1;
}
}
return -1;
},
//更新界面信息 //更新界面信息
UpdataUi: function () { UpdataUi: function () {
// //获得当前页的关卡 //设置大标题
// var itemInfo = g.data_mgr.getPageInfo(); this.lb_title.string = g.data_mgr.getTitle();
//设置俩个标题
//第几排的第几个来算这个位置 this.contentArr_1[0].getChildByName("title").getComponent(cc.Label).string = g.data_mgr.getSheepfold(0).word;
//设置俩个标题
this.contentArr_1[1].getChildByName("title").getComponent(cc.Label).string = g.data_mgr.getSheepfold(1).word;
//重置UI界面
this.resetUI(); this.resetUI();
//添加项 //添加项
this.addItem2(); this.addItem();
// //设置上下页按钮状态 // //设置上下页按钮状态
// this.setButtonState(); // this.setButtonState();
...@@ -165,14 +190,7 @@ var game = cc.Class({ ...@@ -165,14 +190,7 @@ var game = cc.Class({
}, },
//播放音乐
PlayAudio: function () {
//获得播放路径
var path = g.data_mgr.getPlayUrl();
g.res_mgr.playAudioByUrl(path, (url) => {
g.snd_mgr.playEffect(url);
});
},
//游戏开始 //游戏开始
......
...@@ -11,6 +11,11 @@ cc.Class({ ...@@ -11,6 +11,11 @@ cc.Class({
type: cc.Label, type: cc.Label,
displayName: "名字" displayName: "名字"
}, },
Item_redName: {
default: null,
type: cc.Label,
displayName: "红色名字"
},
Item_photo: { Item_photo: {
default: null, default: null,
type: cc.Node, type: cc.Node,
...@@ -30,13 +35,15 @@ cc.Class({ ...@@ -30,13 +35,15 @@ cc.Class({
touchBegan: function (event) { touchBegan: function (event) {
this.isMove = false; this.isMove = false;
this.deltaPos = this.node.x + this.node.y; this.deltaPos = this.node.x + this.node.y;
// this.node.parent = g.game.inst.temp_contentArr;
}, },
//触摸移动 //触摸移动
touchMove: function (event) { touchMove: function (event) {
var posScreen = event.getLocation(); //点击事件获取位置 if (this.node.isComplent) {
var posNode = this.node.parent.convertToNodeSpaceAR(posScreen); return
}
// var posScreen = event.getLocation(); //点击事件获取位置
// var posNode = this.node.parent.convertToNodeSpaceAR(posScreen);
// var iposTouch = this.getFormatIPos(posNode); // var iposTouch = this.getFormatIPos(posNode);
var delta = event.getDelta(); var delta = event.getDelta();
this.node.x += delta.x; this.node.x += delta.x;
...@@ -46,34 +53,6 @@ cc.Class({ ...@@ -46,34 +53,6 @@ cc.Class({
if (Math.abs(this.deltaPos - deltaPos) > 10) { if (Math.abs(this.deltaPos - deltaPos) > 10) {
this.isMove = true; this.isMove = true;
} }
var contentArrPos = g.game.inst.setAABB(1);
var contentArrPos_0 = g.game.inst.setAABB(0);
// 获取 ScrollView Node 的左下角坐标在世界坐标系中的坐标
let svLeftBottomPoint = this.node.parent.convertToWorldSpaceAR(
cc.v2(
this.node.x - this.node.anchorX * this.node.width,
this.node.y - this.node.anchorY * this.node.height
)
);
// 求出 ScrollView 可视区域在世界坐标系中的矩形(碰撞盒)
var posNode_1 = cc.rect(
svLeftBottomPoint.x,
svLeftBottomPoint.y,
this.node.width,
this.node.height
);
var isIntersect_1 = contentArrPos.containsRect(posNode_1);//判断是否被包含
var isIntersect_2 = contentArrPos_0.containsRect(posNode_1);
// console.log("坐标" + svLeftBottomPoint.x + "," + svLeftBottomPoint.y + "是否包含" + isIntersect_1);
if (isIntersect_1) {
console.log("被1包含" + isIntersect_1);
}
if (isIntersect_2) {
console.log("被2包含" + isIntersect_2);
}
}, },
//触摸结束 //触摸结束
...@@ -116,51 +95,81 @@ cc.Class({ ...@@ -116,51 +95,81 @@ cc.Class({
// console.log("坐标" + svLeftBottomPoint.x + "," + svLeftBottomPoint.y + "是否包含" + isIntersect_1); // console.log("坐标" + svLeftBottomPoint.x + "," + svLeftBottomPoint.y + "是否包含" + isIntersect_1);
if (isIntersect_1) { if (isIntersect_1) {
if (this.node.type == 1) { if (this.node.type == 1) {
this.node.isComplent = true;
g.data_mgr.nowNum -= 1;
if (g.data_mgr.nowNum == 0) {
g.effect.inst.showEffect();
}
g.speaker.inst.play_good(); g.speaker.inst.play_good();
var newItem_temp = cc.instantiate(g.game.inst.Item_0[2]);
g.game.inst.contentArr_1[1].getChildByName("db").active = true; g.game.inst.contentArr_1[1].getChildByName("db").active = true;
g.game.inst.contentArr_1[1].getChildByName("db").getComponent(dragonBones.ArmatureDisplay).playAnimation("newAnimation", 1); g.game.inst.contentArr_1[1].getChildByName("db").getComponent(dragonBones.ArmatureDisplay).playAnimation("newAnimation", 1);
this.node.parent = g.game.inst.contentArr_1[1].getChildByName("connent_3").getChildByName("Layout"); if (g.game.inst.idx == 1) {
this.node.scale = 0.666;
this.node.x = 0;
} }
else {
g.speaker.inst.play_error();
this.node.getChildByName("red").active = true; this.node.parent = newItem_temp;
setTimeout(() => { newItem_temp.parent = g.game.inst.contentArr_1[1].getChildByName("connent_3").getChildByName("Layout");
this.node.getChildByName("red").active = false;
//回到原来的位置
this.node.x = 0; this.node.x = 0;
this.node.y = 0; this.node.y = 0;
}, 1000) }
else {
this.errorEffect();
} }
console.log("被1包含" + isIntersect_1); console.log("被1包含" + isIntersect_1);
} else } else
if (isIntersect_0) { if (isIntersect_0) {
if (this.node.type == 2) { if (this.node.type == 2) {
this.node.isComplent = true;
g.data_mgr.nowNum -= 1;
if (g.data_mgr.nowNum == 0) {
g.effect.inst.showEffect();
}
g.speaker.inst.play_good(); g.speaker.inst.play_good();
var newItem_temp = cc.instantiate(g.game.inst.Item_0[2]);
g.game.inst.contentArr_1[0].getChildByName("db").active = true; g.game.inst.contentArr_1[0].getChildByName("db").active = true;
g.game.inst.contentArr_1[0].getChildByName("db").getComponent(dragonBones.ArmatureDisplay).playAnimation("newAnimation", 1); g.game.inst.contentArr_1[0].getChildByName("db").getComponent(dragonBones.ArmatureDisplay).playAnimation("newAnimation", 1);
this.node.parent = g.game.inst.contentArr_1[0].getChildByName("connent_3").getChildByName("Layout"); if (g.game.inst.idx == 1) {
this.node.scale = 0.666;
this.node.x = 0;
}
this.node.parent = newItem_temp;
newItem_temp.parent = g.game.inst.contentArr_1[0].getChildByName("connent_3").getChildByName("Layout");
this.node.x = 0;
this.node.y = 0;
console.log("被2包含" + isIntersect_0); console.log("被2包含" + isIntersect_0);
} }
else { else {
this.errorEffect();
}
}
else {
//回到原来的位置
this.node.x = 0;
this.node.y = 0;
}
},
errorEffect: function () {
g.speaker.inst.play_error(); g.speaker.inst.play_error();
this.node.getChildByName("red").active = true; this.node.getChildByName("red").active = true;
cc.tween(this.node)
.to(0.1, { scaleY: 0.9, scaleX: 1.1 })
.to(0.15, { scaleY: 1.1, scaleX: 0.9 })
.to(0.1, { scaleY: 1, scaleX: 1 })
.start()
setTimeout(() => { setTimeout(() => {
this.node.getChildByName("red").active = false; this.node.getChildByName("red").active = false;
//回到原来的位置 //回到原来的位置
this.node.x = 0; this.node.x = 0;
this.node.y = 0; this.node.y = 0;
}, 1000) }, 500)
}
}
else {
//回到原来的位置
this.node.x = 0;
this.node.y = 0;
}
}, },
//触摸取消 //触摸取消
...@@ -179,10 +188,18 @@ cc.Class({ ...@@ -179,10 +188,18 @@ cc.Class({
//初始化数据 //初始化数据
this.InitData(); this.InitData();
//是否已经完成了
this.node.isComplent = false;
}, },
//点击翻面 //点击翻面
onBtnRotate: function () { onBtnRotate: function () {
//翻面音效
g.snd_mgr.playEffect(this.eff_btn);
var scaleX = this.node.scaleY;
cc.tween(this.node) cc.tween(this.node)
.to(0.3, { scaleX: 0 }) .to(0.3, { scaleX: 0 })
.call(() => { .call(() => {
...@@ -194,19 +211,27 @@ cc.Class({ ...@@ -194,19 +211,27 @@ cc.Class({
this.Item_photo.active = false; this.Item_photo.active = false;
} }
}) })
.to(0.3, { scaleX: 1 }) .to(0.3, { scaleX: scaleX })
.start(); .start();
}, },
//初始化信息 //初始化信息
InitData: function () { InitData: function () {
this.eff_window[0].scaleX = 1; //设置图片
this.eff_window[1].scaleX = 1; g.res_mgr.getSpriteFrimeByUrl(this.itemInfo.picUrl, (list) => {
this.Item_photo.getComponent(cc.Sprite).spriteFrame = list;
this.photoScare(this.Item_photo, g.game.inst.idx);
// this.photoScare(this.nodeState[2].getChildByName("spt_item"), 1);
});
//设置名字
this.Item_name.string = this.itemInfo.word;
//设置红色名字
this.Item_redName.string = this.itemInfo.word;
}, },
//图片适配 //图片适配
photoScare: function (node, type) { photoScare: function (node, type) {
var maxNum = type == 1 ? 160 : 190; var maxNum = type == 0 ? 50 : 75;
let maxSize = Math.min(maxNum / node.height, maxNum / node.width); let maxSize = Math.min(maxNum / node.height, maxNum / node.width);
if (node.perScale == undefined) { if (node.perScale == undefined) {
node.perScale = node.scaleX; node.perScale = node.scaleX;
......
/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
!(function(global) {
"use strict";
var Op = Object.prototype;
var hasOwn = Op.hasOwnProperty;
var undefined; // More compressible than void 0.
var $Symbol = typeof Symbol === "function" ? Symbol : {};
var iteratorSymbol = $Symbol.iterator || "@@iterator";
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
var inModule = typeof module === "object";
var runtime = global.regeneratorRuntime;
if (runtime) {
if (inModule) {
// If regeneratorRuntime is defined globally and we're in a module,
// make the exports object identical to regeneratorRuntime.
module.exports = runtime;
}
// Don't bother evaluating the rest of this file if the runtime was
// already defined globally.
return;
}
// Define the runtime globally (as expected by generated code) as either
// module.exports (if we're in a module) or a new, empty object.
runtime = global.regeneratorRuntime = inModule ? module.exports : {};
function wrap(innerFn, outerFn, self, tryLocsList) {
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
var generator = Object.create(protoGenerator.prototype);
var context = new Context(tryLocsList || []);
// The ._invoke method unifies the implementations of the .next,
// .throw, and .return methods.
generator._invoke = makeInvokeMethod(innerFn, self, context);
return generator;
}
runtime.wrap = wrap;
// Try/catch helper to minimize deoptimizations. Returns a completion
// record like context.tryEntries[i].completion. This interface could
// have been (and was previously) designed to take a closure to be
// invoked without arguments, but in all the cases we care about we
// already have an existing method we want to call, so there's no need
// to create a new function object. We can even get away with assuming
// the method takes exactly one argument, since that happens to be true
// in every case, so we don't have to touch the arguments object. The
// only additional allocation required is the completion record, which
// has a stable shape and so hopefully should be cheap to allocate.
function tryCatch(fn, obj, arg) {
try {
return { type: "normal", arg: fn.call(obj, arg) };
} catch (err) {
return { type: "throw", arg: err };
}
}
var GenStateSuspendedStart = "suspendedStart";
var GenStateSuspendedYield = "suspendedYield";
var GenStateExecuting = "executing";
var GenStateCompleted = "completed";
// Returning this object from the innerFn has the same effect as
// breaking out of the dispatch switch statement.
var ContinueSentinel = {};
// Dummy constructor functions that we use as the .constructor and
// .constructor.prototype properties for functions that return Generator
// objects. For full spec compliance, you may wish to configure your
// minifier not to mangle the names of these two functions.
function Generator() {}
function GeneratorFunction() {}
function GeneratorFunctionPrototype() {}
// This is a polyfill for %IteratorPrototype% for environments that
// don't natively support it.
var IteratorPrototype = {};
IteratorPrototype[iteratorSymbol] = function () {
return this;
};
var getProto = Object.getPrototypeOf;
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
if (NativeIteratorPrototype &&
NativeIteratorPrototype !== Op &&
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
// This environment has a native %IteratorPrototype%; use it instead
// of the polyfill.
IteratorPrototype = NativeIteratorPrototype;
}
var Gp = GeneratorFunctionPrototype.prototype =
Generator.prototype = Object.create(IteratorPrototype);
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
GeneratorFunctionPrototype.constructor = GeneratorFunction;
GeneratorFunctionPrototype[toStringTagSymbol] =
GeneratorFunction.displayName = "GeneratorFunction";
// Helper for defining the .next, .throw, and .return methods of the
// Iterator interface in terms of a single ._invoke method.
function defineIteratorMethods(prototype) {
["next", "throw", "return"].forEach(function(method) {
prototype[method] = function(arg) {
return this._invoke(method, arg);
};
});
}
runtime.isGeneratorFunction = function(genFun) {
var ctor = typeof genFun === "function" && genFun.constructor;
return ctor
? ctor === GeneratorFunction ||
// For the native GeneratorFunction constructor, the best we can
// do is to check its .name property.
(ctor.displayName || ctor.name) === "GeneratorFunction"
: false;
};
runtime.mark = function(genFun) {
if (Object.setPrototypeOf) {
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
} else {
genFun.__proto__ = GeneratorFunctionPrototype;
if (!(toStringTagSymbol in genFun)) {
genFun[toStringTagSymbol] = "GeneratorFunction";
}
}
genFun.prototype = Object.create(Gp);
return genFun;
};
// Within the body of any async function, `await x` is transformed to
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
// `hasOwn.call(value, "__await")` to determine if the yielded value is
// meant to be awaited.
runtime.awrap = function(arg) {
return { __await: arg };
};
function AsyncIterator(generator) {
function invoke(method, arg, resolve, reject) {
var record = tryCatch(generator[method], generator, arg);
if (record.type === "throw") {
reject(record.arg);
} else {
var result = record.arg;
var value = result.value;
if (value &&
typeof value === "object" &&
hasOwn.call(value, "__await")) {
return Promise.resolve(value.__await).then(function(value) {
invoke("next", value, resolve, reject);
}, function(err) {
invoke("throw", err, resolve, reject);
});
}
return Promise.resolve(value).then(function(unwrapped) {
// When a yielded Promise is resolved, its final value becomes
// the .value of the Promise<{value,done}> result for the
// current iteration. If the Promise is rejected, however, the
// result for this iteration will be rejected with the same
// reason. Note that rejections of yielded Promises are not
// thrown back into the generator function, as is the case
// when an awaited Promise is rejected. This difference in
// behavior between yield and await is important, because it
// allows the consumer to decide what to do with the yielded
// rejection (swallow it and continue, manually .throw it back
// into the generator, abandon iteration, whatever). With
// await, by contrast, there is no opportunity to examine the
// rejection reason outside the generator function, so the
// only option is to throw it from the await expression, and
// let the generator function handle the exception.
result.value = unwrapped;
resolve(result);
}, reject);
}
}
var previousPromise;
function enqueue(method, arg) {
function callInvokeWithMethodAndArg() {
return new Promise(function(resolve, reject) {
invoke(method, arg, resolve, reject);
});
}
return previousPromise =
// If enqueue has been called before, then we want to wait until
// all previous Promises have been resolved before calling invoke,
// so that results are always delivered in the correct order. If
// enqueue has not been called before, then it is important to
// call invoke immediately, without waiting on a callback to fire,
// so that the async generator function has the opportunity to do
// any necessary setup in a predictable way. This predictability
// is why the Promise constructor synchronously invokes its
// executor callback, and why async functions synchronously
// execute code before the first await. Since we implement simple
// async functions in terms of async generators, it is especially
// important to get this right, even though it requires care.
previousPromise ? previousPromise.then(
callInvokeWithMethodAndArg,
// Avoid propagating failures to Promises returned by later
// invocations of the iterator.
callInvokeWithMethodAndArg
) : callInvokeWithMethodAndArg();
}
// Define the unified helper method that is used to implement .next,
// .throw, and .return (see defineIteratorMethods).
this._invoke = enqueue;
}
defineIteratorMethods(AsyncIterator.prototype);
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
return this;
};
runtime.AsyncIterator = AsyncIterator;
// Note that simple async functions are implemented on top of
// AsyncIterator objects; they just return a Promise for the value of
// the final result produced by the iterator.
runtime.async = function(innerFn, outerFn, self, tryLocsList) {
var iter = new AsyncIterator(
wrap(innerFn, outerFn, self, tryLocsList)
);
return runtime.isGeneratorFunction(outerFn)
? iter // If outerFn is a generator, return the full iterator.
: iter.next().then(function(result) {
return result.done ? result.value : iter.next();
});
};
function makeInvokeMethod(innerFn, self, context) {
var state = GenStateSuspendedStart;
return function invoke(method, arg) {
if (state === GenStateExecuting) {
throw new Error("Generator is already running");
}
if (state === GenStateCompleted) {
if (method === "throw") {
throw arg;
}
// Be forgiving, per 25.3.3.3.3 of the spec:
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
return doneResult();
}
context.method = method;
context.arg = arg;
while (true) {
var delegate = context.delegate;
if (delegate) {
var delegateResult = maybeInvokeDelegate(delegate, context);
if (delegateResult) {
if (delegateResult === ContinueSentinel) continue;
return delegateResult;
}
}
if (context.method === "next") {
// Setting context._sent for legacy support of Babel's
// function.sent implementation.
context.sent = context._sent = context.arg;
} else if (context.method === "throw") {
if (state === GenStateSuspendedStart) {
state = GenStateCompleted;
throw context.arg;
}
context.dispatchException(context.arg);
} else if (context.method === "return") {
context.abrupt("return", context.arg);
}
state = GenStateExecuting;
var record = tryCatch(innerFn, self, context);
if (record.type === "normal") {
// If an exception is thrown from innerFn, we leave state ===
// GenStateExecuting and loop back for another invocation.
state = context.done
? GenStateCompleted
: GenStateSuspendedYield;
if (record.arg === ContinueSentinel) {
continue;
}
return {
value: record.arg,
done: context.done
};
} else if (record.type === "throw") {
state = GenStateCompleted;
// Dispatch the exception by looping back around to the
// context.dispatchException(context.arg) call above.
context.method = "throw";
context.arg = record.arg;
}
}
};
}
// Call delegate.iterator[context.method](context.arg) and handle the
// result, either by returning a { value, done } result from the
// delegate iterator, or by modifying context.method and context.arg,
// setting context.delegate to null, and returning the ContinueSentinel.
function maybeInvokeDelegate(delegate, context) {
var method = delegate.iterator[context.method];
if (method === undefined) {
// A .throw or .return when the delegate iterator has no .throw
// method always terminates the yield* loop.
context.delegate = null;
if (context.method === "throw") {
if (delegate.iterator.return) {
// If the delegate iterator has a return method, give it a
// chance to clean up.
context.method = "return";
context.arg = undefined;
maybeInvokeDelegate(delegate, context);
if (context.method === "throw") {
// If maybeInvokeDelegate(context) changed context.method from
// "return" to "throw", let that override the TypeError below.
return ContinueSentinel;
}
}
context.method = "throw";
context.arg = new TypeError(
"The iterator does not provide a 'throw' method");
}
return ContinueSentinel;
}
var record = tryCatch(method, delegate.iterator, context.arg);
if (record.type === "throw") {
context.method = "throw";
context.arg = record.arg;
context.delegate = null;
return ContinueSentinel;
}
var info = record.arg;
if (! info) {
context.method = "throw";
context.arg = new TypeError("iterator result is not an object");
context.delegate = null;
return ContinueSentinel;
}
if (info.done) {
// Assign the result of the finished delegate to the temporary
// variable specified by delegate.resultName (see delegateYield).
context[delegate.resultName] = info.value;
// Resume execution at the desired location (see delegateYield).
context.next = delegate.nextLoc;
// If context.method was "throw" but the delegate handled the
// exception, let the outer generator proceed normally. If
// context.method was "next", forget context.arg since it has been
// "consumed" by the delegate iterator. If context.method was
// "return", allow the original .return call to continue in the
// outer generator.
if (context.method !== "return") {
context.method = "next";
context.arg = undefined;
}
} else {
// Re-yield the result returned by the delegate method.
return info;
}
// The delegate iterator is finished, so forget it and continue with
// the outer generator.
context.delegate = null;
return ContinueSentinel;
}
// Define Generator.prototype.{next,throw,return} in terms of the
// unified ._invoke helper method.
defineIteratorMethods(Gp);
Gp[toStringTagSymbol] = "Generator";
// A Generator should always return itself as the iterator object when the
// @@iterator function is called on it. Some browsers' implementations of the
// iterator prototype chain incorrectly implement this, causing the Generator
// object to not be returned from this call. This ensures that doesn't happen.
// See https://github.com/facebook/regenerator/issues/274 for more details.
Gp[iteratorSymbol] = function() {
return this;
};
Gp.toString = function() {
return "[object Generator]";
};
function pushTryEntry(locs) {
var entry = { tryLoc: locs[0] };
if (1 in locs) {
entry.catchLoc = locs[1];
}
if (2 in locs) {
entry.finallyLoc = locs[2];
entry.afterLoc = locs[3];
}
this.tryEntries.push(entry);
}
function resetTryEntry(entry) {
var record = entry.completion || {};
record.type = "normal";
delete record.arg;
entry.completion = record;
}
function Context(tryLocsList) {
// The root entry object (effectively a try statement without a catch
// or a finally block) gives us a place to store values thrown from
// locations where there is no enclosing try statement.
this.tryEntries = [{ tryLoc: "root" }];
tryLocsList.forEach(pushTryEntry, this);
this.reset(true);
}
runtime.keys = function(object) {
var keys = [];
for (var key in object) {
keys.push(key);
}
keys.reverse();
// Rather than returning an object with a next method, we keep
// things simple and return the next function itself.
return function next() {
while (keys.length) {
var key = keys.pop();
if (key in object) {
next.value = key;
next.done = false;
return next;
}
}
// To avoid creating an additional object, we just hang the .value
// and .done properties off the next function object itself. This
// also ensures that the minifier will not anonymize the function.
next.done = true;
return next;
};
};
function values(iterable) {
if (iterable) {
var iteratorMethod = iterable[iteratorSymbol];
if (iteratorMethod) {
return iteratorMethod.call(iterable);
}
if (typeof iterable.next === "function") {
return iterable;
}
if (!isNaN(iterable.length)) {
var i = -1, next = function next() {
while (++i < iterable.length) {
if (hasOwn.call(iterable, i)) {
next.value = iterable[i];
next.done = false;
return next;
}
}
next.value = undefined;
next.done = true;
return next;
};
return next.next = next;
}
}
// Return an iterator with no values.
return { next: doneResult };
}
runtime.values = values;
function doneResult() {
return { value: undefined, done: true };
}
Context.prototype = {
constructor: Context,
reset: function(skipTempReset) {
this.prev = 0;
this.next = 0;
// Resetting context._sent for legacy support of Babel's
// function.sent implementation.
this.sent = this._sent = undefined;
this.done = false;
this.delegate = null;
this.method = "next";
this.arg = undefined;
this.tryEntries.forEach(resetTryEntry);
if (!skipTempReset) {
for (var name in this) {
// Not sure about the optimal order of these conditions:
if (name.charAt(0) === "t" &&
hasOwn.call(this, name) &&
!isNaN(+name.slice(1))) {
this[name] = undefined;
}
}
}
},
stop: function() {
this.done = true;
var rootEntry = this.tryEntries[0];
var rootRecord = rootEntry.completion;
if (rootRecord.type === "throw") {
throw rootRecord.arg;
}
return this.rval;
},
dispatchException: function(exception) {
if (this.done) {
throw exception;
}
var context = this;
function handle(loc, caught) {
record.type = "throw";
record.arg = exception;
context.next = loc;
if (caught) {
// If the dispatched exception was caught by a catch block,
// then let that catch block handle the exception normally.
context.method = "next";
context.arg = undefined;
}
return !! caught;
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
var record = entry.completion;
if (entry.tryLoc === "root") {
// Exception thrown outside of any try block that could handle
// it, so set the completion value of the entire function to
// throw the exception.
return handle("end");
}
if (entry.tryLoc <= this.prev) {
var hasCatch = hasOwn.call(entry, "catchLoc");
var hasFinally = hasOwn.call(entry, "finallyLoc");
if (hasCatch && hasFinally) {
if (this.prev < entry.catchLoc) {
return handle(entry.catchLoc, true);
} else if (this.prev < entry.finallyLoc) {
return handle(entry.finallyLoc);
}
} else if (hasCatch) {
if (this.prev < entry.catchLoc) {
return handle(entry.catchLoc, true);
}
} else if (hasFinally) {
if (this.prev < entry.finallyLoc) {
return handle(entry.finallyLoc);
}
} else {
throw new Error("try statement without catch or finally");
}
}
}
},
abrupt: function(type, arg) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.tryLoc <= this.prev &&
hasOwn.call(entry, "finallyLoc") &&
this.prev < entry.finallyLoc) {
var finallyEntry = entry;
break;
}
}
if (finallyEntry &&
(type === "break" ||
type === "continue") &&
finallyEntry.tryLoc <= arg &&
arg <= finallyEntry.finallyLoc) {
// Ignore the finally entry if control is not jumping to a
// location outside the try/catch block.
finallyEntry = null;
}
var record = finallyEntry ? finallyEntry.completion : {};
record.type = type;
record.arg = arg;
if (finallyEntry) {
this.method = "next";
this.next = finallyEntry.finallyLoc;
return ContinueSentinel;
}
return this.complete(record);
},
complete: function(record, afterLoc) {
if (record.type === "throw") {
throw record.arg;
}
if (record.type === "break" ||
record.type === "continue") {
this.next = record.arg;
} else if (record.type === "return") {
this.rval = this.arg = record.arg;
this.method = "return";
this.next = "end";
} else if (record.type === "normal" && afterLoc) {
this.next = afterLoc;
}
return ContinueSentinel;
},
finish: function(finallyLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.finallyLoc === finallyLoc) {
this.complete(entry.completion, entry.afterLoc);
resetTryEntry(entry);
return ContinueSentinel;
}
}
},
"catch": function(tryLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.tryLoc === tryLoc) {
var record = entry.completion;
if (record.type === "throw") {
var thrown = record.arg;
resetTryEntry(entry);
}
return thrown;
}
}
// The context.catch method must only be called with a location
// argument that corresponds to a known catch block.
throw new Error("illegal catch attempt");
},
delegateYield: function(iterable, resultName, nextLoc) {
this.delegate = {
iterator: values(iterable),
resultName: resultName,
nextLoc: nextLoc
};
if (this.method === "next") {
// Deliberately forget the last sent value so that we don't
// accidentally pass it on to the delegate.
this.arg = undefined;
}
return ContinueSentinel;
}
};
})(
// In sloppy mode, unbound `this` refers to the global object, fallback to
// Function constructor if we're in global strict mode. That is sadly a form
// of indirect eval which violates Content Security Policy.
(function() { return this })() || Function("return this")()
);
{
"ver": "1.0.8",
"uuid": "e5afe4a3-c16b-4f1d-acd8-c5eb68d573b3",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -2,33 +2,18 @@ ...@@ -2,33 +2,18 @@
* 数据管理器 * 数据管理器
*/ */
g.data_mgr = { g.data_mgr = {
playId: null,//播放id
playType: null,//播放类型
temPlayAudio: [],//临时的播放列表
data: null,//表所有数据 data: null,//表所有数据
pageId: 0,//页id
dragonName: null,//龙骨动画名字
lineColor: ['#2AFF51', '#FF0000', '#FF51E0', '#E5FB31', '#43DFEF', '#FFC788', ' #FFFFFF', ' #FF7474'],//线的颜色 nowNum: null,//剩余个数
_imageResList: [],//图片资源列表
_audioResList: [],//音频资源列表
_animaResList: [],//动画资源列表
//获得默认数据 //获得默认数据
getDefaultData() { getDefaultData() {
const dataJson = { const dataJson = {
"contentObj": { "sheepfoldArr": [
"pageArr": [{ { "id": "162373800016117r8ti", "word": "标题1" },
"pageInfo": [ { "id": "1623738000162o9u566", "word": "标题2" }],
{ "colorList": "1", "fontSize": 50, "fontList": "1,3", "groupLabel": "I saw a purple #11plentpp #00sdfasdf on the #10sky on the sky", "groupPic": "", "group_audio_url": "http://staging-teach.cdn.ireadabc.com/bfcd329e246551615375ce0788fc397e.mp3" }, { "groupLabel": "I saw a purple #11plent on the sky #00on the sky", "groupPic": "http://staging-teach.cdn.ireadabc.com/2d349cf780b1fcec761a2350936183f0.png", "group_audio_url": "" }, { "groupLabel": "33#013#103#003", "groupPic": "http://staging-teach.cdn.ireadabc.com/2d349cf780b1fcec761a2350936183f0.png", "group_audio_url": "http://staging-teach.cdn.ireadabc.com/bfcd329e246551615375ce0788fc397e.mp3" }, { "groupLabel": "", "groupPic": "https://adsfs.heytapimage.com/ads-material-depot/image/9db677f693622128668326572dd8d6d2.jpg", "group_audio_url": "http://staging-teach.cdn.ireadabc.com/bfcd329e246551615375ce0788fc397e.mp3" }, { "groupLabel": "", "groupPic": "", "group_audio_url": "http://staging-teach.cdn.ireadabc.com/bfcd329e246551615375ce0788fc397e.mp3" }] "sheepArr": [{ "sheepfoldId": "162373800016117r8ti", "word": "aaa", "picUrl": "http://staging-teach.cdn.ireadabc.com/77d34b5a7f2895e9319d4485a84a1b2b.png" }, { "word": "aa", "sheepfoldId": "1623738000162o9u566", "picUrl": "http://staging-teach.cdn.ireadabc.com/be3debcc0598cfdde8a9e1ad2324743e.png" }, { "sheepfoldId": "1623738000162o9u566", "picUrl": "http://staging-teach.cdn.ireadabc.com/be3debcc0598cfdde8a9e1ad2324743e.png", "word": "fgsdfg" }, { "sheepfoldId": "162373800016117r8ti", "picUrl": "http://staging-teach.cdn.ireadabc.com/77d34b5a7f2895e9319d4485a84a1b2b.png", "word": "gdfa" }],
}, { "title": "asdfa"
"pageInfo": [
{ "groupLabel": "22222", "groupPic": "http://staging-teach.cdn.ireadabc.com/2d349cf780b1fcec761a2350936183f0.png", "group_audio_url": "http://staging-teach.cdn.ireadabc.com/bfcd329e246551615375ce0788fc397e.mp3" }, { "groupLabel": "33333", "groupPic": "http://staging-teach.cdn.ireadabc.com/2d349cf780b1fcec761a2350936183f0.png", "group_audio_url": "http://staging-teach.cdn.ireadabc.com/bfcd329e246551615375ce0788fc397e.mp3" }, { "groupLabel": "11111", "groupPic": "http://staging-teach.cdn.ireadabc.com/2d349cf780b1fcec761a2350936183f0.png", "group_audio_url": "http://staging-teach.cdn.ireadabc.com/bfcd329e246551615375ce0788fc397e.mp3" }, { "groupLabel": "11111", "groupPic": "http://staging-teach.cdn.ireadabc.com/2d349cf780b1fcec761a2350936183f0.png", "group_audio_url": "http://staging-teach.cdn.ireadabc.com/bfcd329e246551615375ce0788fc397e.mp3" }]
}]
}
} }
const data = dataJson; const data = dataJson;
// const data = JSON.parse(dataJson); // const data = JSON.parse(dataJson);
...@@ -36,23 +21,29 @@ g.data_mgr = { ...@@ -36,23 +21,29 @@ g.data_mgr = {
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"} //获得标题
//重置数据 getTitle() {
resGameData() { return this.data.title;
this._imageResList = [];
this._audioResList = [];
this._animaResList = [];
this.temPlayAudio = [];
}, },
//获得播放路径 //获得表单信息
getPlayUrl: function () { getSheepfoldArr() {
for (var i in this._audioResList) { return this.data.sheepfoldArr;
var audioInfo = this._audioResList[i]; },
if (this.playId == audioInfo.typeId && this.playType == audioInfo.positionId) {
return audioInfo.url; //获得表单信息
} getSheepfold(num) {
} return this.data.sheepfoldArr[num];
},
//获得所有选项
getSheepArr() {
return this.data.sheepArr;
},
//获得单项信息
getSheep(num) {
return this.data.sheepArr[num];
}, },
//获取当前整页数据 //获取当前整页数据
...@@ -66,53 +57,14 @@ g.data_mgr = { ...@@ -66,53 +57,14 @@ g.data_mgr = {
return pageInfo[id]; return pageInfo[id];
}, },
//获得图片信息 type 1上面,type 2下面
getImgInfo: function (type) {
var list = [];
for (var i in g.data_mgr._imageResList) {
var imgList = g.data_mgr._imageResList[i];
if (imgList.positionId == type) {
list.push(imgList)
}
}
return list;
},
//处理数据 //处理数据
proGameData: function () { proGameData: function () {
// this.addPreloadImage();
// this.addPreloadAudio();
// this.addPreloadAnima();
this.preload(); this.preload();
console.log("数据处理完毕:"); console.log("数据处理完毕:");
}, },
//预加载图片
addPreloadImage() {
//btnState 0正常显示,1显示成功,2显示灰色,3连线完成
var pageInfo = this.data.contentObj.pageArr[this.pageId].pageInfo;
for (var i in pageInfo) {
this._imageResList.push({ url: pageInfo[i].groupPic, typeId: i });
}
},
//预加载声音
addPreloadAudio() {
var pageInfo = this.data.contentObj.pageArr[this.pageId].pageInfo;
for (var i in pageInfo) {
this._audioResList.push({ url: pageInfo[i].a_audio_url, typeId: i, positionId: 1, isPlay: false });
this._audioResList.push({ url: pageInfo[i].b_audio_url, typeId: i, positionId: 2, isPlay: false });
this.temPlayAudio.push(i);
}
},
addPreloadAnima() {
},
preload() { preload() {
const preloadArr = this._imageResList.concat(this._audioResList).concat(this._animaResList); cc.assetManager.loadAny(null, null, null, (err, data) => {
cc.assetManager.loadAny(preloadArr, null, null, (err, data) => {
//结束回调 //结束回调
this.loadEnd(); this.loadEnd();
if (window && window["air"]) { if (window && window["air"]) {
......
{
"ver": "2.3.5",
"uuid": "56d2223c-07c0-4715-a592-b607902a0e17",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 29,
"height": 29,
"platformSettings": {},
"subMetas": {
"Img_paper": {
"ver": "1.0.4",
"uuid": "e73ee213-5760-4419-a7ca-7ef48e02f398",
"rawTextureUuid": "56d2223c-07c0-4715-a592-b607902a0e17",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 29,
"height": 29,
"rawWidth": 29,
"rawHeight": 29,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "824dddb5-6d27-48f4-99aa-a4c123c9f848",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 308,
"height": 172,
"platformSettings": {},
"subMetas": {
"item_bg2": {
"ver": "1.0.4",
"uuid": "18f1dd43-5fb1-48a2-96ad-ec7a1b5d83e9",
"rawTextureUuid": "824dddb5-6d27-48f4-99aa-a4c123c9f848",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 154,
"height": 86,
"rawWidth": 154,
"rawHeight": 86,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ 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