Commit 173afde1 authored by asdf's avatar asdf

.

parent 1c17f347
......@@ -4,7 +4,7 @@
<div class="card-item-content border">
<div class="section-content;text-align:center">
<div style="display: inline-block; margin-left: 20px;">
<span>开始音频</span><span> : </span>
<span>题意音频</span><span> : </span>
</div>
<div style="display: inline-block; margin-bottom: 10px;margin-left: 10px;">
<app-audio-recorder [audioUrl]="contentObj.bgm_url" (audioUploaded)="onBgmUploadSuccess($event)">
......@@ -28,6 +28,7 @@
</div>
</div>
</div> -->
<!-- <div class="section" style="margin-top: 10px"></div> -->
<div class="card-config">
......@@ -41,73 +42,95 @@
</div>
<div class="section" style="margin-top: 10px"></div>
<div class="section-content;text-align:center ">
<div style="display: inline-block; margin-left: 20px;margin-top: 10px;">
<span>短音频</span><span> : </span>
</div>
<div style="display: inline-block; margin-bottom: 10px;margin-left: 10px;">
<app-audio-recorder [audioUrl]="item.shortAudio_url"
(audioUploaded)="onAudioUploadSuccessByItem($event, item)"></app-audio-recorder>
<div class="card-item-content border" style="margin-top: 10px;">
<div class="section-content;text-align:center ">
<div style="display: inline-block; margin-left: 20px;margin-top: 10px;">
<span>短音频</span><span> : </span>
</div>
<div style="display: inline-block; margin-bottom: 10px;margin-left: 10px;">
<app-audio-recorder [audioUrl]="item.shortAudio_url"
(audioUploaded)="onAudioUploadSuccessByItem($event, item)"></app-audio-recorder>
</div>
</div>
</div>
<div class="section"></div>
<div class="section-content;text-align:center ">
<span style="margin-bottom: 10px;margin-left: 20px;">单词: </span>
<input style="width: 200px; margin-bottom: 10px;margin-left: 10px;" type="text" nz-input
[(ngModel)]="item.text" (ngModelChange)="handleTextChange($event, i)">
<div class="section-content;text-align:center ">
<span style="margin-bottom: 10px;margin-left: 20px;">单词: </span>
<input style="width: 200px; margin-bottom: 10px;margin-left: 10px;" type="text" nz-input
[(ngModel)]="item.text" (ngModelChange)="handleTextChange($event, i)">
</div>
</div>
<div class="card-item-content border">
<div class="card-item-content border" style="margin-top: 10px;">
<div *ngFor="let word of item.text.split(''); let j = index" class="section-content;text-align:center"
style="padding: 0.5vw; display: inline-block">
<button nz-button [(nzType)]=item.words[j] (click)="setButtonType(item,j)">
<button nz-button [nzType]=getButtonType(item,j) (click)="setButtonType(item,j)">
<span>{{word}}</span>
</button>
</div>
</div>
<div class="section" style="margin-top: 10px"></div>
<div class="section-content;text-align:center" style="margin-top: 10px">
<span style="margin-left: 20px;margin-bottom: 10px;display: inline;vertical-align:400%;">图片: </span>
<div style="display: inline-block; margin-bottom: 10px;margin-left: 20px;width:200px">
<app-upload-image-with-preview style="width: 100%;" [picUrl]="item.image_url"
(imageUploaded)="onImageUploadSuccessByItem($event, item)">
</app-upload-image-with-preview>
<div class="card-item-content border" style="margin-top: 10px;">
<span style="margin-left: 10px;">骨骼动画 : </span>
<div class="section-content;text-align:center" style="margin-top: 10px">
<div style="display: flex 1;margin-bottom: 10px;margin-left: 10px;">
<span>上传 ske_json 文件</span><span> : </span>
<nz-upload nzAccept=".json" [nzAction]="uploadUrl" [nzData]="uploadData" [nzShowUploadList]="false"
(nzChange)="handleChange($event, item,'ske_json')">
<button nz-button><i nz-icon nzType="upload"></i>Upload</button>
</nz-upload>
<span style="margin-left: 10px;">{{item["ske_json_name"]}}</span>
</div>
<div style="display: flex 1;margin-bottom: 10px;margin-left: 10px;">
<span>上传 tex_json 文件</span><span> : </span>
<nz-upload nzAccept=".json" [nzAction]="uploadUrl" [nzData]="uploadData" [nzShowUploadList]="false"
(nzChange)="handleChange($event, item,'tex_json')">
<button nz-button><i nz-icon nzType="upload"></i>Upload</button>
</nz-upload>
<span style="margin-left: 10px;">{{ item["tex_json_name"] }}</span>
</div>
<div style="display: flex 1;margin-bottom: 10px;margin-left: 10px;">
<span>上传 tex_png 文件</span><span> : </span>
<nz-upload nzAccept=".png" [nzAction]="uploadUrl" [nzData]="uploadData" [nzShowUploadList]="false"
(nzChange)="handleChange($event, item,'tex_png')">
<button nz-button><i nz-icon nzType="upload"></i>Upload</button>
</nz-upload>
<span style="margin-left: 10px;">{{ item["tex_png_name"] }}</span>
</div>
</div>
</div>
<div class="section" style="margin-top: 10px"></div>
<div class="section-content;text-align:center" style="margin-top: 10px;height:40px">
<div style="float:left;">
<span style="margin-right: 0px;">正确答案? : </span>
<nz-switch style="margin-right: 10px;" [(ngModel)]="item.isRight" (ngModelChange)="onSwitchChange()">
</nz-switch>
</div>
<div style="float:right;">
<button *ngIf="contentObj.dataArray.length<4" style="margin-right: 10px" nz-button nzType="primary"
(click)="onCopyData(i)">
<span>复制本页</span>
</button>
<button nz-button nzType="danger" style="margin-right: 0px;"
(click)="deleteItem(contentObj.dataArray, i)">
<span>删除本页</span>
</button>
<div class="card-item-content border" style="margin-top: 10px;">
<div class="section-content;text-align:center" style="margin-top: 10px;height:40px">
<div style="float:left;">
<span style="margin-right: 0px;">正确答案? : </span>
<nz-switch style="margin-right: 10px;" [(ngModel)]="item.isRight" (ngModelChange)="onSwitchChange()">
</nz-switch>
</div>
<div style="float:right;">
<button style="margin-right: 10px" nz-button nzType="primary" (click)="onCopyData(i)">
<span>复制本页</span>
</button>
<button nz-button nzType="danger" style="margin-right: 0px;"
(click)="deleteItem(contentObj.dataArray, i)">
<span>删除本页</span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div *ngIf="contentObj.dataArray.length<4">
<div>
<button nz-button nzType="primary" class="add-btn" (click)="addItem(contentObj.dataArray)">
<i nz-icon nzType="plus-circle" nzTheme="outline"></i>
新建单词
......
......@@ -40,7 +40,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
* shortAudio_url:'',
* image_url:'',
* isRight:false,
* words:[]
* letters:[]
* }
*/
......@@ -59,8 +59,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
let item = this.contentObj.dataArray[index];
item.text = text;
for (let i = 0; i < text.length; i++) {
if (!item.words[i]) {
item.words[i] = 'text';
if (!item.letters[i]) {
item.letters[i] = 0;
}
}
this.saveItem()
......@@ -137,14 +137,21 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
}
setButtonType(item, j) {
if (item.words[j] == 'primary') {
item.words[j] = 'text';
if (item.letters[j] == 1) {
item.letters[j] = 0;
} else {
item.words[j] = 'primary';
item.letters[j] = 1;
}
this.save()
}
getButtonType(item, j) {
if (item.letters[j] == 1) {
return 'primary';
}
return 'text';
}
onSwitchChange() {
this.save()
}
......@@ -155,7 +162,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
}
addItem(item) {
item.push({ text: "", isRight: false, shortAudio_url: '', image_url: "", words: {} })
item.push({ text: "", isRight: false, shortAudio_url: '', image_url: "", letters: {} })
this.saveItem();
setTimeout(() => {
window.scrollTo(0, document.body.scrollHeight);
......@@ -179,6 +186,23 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.save();
}
handleChange(info: { type: string, file: UploadFile, event: any }, item, key) {
console.log('info:', info);
switch (info.type) {
case 'success':
this.uploadSuccess(info.file, item, key);
break;
}
}
uploadSuccess(file, item, key) {
console.log(item);
item[key] = file.response.url;
item[key + '_name'] = file.name;
this.save();
}
saveItem() {
this.save();
}
......@@ -186,7 +210,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
save() {
(<any>window).courseware.setData(this.item, null, this.KEY);
this.refresh();
// console.log("保存", JSON.stringify(this.item))
console.log("保存", JSON.stringify(this.item))
}
refresh() {
......
{
"version": "1.1",
"key": "DataKey_Cocos_Test",
"haveCover":false,
"dataArray": []
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "5f5df408-ce4f-4c0d-befa-fb4f1e18700f",
"uuid": "055f3c8d-ca18-4e0f-b0cb-68b6077415cf",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"__type__": "cc.AnimationClip",
"_name": "fingerMove",
"_objFlags": 0,
"_native": "",
"_duration": 0.6666666666666666,
"sample": 60,
"speed": 0.2,
"wrapMode": 1,
"curveData": {
"paths": {
"finger": {
"props": {
"x": [
{
"frame": 0,
"value": 690
},
{
"frame": 0.08333333333333333,
"value": 690
},
{
"frame": 0.16666666666666666,
"value": 900
},
{
"frame": 0.25,
"value": 900
},
{
"frame": 0.3333333333333333,
"value": 1108
},
{
"frame": 0.4166666666666667,
"value": 1108
},
{
"frame": 0.5,
"value": 1315
}
],
"active": [
{
"frame": 0,
"value": true
},
{
"frame": 0.5833333333333334,
"value": true
},
{
"frame": 0.6666666666666666,
"value": false
}
],
"opacity": [
{
"frame": 0,
"value": 255
},
{
"frame": 0.5833333333333334,
"value": 255
},
{
"frame": 0.6666666666666666,
"value": 0
}
]
}
}
}
},
"events": []
}
\ No newline at end of file
{
"ver": "2.1.0",
"uuid": "1ec43c34-3523-4470-bbc9-c6eb9ab33386",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "3b4d792e-6e1e-4a06-9f07-8368268755b7",
"downloadMode": 0,
"duration": 1.184417,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "a7e0fc53-293f-4b46-81ca-8e1c62a84a9c",
"downloadMode": 0,
"duration": 9.351837,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "5ec440d1-9bfe-4246-9543-d964b41ac8c5",
"downloadMode": 0,
"duration": 1.810417,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "9a627d34-3905-4750-80f6-67e51994f82a",
"uuid": "ac86e335-44ed-48e5-bd97-5f4ab7fa28d4",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "ItemLetter",
"_objFlags": 0,
"_parent": null,
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
},
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 15.35,
"height": 37.8
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-28.37,
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.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_useOriginalSize": true,
"_string": "a",
"_N$string": "a",
"_fontSize": 30,
"_lineHeight": 30,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "6649a27f-4829-4395-a98f-46575eed9b95"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "7dba0zIACNKip6XtEfKJFLs",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"colorYellow": "#F67627",
"colorGreen": "#009776",
"colorRed": "#E11C24",
"colorBlue": "#0093CD",
"colorNormal": "#3C3048",
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "b4cceb6a-30d5-400a-ac0f-9fb6961a728b"
},
"fileId": "1feCsK5RVBEbsKWb3urJXw",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.7",
"uuid": "b4cceb6a-30d5-400a-ac0f-9fb6961a728b",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"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": "coach1",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
},
{
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 11
}
],
"_prefab": {
"__id__": 12
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "invalid-name_11",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 244,
"height": 205
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-158,
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__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f72c13fd-0e22-4af0-9fdc-5b4a4ff04356"
},
"_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__": "7760047e-74e6-4d91-9457-8ae061db649c"
},
"fileId": "f8pDpdcEtN5rESeG2G/kbV",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "letters",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": {
"__id__": 7
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 60,
"g": 48,
"b": 72,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 107.44999999999999,
"height": 37.8
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
22.577,
-172.078,
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.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 107.44999999999999,
"height": 37.8
},
"_resize": 1,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "7760047e-74e6-4d91-9457-8ae061db649c"
},
"fileId": "e8D7ESCSxAg4M5Bn/1xDWQ",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "button",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
}
],
"_prefab": {
"__id__": 10
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 194,
"height": 118
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
23.405,
-167.256,
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.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 230,
"g": 230,
"b": 230,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"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": 120,
"g": 120,
"b": 120,
"a": 200
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 8
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "7760047e-74e6-4d91-9457-8ae061db649c"
},
"fileId": "82LbSHHy9Bj4B819AAy/Wd",
"sync": false
},
{
"__type__": "6a79aze0bxMlY7SvVfBgVVg",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"pfbLetter": {
"__uuid__": "b4cceb6a-30d5-400a-ac0f-9fb6961a728b"
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "7760047e-74e6-4d91-9457-8ae061db649c"
},
"fileId": "462mMOzKVNbqHY6rIY7BCq",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.7",
"uuid": "7760047e-74e6-4d91-9457-8ae061db649c",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"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": "coach2",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
},
{
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 11
}
],
"_prefab": {
"__id__": 12
},
"_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": [
207.5,
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": "invalid-name_10",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 244,
"height": 440
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-41,
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__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "dd153fb3-52a9-4875-aae2-cb2e4dab49ad"
},
"_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__": "39553e67-4de9-4d3b-8597-ed88a22fd71f"
},
"fileId": "fcM7GKmWFBBJsE+MaHWtYx",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "letters",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": {
"__id__": 7
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 60,
"g": 48,
"b": 72,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 72.09,
"height": 37.8
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
22.577,
-172.078,
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.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 72.09,
"height": 37.8
},
"_resize": 1,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "39553e67-4de9-4d3b-8597-ed88a22fd71f"
},
"fileId": "11pCJxmj5AzIDQLMw98HU8",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "button",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
}
],
"_prefab": {
"__id__": 10
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 194,
"height": 118
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
23.405,
-167.256,
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.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 230,
"g": 230,
"b": 230,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"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": 120,
"g": 120,
"b": 120,
"a": 200
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 8
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "39553e67-4de9-4d3b-8597-ed88a22fd71f"
},
"fileId": "f9WSUwWDJK5YAryJy78YaG",
"sync": false
},
{
"__type__": "96cfdFfbxZFcaiWwYH6/Y/g",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"pfbLetter": {
"__uuid__": "b4cceb6a-30d5-400a-ac0f-9fb6961a728b"
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "39553e67-4de9-4d3b-8597-ed88a22fd71f"
},
"fileId": "daL5F5F1BD8KW4TWPJC5eu",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.7",
"uuid": "39553e67-4de9-4d3b-8597-ed88a22fd71f",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"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": "coach3",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
},
{
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 11
}
],
"_prefab": {
"__id__": 12
},
"_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": [
415,
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": "invalid-name_9",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 244,
"height": 217
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-152,
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__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "db3ad8c1-2ed5-4a5a-90e6-05fc359b4bb2"
},
"_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__": "3eb6ea80-571b-4871-aec4-1f278fb1eca5"
},
"fileId": "84HrZxC39CKIIZ3+6rJnuD",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "letters",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": {
"__id__": 7
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 60,
"g": 48,
"b": 72,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 72.09,
"height": 37.8
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
22.577,
-172.078,
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.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 72.09,
"height": 37.8
},
"_resize": 1,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "3eb6ea80-571b-4871-aec4-1f278fb1eca5"
},
"fileId": "51cJqg4QNDYJHaUbmkpB4S",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "button",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
}
],
"_prefab": {
"__id__": 10
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 194,
"height": 118
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
23.405,
-167.256,
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.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 230,
"g": 230,
"b": 230,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"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": 120,
"g": 120,
"b": 120,
"a": 200
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 8
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "3eb6ea80-571b-4871-aec4-1f278fb1eca5"
},
"fileId": "07Af1XD8NJyou5SxLU0qXj",
"sync": false
},
{
"__type__": "c25a65basBPDKEUUSB1oObH",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"pfbLetter": {
"__uuid__": "b4cceb6a-30d5-400a-ac0f-9fb6961a728b"
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "3eb6ea80-571b-4871-aec4-1f278fb1eca5"
},
"fileId": "ad6vPeBsBH4oVPwM4NU9JW",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.7",
"uuid": "3eb6ea80-571b-4871-aec4-1f278fb1eca5",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"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": "coach4",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
},
{
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 11
}
],
"_prefab": {
"__id__": 12
},
"_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": [
622.5,
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": "invalid-name_99",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 244,
"height": 265
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-128,
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__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "3e296944-3359-4f2a-88b5-5204364cee3f"
},
"_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__": "1fb5dcb5-3f94-4eef-9057-4186bef49ce3"
},
"fileId": "cdtEgpYr9GJ5gWeYGujBnw",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "letters",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": {
"__id__": 7
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 60,
"g": 48,
"b": 72,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 72.09,
"height": 37.8
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
22.577,
-172.078,
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.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 72.09,
"height": 37.8
},
"_resize": 1,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "1fb5dcb5-3f94-4eef-9057-4186bef49ce3"
},
"fileId": "c17RZv3xtCSoQQIRMGyw1X",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "button",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
}
],
"_prefab": {
"__id__": 10
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 194,
"height": 118
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
23.405,
-167.256,
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.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 230,
"g": 230,
"b": 230,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"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": 120,
"g": 120,
"b": 120,
"a": 200
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 8
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "1fb5dcb5-3f94-4eef-9057-4186bef49ce3"
},
"fileId": "67wfwqHhJI5bcyF0vxyJB5",
"sync": false
},
{
"__type__": "032bciB7PRGFr14T29NMmtB",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"pfbLetter": {
"__uuid__": "b4cceb6a-30d5-400a-ac0f-9fb6961a728b"
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "1fb5dcb5-3f94-4eef-9057-4186bef49ce3"
},
"fileId": "10QeSw8edEloTGhrm+q5RL",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.7",
"uuid": "1fb5dcb5-3f94-4eef-9057-4186bef49ce3",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
cc.Class({
extends: cc.Component,
properties: {
pfbLetter: cc.Prefab,
},
onLoad() {
this.layerLetters = this.node.getChildByName('letters');
this.button = this.node.getChildByName('button');
this.button.on('click', this.onClick, this);
},
setData(data, index) {
this.data = data;
this.index = index;
this.initLetters();
this.initLayerLettersScale();
},
initLetters() {
for (let i = 0; i < this.data.text.length; i++) {
let node = cc.instantiate(this.pfbLetter);
node.parent = this.layerLetters;
let colorType = this.index % 4;
let color = 'normal';
if (colorType == 0) {
color = 'yellow';
} else if (colorType == 1) {
color = 'green';
} else if (colorType == 2) {
color = 'red';
} else if (colorType == 3) {
color = 'blue';
}
let letter = this.data.text.charAt(i);
if (this.data.letters[i] == 1) {
node.getComponent('ItemLetter').setData(color, letter);
} else {
node.getComponent('ItemLetter').setData('normal', letter);
}
}
this.layerLetters.getComponent(cc.Layout).updateLayout();
if (this.data.text.length <= 7) {
return;
}
let maxWidth = 107.45;
let scale = maxWidth / this.layerLetters.width;
if(!window.minWordScale){
window.minWordScale = scale;
}else if(scale < window.minWordScale){
window.minWordScale = scale;
}
},
initLayerLettersScale() {
this.scheduleOnce(()=>{
this.layerLetters.scale = window.minWordScale;
})
},
onClick() {
console.log(this.data.text);
},
// update (dt) {},
});
{
"ver": "1.0.8",
"uuid": "5f356007-6b71-4b51-b45f-c3517fe33887",
"uuid": "6a79acde-d1bc-4c95-8ed2-bd57c1815560",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
cc.Class({
extends: cc.Component,
properties: {
pfbLetter: cc.Prefab,
},
onLoad() {
this.layerLetters = this.node.getChildByName('letters');
this.button = this.node.getChildByName('button');
this.button.on('click', this.onClick, this);
},
setData(data, index) {
this.data = data;
this.index = index;
this.initLetters();
this.initLayerLettersScale();
},
initLetters() {
for (let i = 0; i < this.data.text.length; i++) {
let node = cc.instantiate(this.pfbLetter);
node.parent = this.layerLetters;
let colorType = this.index % 4;
let color = 'normal';
if (colorType == 0) {
color = 'yellow';
} else if (colorType == 1) {
color = 'green';
} else if (colorType == 2) {
color = 'red';
} else if (colorType == 3) {
color = 'blue';
}
let letter = this.data.text.charAt(i);
if (this.data.letters[i] == 1) {
node.getComponent('ItemLetter').setData(color, letter);
} else {
node.getComponent('ItemLetter').setData('normal', letter);
}
}
this.layerLetters.getComponent(cc.Layout).updateLayout();
if (this.data.text.length <= 7) {
return;
}
let maxWidth = 107.45;
let scale = maxWidth / this.layerLetters.width;
if(!window.minWordScale){
window.minWordScale = scale;
}else if(scale < window.minWordScale){
window.minWordScale = scale;
}
},
initLayerLettersScale() {
this.scheduleOnce(()=>{
this.layerLetters.scale = window.minWordScale;
})
},
onClick() {
console.log(this.data.text);
},
// update (dt) {},
});
{
"ver": "1.0.8",
"uuid": "03c4dde2-ba65-4786-9c84-61ca373331e2",
"uuid": "96cfd15f-6f16-4571-a896-c181fafd8fe0",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
cc.Class({
extends: cc.Component,
properties: {
pfbLetter: cc.Prefab,
},
onLoad() {
this.layerLetters = this.node.getChildByName('letters');
this.button = this.node.getChildByName('button');
this.button.on('click', this.onClick, this);
},
setData(data, index) {
this.data = data;
this.index = index;
this.initLetters();
this.initLayerLettersScale();
},
initLetters() {
for (let i = 0; i < this.data.text.length; i++) {
let node = cc.instantiate(this.pfbLetter);
node.parent = this.layerLetters;
let colorType = this.index % 4;
let color = 'normal';
if (colorType == 0) {
color = 'yellow';
} else if (colorType == 1) {
color = 'green';
} else if (colorType == 2) {
color = 'red';
} else if (colorType == 3) {
color = 'blue';
}
let letter = this.data.text.charAt(i);
if (this.data.letters[i] == 1) {
node.getComponent('ItemLetter').setData(color, letter);
} else {
node.getComponent('ItemLetter').setData('normal', letter);
}
}
this.layerLetters.getComponent(cc.Layout).updateLayout();
if (this.data.text.length <= 7) {
return;
}
let maxWidth = 107.45;
let scale = maxWidth / this.layerLetters.width;
if(!window.minWordScale){
window.minWordScale = scale;
}else if(scale < window.minWordScale){
window.minWordScale = scale;
}
},
initLayerLettersScale() {
this.scheduleOnce(()=>{
this.layerLetters.scale = window.minWordScale;
})
},
onClick() {
console.log(this.data.text);
},
// update (dt) {},
});
{
"ver": "1.0.8",
"uuid": "c25a6e5b-6ac0-4f0c-a114-512075a0e6c7",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
cc.Class({
extends: cc.Component,
properties: {
pfbLetter: cc.Prefab,
},
onLoad() {
this.layerLetters = this.node.getChildByName('letters');
this.button = this.node.getChildByName('button');
this.button.on('click', this.onClick, this);
},
setData(data, index) {
this.data = data;
this.index = index;
this.initLetters();
this.initLayerLettersScale();
},
initLetters() {
for (let i = 0; i < this.data.text.length; i++) {
let node = cc.instantiate(this.pfbLetter);
node.parent = this.layerLetters;
let colorType = this.index % 4;
let color = 'normal';
if (colorType == 0) {
color = 'yellow';
} else if (colorType == 1) {
color = 'green';
} else if (colorType == 2) {
color = 'red';
} else if (colorType == 3) {
color = 'blue';
}
let letter = this.data.text.charAt(i);
if (this.data.letters[i] == 1) {
node.getComponent('ItemLetter').setData(color, letter);
} else {
node.getComponent('ItemLetter').setData('normal', letter);
}
}
this.layerLetters.getComponent(cc.Layout).updateLayout();
if (this.data.text.length <= 7) {
return;
}
let maxWidth = 107.45;
let scale = maxWidth / this.layerLetters.width;
if(!window.minWordScale){
window.minWordScale = scale;
}else if(scale < window.minWordScale){
window.minWordScale = scale;
}
},
initLayerLettersScale() {
this.scheduleOnce(()=>{
this.layerLetters.scale = window.minWordScale;
})
},
onClick() {
console.log(this.data.text);
},
// update (dt) {},
});
{
"ver": "1.0.8",
"uuid": "032bc881-ecf4-4616-bd78-4f6f4d326b41",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
cc.Class({
extends: cc.Component,
properties: {
colorYellow: '#F67627',
colorGreen: '#009776',
colorRed: '#E11C24',
colorBlue: '#0093CD',
colorNormal: '#3C3048',
},
onLoad() {
this.label = this.getComponent(cc.Label);
},
setData(strColor, letter) {
this.label.string = letter;
let color = this.colorNormal;
if (strColor == 'yellow') {
color = this.colorYellow;
} else if (strColor == 'green') {
color = this.colorGreen;
} else if (strColor == 'red') {
color = this.colorRed;
} else if (strColor == 'blue') {
color = this.colorBlue;
} else if (strColor == 'normal') {
color = this.colorNormal;
}
this.scheduleOnce(()=>{
this.node.color = new cc.Color().fromHEX(color);
})
},
// update (dt) {},
});
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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