Commit 736ddd2d authored by LMZ's avatar LMZ

feat: 首次提交

parent cb1367da
No preview for this file type
This diff is collapsed.
......@@ -55,4 +55,4 @@
"tslint": "~5.18.0",
"typescript": "~3.7.5"
}
}
\ No newline at end of file
}
......@@ -7,29 +7,20 @@
}
.radioPaire {
float: left;
margin: 3px;
border-style: dashed;
border-color: #000;
border-width: 1px;
}
.border {
.question-box {
width: 1000px;
border: 1px solid #ccc;
padding: 25px;
border-radius: 20px;
border-style: dashed;
padding: 20px;
margin: 20px;
/*width: 500px; */
/*//border-radius: 20px;*/
/*//border-width: 2px;*/
/*//border-color: #000000;*/
margin-bottom: 20px;
}
.border-lite {
border: 2px dashed #ddd;
border-radius: 0.5rem;
padding: 10px;
margin: 10px;
.group-box {
width: 1050px;
border: 2px solid #ccc;
padding: 25px;
border-radius: 20px;
margin-bottom: 20px;
}
<div class="model-content">
<div style="padding: 10px;">
<div style="width: 300px;" align='center'>
<span>图1: </span>
<app-upload-image-with-preview
[picUrl]="item.pic_url"
(imageUploaded)="onImageUploadSuccess($event, 'pic_url')">
</app-upload-image-with-preview>
</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 style="padding: 30px">
<div style="display: flex; flex-direction: column; margin-bottom: 20px;">
<span nz-text nzType="secondary"> 【最佳图片尺寸】 </span>
<span nz-text nzType="secondary">1、题干图片最佳尺寸:678*396</span>
<span nz-text nzType="secondary">2、选项图片最佳尺寸:366*248</span>
<span nz-text nzType="secondary">重要提示:</span>
<span nz-text nzType="secondary">内容编辑完成后,一定要进行预览~!!!</span>
<span nz-text nzType="secondary">确保预览没问题后再发布~!!!</span>
</div>
<div style="width: 300px; margin-top: 15px;">
<span>文本: </span>
<input type="text" nz-input [(ngModel)]="item.text" (blur)="save()">
<div *ngFor="let g of item.groupArr; let gi = index" class="group-box">
<div style="display: flex; align-items: center;">
<h1>组-{{gi+1}}</h1>
<button style="margin-left: 50px; margin-bottom: 12px;" nz-button nzType="danger" nzsize="small" (click)="deleteGroup(gi)">删除本组</button>
</div>
<div *ngFor="let q of g.questionArr; let qi = index" class="question-box">
<h1>题-{{qi + 1}}</h1>
<div style="display: flex; align-items: center; ">
<h2> 题干类型: </h2>
<nz-radio-group [(ngModel)]="q.questionType" style="margin-left: 20px; margin-top: -11px" (ngModelChange)="save()">
<label nz-radio nzValue="text">文本</label>
<label nz-radio nzValue="pic">图片</label>
<label nz-radio nzValue="audio">音频</label>
<label nz-radio nzValue="video">视频</label>
</nz-radio-group>
<button style="margin-left: 100px; margin-bottom: 12px;" nz-button nzType="danger" nzsize="small" (click)="deleteQuestion(g, qi)">删除本题</button>
</div>
<div style="width: 700px">
<div *ngIf="q.questionType == 'text'">
<input type="text" nz-input [(ngModel)]="q.text" (blur)="save()">
</div>
<div *ngIf="q.questionType == 'pic'" style="width: 80%">
<app-upload-image-with-preview
[picUrl]="q.pic_url"
(imageUploaded)="onImageUploadSuccess($event, 'pic_url', q)"
></app-upload-image-with-preview>
</div>
<div *ngIf="q.questionType != 'video'">
<app-audio-recorder
[audioUrl]="q.audio_url"
(audioUploaded)="onAudioUploadSuccess($event, 'audio_url', q)"
></app-audio-recorder>
</div>
<div *ngIf="q.questionType == 'video'">
<app-upload-video
(videoUploaded)="onVideoUploadSuccess($event, q)"
[item]="q"
[videoUrl]="q.video_url"></app-upload-video>
</div>
</div>
<nz-divider style=" margin-top: 30px; margin-bottom: 30px;"></nz-divider>
<div style="display: flex; align-items: center;">
<h2> 答案类型: </h2>
<nz-radio-group [(ngModel)]="q.answerType" style="margin-left: 20px; margin-top: -11px" (ngModelChange)="save()">
<label nz-radio nzValue="text">文本</label>
<label nz-radio nzValue="pic">图片</label>
<label nz-radio nzValue="audio">音频</label>
</nz-radio-group>
</div>
<div *ngFor="let it of q.answerArr; let i = index">
<div style="margin-bottom: 30px; width : 500px; border: 1px solid #ccc; border-radius: 10px; padding: 5px;">
<span> 答案{{i+1}}: </span>
<nz-radio-group style="margin-left: 20px; margin-bottom: 5px;" [(ngModel)]="it.answerRight" (ngModelChange)="save()">
<label nz-radio nzValue="0">错误</label>
<label nz-radio nzValue="1">正确</label>
<button style="margin-left: 240px" nz-button nzType="danger" nzsize="small" (click)="deleteAnswer(q, i)">X</button>
</nz-radio-group>
<input *ngIf="q.answerType == 'text'" type="text" nz-input [(ngModel)]="it.text" (blur)="save()">
<app-upload-image-with-preview
*ngIf="q.answerType == 'pic'"
[picUrl]="it.pic_url"
(imageUploaded)="onImageUploadSuccess($event, 'pic_url', it)"
></app-upload-image-with-preview>
<app-audio-recorder
[audioUrl]="it.audio_url"
(audioUploaded)="onAudioUploadSuccess($event, 'audio_url', it)"
></app-audio-recorder>
</div>
</div>
<div *ngIf="q.answerArr?.length < 4" style="padding: 30px;" >
<button nz-button nzType="dashed" style="width: 150px; height: 50px; margin-top: -30px; margin-left: -30px" (click)="addAnswer(q)">添加答案</button>
</div>
</div>
<div style="padding: 30px;" >
<button nz-button nzType="dashed" style="width: 200px; height: 100px; margin-top: 10px; margin-left: -30px" (click)="addQuestion(g)">添加新题</button>
</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 style="padding: 30px;" >
<button nz-button nzType="dashed" style="width: 200px; height: 100px; margin-top: 30px; margin-left: -30px" (click)="addGroup()">添加新组</button>
</div>
</div>
</div>
import { Component, EventEmitter, Input, OnDestroy, OnChanges, OnInit, Output, ApplicationRef, ChangeDetectorRef } from '@angular/core';
import { JsonPipe } from '@angular/common';
import {Component, EventEmitter, Input, OnDestroy, OnChanges, OnInit, Output, ApplicationRef, ChangeDetectorRef} from '@angular/core';
@Component({
......@@ -10,56 +10,105 @@ import { JsonPipe } from '@angular/common';
export class FormComponent implements OnInit, OnChanges, OnDestroy {
// 储存数据用
saveKey = "test_001";
saveKey = "pu_app_xuanze";
// 储存对象
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() {
this.item = {};
// 获取存储的数据
(<any>window).courseware.getData((data) => {
(<any> window).courseware.getData((data) => {
if (data) {
this.item = data;
}
// this.item = JSON.parse('{"questionType":"text","answerType":"text","answerArr":[{"text":"","pic_url":"","answerRight":"0"},{"text":"","pic_url":"","answerRight":"0"},{"text":"","pic_url":"","answerRight":"0"}],"questionArr":[{"questionType":"text","answerType":"text","answerArr":[{"text":"aaaaa","pic_url":"","answerRight":"0"},{"text":"bb","pic_url":"","answerRight":"1"},{"text":"ccccc","pic_url":"","answerRight":"0","audio_url":"http://staging-teach.cdn.ireadabc.com/b004c86f1a26a367cfa329b11e365f0f.mp3"}],"text":"11112","audio_url":"http://staging-teach.cdn.ireadabc.com/ce693028675b6324506ebfe45974e4c1.mp3"},{"questionType":"pic","answerType":"pic","answerArr":[{"text":"","pic_url":"http://staging-teach.cdn.ireadabc.com/56cf568aebe7ddfa75a0ac3366942241.png","answerRight":"0"},{"text":"","pic_url":"http://staging-teach.cdn.ireadabc.com/9340adda6869dd31a63b9d85a3f9ffe5.png","answerRight":"1","audio_url":"http://staging-teach.cdn.ireadabc.com/6725c1d93e9dbfbfc937ce3611b12631.mp3"}],"text":"22222","pic_url":"http://staging-teach.cdn.ireadabc.com/2d29dffee7d7fefea19ef7c8ea566072.png"},{"questionType":"audio","answerType":"audio","answerArr":[{"text":"","pic_url":"","answerRight":"0","audio_url":"http://staging-teach.cdn.ireadabc.com/519b8f68a4ebd96ee0405d945ca65489.mp3"},{"text":"","pic_url":"","answerRight":"1","audio_url":"http://staging-teach.cdn.ireadabc.com/b363bf8aaddd56ec977ce233f5d46be1.mp3"}],"audio_url":"http://staging-teach.cdn.ireadabc.com/7934cdcec68eabe639020bad5420d7f8.mp3"},{"questionType":"video","answerType":"text","answerArr":[{"text":"444444","pic_url":"","answerRight":"0"},{"text":"3333333","pic_url":"","answerRight":"1","audio_url":"http://staging-teach.cdn.ireadabc.com/f67df2a0dd444837299a3bede235c9d6.mp3"}],"video_url":"http://staging-teach.cdn.ireadabc.com/1ac7eb5446e806b562ec47ad88b092c9.mp4"}],"audio_url":"http://staging-teach.cdn.ireadabc.com/ce693028675b6324506ebfe45974e4c1.mp3"}');
console.log("this.item: ", JSON.stringify(this.item));
this.init();
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
}, this.saveKey);
}
ngOnChanges() {
}
ngOnDestroy() {
}
init() {
if (!this.item.groupArr) {
this.item.groupArr = [];
}
// if (!this.item.questionArr) {
// this.item.questionArr = [];
// }
// if (!this.item.questionType) {
// this.item.questionType = 'text';
// this.item.answerType = 'text';
// this.item.answerArr = [];
// }
}
addGroup() {
this.item.groupArr.push({
questionArr: []
});
this.save();
}
deleteGroup(i) {
this.item.groupArr.splice(i , 1);
this.save();
}
addQuestion(group) {
const ques = {
questionType : 'text',
answerType : 'text',
answerArr : [],
}
group.questionArr.push(ques);
this.save();
}
deleteQuestion(grou, i) {
grou.questionArr.splice(i , 1);
this.save();
}
deleteAnswer(item, i) {
item.answerArr.splice(i, 1);
this.save();
}
addAnswer(q) {
q.answerArr.push({
text: '',
pic_url: '',
answerRight: '0',
});
this.save();
}
......@@ -67,9 +116,12 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
* 储存图片数据
* @param e
*/
onImageUploadSuccess(e, key) {
onImageUploadSuccess(e, key, item = null) {
this.item[key] = e.url;
if (!item) {
item = this.item;
}
item[key] = e.url;
this.save();
}
......@@ -77,18 +129,18 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
* 储存音频数据
* @param e
*/
onAudioUploadSuccess(e, key) {
this.item[key] = e.url;
this.save();
}
onAudioUploadSuccess(e, key, item=null) {
onWordAudioUploadSuccess(e, idx) {
this.item.wordList[idx].audio = e.url;
if (!item) {
item = this.item;
}
item[key] = e.url;
this.save();
}
onBackWordAudioUploadSuccess(e, idx) {
this.item.wordList[idx].backWordAudio = e.url;
onVideoUploadSuccess(e, item) {
item.video_url = e.url;
this.save();
}
......@@ -96,10 +148,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
* 储存数据
*/
save() {
(<any>window).courseware.setData(this.item, null, this.saveKey);
(<any> window).courseware.setData(this.item, null, this.saveKey);
this.refresh();
console.log('this.item = ' + JSON.stringify(this.item));
}
/**
......@@ -111,4 +161,5 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
}, 1);
}
}
\ No newline at end of file
}
This diff is collapsed.
{
"ver": "1.1.2",
"uuid": "e976091a-1c92-4be8-bdef-e61b8d23d13d",
"isBundle": true,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": true,
"android": true
},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "cb9fa4ea-66ca-45af-ad31-e445c7b0ef32",
"uuid": "75aa2c1b-1b9f-420f-a059-a50a0857fdf6",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "1.1.2",
"uuid": "20185448-a1ca-4de2-8b37-7bf6cdfccbae",
"uuid": "4bb574ab-d8a9-4a02-8081-cd22c8b5fb23",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "2.3.5",
"uuid": "9a79969a-0506-48d4-bc98-3c05d109b027",
"uuid": "fa4d888d-4425-40c0-83f7-f8c5cd892d0b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 61,
"height": 67,
"width": 63,
"height": 68,
"platformSettings": {},
"subMetas": {
"btn_left": {
"btn_laba": {
"ver": "1.0.4",
"uuid": "ce19457d-e8f3-4c38-ae3e-d4b99208ddb5",
"rawTextureUuid": "9a79969a-0506-48d4-bc98-3c05d109b027",
"uuid": "07a58438-24ac-46ef-acad-275a36ecd8ab",
"rawTextureUuid": "fa4d888d-4425-40c0-83f7-f8c5cd892d0b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......@@ -22,10 +22,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 61,
"height": 67,
"rawWidth": 61,
"rawHeight": 67,
"width": 63,
"height": 68,
"rawWidth": 63,
"rawHeight": 68,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
{
"ver": "2.3.5",
"uuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f",
"uuid": "71fd5385-83aa-4d73-baeb-460a8379c1cc",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 366,
"height": 336,
"width": 63,
"height": 68,
"platformSettings": {},
"subMetas": {
"1orange": {
"btn_laba2": {
"ver": "1.0.4",
"uuid": "43d1e79d-6de8-4dcb-b8ce-d767df7913aa",
"rawTextureUuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f",
"uuid": "736831ca-2860-4e8f-b22e-417696a7093c",
"rawTextureUuid": "71fd5385-83aa-4d73-baeb-460a8379c1cc",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"offsetY": 0,
"trimX": 0,
"trimY": 1,
"width": 366,
"height": 335,
"rawWidth": 366,
"rawHeight": 336,
"trimY": 0,
"width": 63,
"height": 68,
"rawWidth": 63,
"rawHeight": 68,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
{
"ver": "2.3.5",
"uuid": "cb6a98b5-6958-4520-bec1-ce1056bc01ea",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 63,
"height": 68,
"platformSettings": {},
"subMetas": {
"btn_laba3": {
"ver": "1.0.4",
"uuid": "0b0a7597-1a72-48f5-924e-ad2dbf733d25",
"rawTextureUuid": "cb6a98b5-6958-4520-bec1-ce1056bc01ea",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 63,
"height": 68,
"rawWidth": 63,
"rawHeight": 68,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "2a467c38-7699-49f8-aad7-2213da46a3ba",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 63,
"height": 68,
"platformSettings": {},
"subMetas": {
"btn_laba4": {
"ver": "1.0.4",
"uuid": "79ca7f43-aacd-43c9-803b-111602421022",
"rawTextureUuid": "2a467c38-7699-49f8-aad7-2213da46a3ba",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 63,
"height": 68,
"rawWidth": 63,
"rawHeight": 68,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"__type__": "cc.AnimationClip",
"_name": "laba",
"_objFlags": 0,
"_native": "",
"_duration": 0.35,
"sample": 60,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "07a58438-24ac-46ef-acad-275a36ecd8ab"
}
},
{
"frame": 0.08333333333333333,
"value": {
"__uuid__": "736831ca-2860-4e8f-b22e-417696a7093c"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "0b0a7597-1a72-48f5-924e-ad2dbf733d25"
}
},
{
"frame": 0.25,
"value": {
"__uuid__": "79ca7f43-aacd-43c9-803b-111602421022"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "07a58438-24ac-46ef-acad-275a36ecd8ab"
}
}
]
}
}
},
"events": []
}
\ No newline at end of file
{
"ver": "2.1.0",
"uuid": "e01464cd-bf75-4d4a-8243-a4604d675fec",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "0853721c-3f55-4eb2-873d-e3081cfadd4b",
"uuid": "af6afa75-6b41-4c9e-9238-bd69b56d3763",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "2.3.5",
"uuid": "899a2db7-60b0-4ca7-a07e-777edaef98ab",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 150,
"height": 121,
"platformSettings": {},
"subMetas": {
"btn_audio0": {
"ver": "1.0.4",
"uuid": "1c70d9eb-1034-4997-a6fb-aea058d39beb",
"rawTextureUuid": "899a2db7-60b0-4ca7-a07e-777edaef98ab",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 150,
"height": 121,
"rawWidth": 150,
"rawHeight": 121,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "7fe0cda8-17b1-492a-b87c-14a682d1f838",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 150,
"height": 121,
"platformSettings": {},
"subMetas": {
"btn_audio1": {
"ver": "1.0.4",
"uuid": "69eb205c-4901-452f-b4c8-989c1227830e",
"rawTextureUuid": "7fe0cda8-17b1-492a-b87c-14a682d1f838",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 14.5,
"offsetY": 0,
"trimX": 29,
"trimY": 0,
"width": 121,
"height": 121,
"rawWidth": 150,
"rawHeight": 121,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "cabcdd1a-b71e-4382-9ffd-8a474bcc2129",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 150,
"height": 121,
"platformSettings": {},
"subMetas": {
"btn_audio2": {
"ver": "1.0.4",
"uuid": "7b2bd629-77ac-4fc8-9ee7-569ed0ed3a59",
"rawTextureUuid": "cabcdd1a-b71e-4382-9ffd-8a474bcc2129",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 14.5,
"offsetY": 0,
"trimX": 29,
"trimY": 0,
"width": 121,
"height": 121,
"rawWidth": 150,
"rawHeight": 121,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"__type__": "cc.AnimationClip",
"_name": "op_audio",
"_objFlags": 0,
"_native": "",
"_duration": 0.26666666666666666,
"sample": 60,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "1c70d9eb-1034-4997-a6fb-aea058d39beb"
}
},
{
"frame": 0.08333333333333333,
"value": {
"__uuid__": "69eb205c-4901-452f-b4c8-989c1227830e"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "7b2bd629-77ac-4fc8-9ee7-569ed0ed3a59"
}
},
{
"frame": 0.25,
"value": {
"__uuid__": "1c70d9eb-1034-4997-a6fb-aea058d39beb"
}
}
]
}
}
},
"events": []
}
\ No newline at end of file
{
"ver": "2.1.0",
"uuid": "990c93ef-ffbd-4d38-8e32-a403d2f4ff97",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "10154cf9-b9c1-41f6-a23c-d49e16c1ee57",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "2303c16e-22bf-4edd-ae0d-44869fd75df0",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 105,
"height": 126,
"platformSettings": {},
"subMetas": {
"btn_1": {
"ver": "1.0.4",
"uuid": "0bf14665-ae47-49d9-8b19-1a0f3b38036e",
"rawTextureUuid": "2303c16e-22bf-4edd-ae0d-44869fd75df0",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 105,
"height": 126,
"rawWidth": 105,
"rawHeight": 126,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "ad2bfb68-de98-4902-b035-3b40f23ebf2a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 105,
"height": 126,
"platformSettings": {},
"subMetas": {
"btn_2": {
"ver": "1.0.4",
"uuid": "64df225a-c5d8-417e-b93a-06034a128796",
"rawTextureUuid": "ad2bfb68-de98-4902-b035-3b40f23ebf2a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 105,
"height": 126,
"rawWidth": 105,
"rawHeight": 126,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "58fe3a70-083e-4c83-892e-7685eba8c82b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 105,
"height": 126,
"platformSettings": {},
"subMetas": {
"btn_3": {
"ver": "1.0.4",
"uuid": "e8ffef6e-2426-4de5-b185-2bd4ec3556a8",
"rawTextureUuid": "58fe3a70-083e-4c83-892e-7685eba8c82b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 105,
"height": 126,
"rawWidth": 105,
"rawHeight": 126,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "f94c6c62-0fb0-4d41-9fad-4b58136853ae",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 105,
"height": 126,
"platformSettings": {},
"subMetas": {
"btn_4": {
"ver": "1.0.4",
"uuid": "cad38fe3-a460-40bf-9b80-d57ee36ce2d6",
"rawTextureUuid": "f94c6c62-0fb0-4d41-9fad-4b58136853ae",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 105,
"height": 126,
"rawWidth": 105,
"rawHeight": 126,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"__type__": "cc.AnimationClip",
"_name": "ques_audio",
"_objFlags": 0,
"_native": "",
"_duration": 0.35,
"sample": 60,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "0bf14665-ae47-49d9-8b19-1a0f3b38036e"
}
},
{
"frame": 0.08333333333333333,
"value": {
"__uuid__": "64df225a-c5d8-417e-b93a-06034a128796"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "e8ffef6e-2426-4de5-b185-2bd4ec3556a8"
}
},
{
"frame": 0.25,
"value": {
"__uuid__": "cad38fe3-a460-40bf-9b80-d57ee36ce2d6"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "0bf14665-ae47-49d9-8b19-1a0f3b38036e"
}
}
]
}
}
},
"events": []
}
\ No newline at end of file
{
"ver": "2.1.0",
"uuid": "802d460c-c4c2-4976-bbf0-14feb3750881",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "a7bae982-984d-487c-b12a-d53623796005",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"__type__": "cc.AnimationClip",
"_name": "audio_big",
"_objFlags": 0,
"_native": "",
"_duration": 0.35,
"sample": 60,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "62f365b3-09fd-40b6-8227-f0cc48d2ca4a"
}
},
{
"frame": 0.08333333333333333,
"value": {
"__uuid__": "bec42e56-98de-4cf2-afa0-20d383ba4758"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "2e26f95f-430d-4f06-8124-9da0e739a9e0"
}
},
{
"frame": 0.25,
"value": {
"__uuid__": "47bfa6e9-d33a-4d8a-a261-6189176ee7b8"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "62f365b3-09fd-40b6-8227-f0cc48d2ca4a"
}
}
]
}
}
},
"events": []
}
\ No newline at end of file
{
"ver": "2.1.0",
"uuid": "0dab7b62-6bff-451d-bce3-55f0509129f9",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "0c89dc58-eab0-43d4-92ee-c3affb960f50",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 162,
"height": 167,
"platformSettings": {},
"subMetas": {
"btn_tigan": {
"ver": "1.0.4",
"uuid": "62f365b3-09fd-40b6-8227-f0cc48d2ca4a",
"rawTextureUuid": "0c89dc58-eab0-43d4-92ee-c3affb960f50",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 162,
"height": 167,
"rawWidth": 162,
"rawHeight": 167,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "5efc281d-c4f4-44fc-b0df-8c28d0047928",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 162,
"height": 167,
"platformSettings": {},
"subMetas": {
"btn_tigan2": {
"ver": "1.0.4",
"uuid": "bec42e56-98de-4cf2-afa0-20d383ba4758",
"rawTextureUuid": "5efc281d-c4f4-44fc-b0df-8c28d0047928",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 162,
"height": 167,
"rawWidth": 162,
"rawHeight": 167,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "e3034287-f01f-418e-8a3b-eca9e25e065a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 162,
"height": 167,
"platformSettings": {},
"subMetas": {
"btn_tigan3": {
"ver": "1.0.4",
"uuid": "2e26f95f-430d-4f06-8124-9da0e739a9e0",
"rawTextureUuid": "e3034287-f01f-418e-8a3b-eca9e25e065a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 162,
"height": 167,
"rawWidth": 162,
"rawHeight": 167,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "ddc293a8-9092-41af-978e-4f49fc801159",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 162,
"height": 167,
"platformSettings": {},
"subMetas": {
"btn_tigan4": {
"ver": "1.0.4",
"uuid": "47bfa6e9-d33a-4d8a-a261-6189176ee7b8",
"rawTextureUuid": "ddc293a8-9092-41af-978e-4f49fc801159",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 162,
"height": 167,
"rawWidth": 162,
"rawHeight": 167,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "892ff52a-178d-4a9e-874c-b17a22eae615",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "0af7f03b-039d-4ab2-b9a0-f4bd44320859",
"downloadMode": 0,
"duration": 1.776327,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "f0680ae0-c079-45ef-abd7-9e63d90b982b",
"uuid": "edc9bb14-e27c-4fd3-a87d-d4ea7a01f3b8",
"downloadMode": 0,
"duration": 0.130612,
"subMetas": {}
......
{
"ver": "2.0.1",
"uuid": "b5acb246-88ad-491b-acf4-3ad84f0bc84b",
"downloadMode": 0,
"duration": 4.04898,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "ae679fe2-69b2-45fd-a5f9-1c51f38cf077",
"downloadMode": 0,
"duration": 2.220408,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "4fa481d7-28d6-461c-919b-2d3c6a521dce",
"downloadMode": 0,
"duration": 0.173333,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "a262fe60-ad0a-4177-8075-70541510bdfd",
"downloadMode": 0,
"duration": 2.115917,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "58f5e868-6053-4ff9-a177-146b47bbf6ba",
"downloadMode": 0,
"duration": 0.264,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "c35bb2f6-f24a-4850-ae44-643f2fdc7541",
"uuid": "f9ff87df-13c3-4529-838a-93336988cede",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
This diff is collapsed.
{
"ver": "1.2.9",
"uuid": "57ea7c61-9b8b-498a-b024-c98ee9124beb",
"uuid": "5e0a03aa-9b9e-4076-b508-7dbf209bb115",
"asyncLoadAssets": false,
"autoReleaseAssets": true,
"subMetas": {}
......
{
"ver": "1.1.2",
"uuid": "b0c008bc-cf92-463b-8360-0984e13c2e4d",
"uuid": "0bdf31a9-a3f4-41ec-aa7c-f93ebd2f6505",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
This diff is collapsed.
{
"ver": "1.0.8",
"uuid": "c41b0e51-55d7-443c-af3a-b22c3dd9b9e5",
"uuid": "40eb8e96-d0cf-4860-9228-b8975b9e2db5",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
This diff is collapsed.
{
"ver": "1.0.8",
"uuid": "b54300af-b8e5-4b4e-aa2f-9ac1cef7b598",
"uuid": "e2e0dcb5-f556-4545-b84a-3e9fb09c0a68",
"isPlugin": true,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
......@@ -70,72 +70,9 @@ export function setSprNodeMaxLen(sprNode, maxW, maxH) {
sprNode.scale = Math.round(s * 1000) / 1000;
}
export function localPosTolocalPos(baseNode, targetNode) {
const worldPos = targetNode.parent.convertToWorldSpaceAR(cc.v2(targetNode.x, targetNode.y));
const localPos = baseNode.parent.convertToNodeSpaceAR(cc.v2(worldPos.x, worldPos.y));
return localPos;
}
export function worldPosToLocalPos(worldPos, baseNode) {
const localPos = baseNode.parent.convertToNodeSpaceAR(cc.v2(worldPos.x, worldPos.y));
return localPos;
}
export function getScaleRateBy2Node(baseNode, targetNode, maxFlag = true) {
const worldRect1 = targetNode.getBoundingBoxToWorld();
const worldRect2 = baseNode.getBoundingBoxToWorld();
const sx = worldRect1.width / worldRect2.width;
const sy = worldRect1.height / worldRect2.height;
if (maxFlag) {
return Math.max(sx, sy);
} else {
return Math.min(sx, sy);
}
}
export function getDistance (start, end){
var pos = cc.v2(start.x - end.x, start.y - end.y);
var dis = Math.sqrt(pos.x*pos.x + pos.y*pos.y);
return dis;
}
export function playAudioByUrl(audio_url, cb=null) {
if (audio_url) {
cc.assetManager.loadRemote(audio_url, (err, audioClip) => {
const audioId = cc.audioEngine.play(audioClip, false, 0.8);
if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => {
cb();
});
}
});
}
}
export function btnClickAnima(btn, time=0.15, rate=1.05) {
btn.tmpScale = btn.scale;
btn.on(cc.Node.EventType.TOUCH_START, () => {
cc.tween(btn)
.to(time / 2, {scale: btn.scale * rate})
.start()
})
btn.on(cc.Node.EventType.TOUCH_CANCEL, () => {
cc.tween(btn)
.to(time / 2, {scale: btn.tmpScale})
.start()
})
btn.on(cc.Node.EventType.TOUCH_END, () => {
cc.tween(btn)
.to(time / 2, {scale: btn.tmpScale})
.start()
})
}
export function getSpriteFrimeByUrl(url, cb) {
cc.loader.load({ url }, (err, img) => {
cc.loader.load({url}, (err, img) => {
const spriteFrame = new cc.SpriteFrame(img)
if (cb) {
cb(spriteFrame);
......@@ -163,17 +100,31 @@ export function getSprNodeByUrl(url, cb) {
export function playAudio(audioClip, cb = null) {
if (audioClip) {
export function playAudio(audioClip, cb=null) {
if (audioClip) {
const audioId = cc.audioEngine.playEffect(audioClip, false, 0.8);
if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => {
cb();
});
}
}
return audioId;
}
}
export function playAudioByUrl(audio_url, cb=null) {
if (audio_url) {
cc.assetManager.loadRemote(audio_url, (err, audioClip) => {
playAudio(audioClip, cb);
});
}
}
export async function asyncDelay(time) {
return new Promise((resolve, reject) => {
try {
......@@ -341,14 +292,50 @@ export function showTrebleFirework(baseNode, rabbonList) {
showFireworks(right);
}
export function onHomeworkFinish() {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
if (middleLayerComponent.role == 'student') {
middleLayerComponent.onHomeworkFinish(() => { });
}
} else {
console.log('onHomeworkFinish');
export function delayCall(time, cb) {
return cc.tween({})
.delay(time)
.call(() => {
if (cb) {
cb();
}
})
.start();
}
export function removeFromArr(arr, item) {
const index = arr.indexOf(item);
if (index != -1) {
arr.splice(index, 1);
return true;
}
return false;
}
export function showBtnAnima(btn, cb=null) {
const baseS = btn.scale;
cc.tween(btn)
.to(0.05, {scale: 0.9 * baseS})
.to(0.05, {scale: 1 * baseS})
.call(() => {
if (cb) {
cb();
}
})
.start();
}
export function jellyShake(node) {
const baseS = node.scale;
const time = 1;
cc.tween(node)
.to(time / 5 / 2, {scaleX: baseS * 0.8, scaleY: baseS * 1.2}, {easing: "sineInOut"})
.to(time / 5, {scaleX: baseS * 1.1, scaleY: baseS * 0.9}, {easing: "sineInOut"})
.to(time / 5, {scaleX: baseS * 0.95, scaleY: baseS * 1.15}, {easing: "sineInOut"})
.to(time / 5, {scaleX: baseS * 1.02, scaleY: baseS * 0.98}, {easing: "sineInOut"})
.to(time / 5, {scaleX: baseS * 1, scaleY: baseS * 1}, {easing: "sineInOut"})
.start();
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "ade7af40-d56d-4087-bbc6-2888fef55353",
"uuid": "25ccf041-bdf3-4b6a-8683-c24e4c39fed4",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.1.2",
"uuid": "2582562a-54bb-483a-8483-727d57c6c974",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "c551970e-b095-45f3-9f1d-25cde8b8deb1",
"uuid": "f4ebd988-078f-4f85-b843-133e12c5774e",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "835caf90-a4a3-49b7-891c-8b9628c6c1a3",
"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": "b4eaff45-6718-4047-9d8f-5ecea01f08ae",
"rawTextureUuid": "835caf90-a4a3-49b7-891c-8b9628c6c1a3",
"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": "e1b4d971-9876-4832-803a-5a321964a78b",
"uuid": "d9e1514c-10d5-4e20-acb8-17e57fc3d1e5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg": {
"ver": "1.0.4",
"uuid": "8288e3d4-4c75-4b27-8f01-f7014417f4dd",
"rawTextureUuid": "e1b4d971-9876-4832-803a-5a321964a78b",
"uuid": "8f91b960-a198-4876-9fe1-f956ecbd765b",
"rawTextureUuid": "d9e1514c-10d5-4e20-acb8-17e57fc3d1e5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "08b40084-2634-4cc3-818d-f396a15a951d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 697,
"platformSettings": {},
"subMetas": {
"bg_2": {
"ver": "1.0.4",
"uuid": "b5e75143-dbe8-4edd-b6bb-f60633fe052b",
"rawTextureUuid": "08b40084-2634-4cc3-818d-f396a15a951d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1280,
"height": 697,
"rawWidth": 1280,
"rawHeight": 697,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "5624a60d-df0d-48f5-9a29-2e7924ff02e5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 36,
"height": 24,
"platformSettings": {},
"subMetas": {
"bg_sahua": {
"ver": "1.0.4",
"uuid": "0290c32f-9b41-4ec2-ab60-4e07ac969a63",
"rawTextureUuid": "5624a60d-df0d-48f5-9a29-2e7924ff02e5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 36,
"height": 24,
"rawWidth": 36,
"rawHeight": 24,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "249674f2-ae69-4209-a8f4-901abe8a860b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 454,
"height": 113,
"platformSettings": {},
"subMetas": {
"bg_tryagain": {
"ver": "1.0.4",
"uuid": "80e29b22-f373-485c-8211-8b57da727698",
"rawTextureUuid": "249674f2-ae69-4209-a8f4-901abe8a860b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 454,
"height": 113,
"rawWidth": 454,
"rawHeight": 113,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "dc8809fe-b291-4bcd-a0ed-cebff8dcfeb5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 201,
"height": 89,
"platformSettings": {},
"subMetas": {
"btn_check": {
"ver": "1.0.4",
"uuid": "650c7ec5-6cd8-4a7e-91db-a0b1343086d6",
"rawTextureUuid": "dc8809fe-b291-4bcd-a0ed-cebff8dcfeb5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 201,
"height": 89,
"rawWidth": 201,
"rawHeight": 89,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "7a7f137e-d523-4454-9232-f93a2a475acf",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 384,
"height": 151,
"platformSettings": {},
"subMetas": {
"btn_restart": {
"ver": "1.0.4",
"uuid": "bf3b1fe2-41ed-4842-9db3-29f3d7304593",
"rawTextureUuid": "7a7f137e-d523-4454-9232-f93a2a475acf",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 384,
"height": 151,
"rawWidth": 384,
"rawHeight": 151,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "6b03a6fc-96d5-49a3-817e-368e7ed68e06",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 278,
"height": 275,
"platformSettings": {},
"subMetas": {
"icon_bigstar": {
"ver": "1.0.4",
"uuid": "13ba294e-e1ed-4529-adb4-fde4d01710d6",
"rawTextureUuid": "6b03a6fc-96d5-49a3-817e-368e7ed68e06",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 278,
"height": 275,
"rawWidth": 278,
"rawHeight": 275,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "b93b9aee-483b-45e1-89d6-b3d5e482b4ee",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 122,
"height": 95,
"platformSettings": {},
"subMetas": {
"icon_right": {
"ver": "1.0.4",
"uuid": "661ccc57-af7c-4bb8-b740-6b7f29f84b7a",
"rawTextureUuid": "b93b9aee-483b-45e1-89d6-b3d5e482b4ee",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 122,
"height": 95,
"rawWidth": 122,
"rawHeight": 95,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "18d07592-51a9-421e-8972-0f67b68d29e1",
"uuid": "936aa108-3147-4785-8b89-a84ce7eb5b3c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 144,
"height": 144,
"width": 407,
"height": 303,
"platformSettings": {},
"subMetas": {
"icon": {
"op_pic_bg_big": {
"ver": "1.0.4",
"uuid": "6fbc30a8-3c49-44ae-8ba4-7f56f385b78a",
"rawTextureUuid": "18d07592-51a9-421e-8972-0f67b68d29e1",
"uuid": "c7896147-2816-4fcc-a13d-d9a5c5ed48e6",
"rawTextureUuid": "936aa108-3147-4785-8b89-a84ce7eb5b3c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"trimX": 3,
"trimY": 2,
"width": 138,
"height": 141,
"rawWidth": 144,
"rawHeight": 144,
"offsetY": 0,
"trimX": 9,
"trimY": 9,
"width": 389,
"height": 285,
"rawWidth": 407,
"rawHeight": 303,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
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.
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