Commit d25c8f86 authored by limingzhe's avatar limingzhe

refactor: 数据重构

parent 144337b0
...@@ -152,8 +152,8 @@ ...@@ -152,8 +152,8 @@
<label style="margin-left: 40px" nz-checkbox [(ngModel)]="bgItem.isShowDebugLine">显示辅助框</label> <label style="margin-left: 40px" nz-checkbox [(ngModel)]="bgItem.isShowDebugLine">显示辅助框</label>
<button style="margin-left: 20px; margin-top: -5px" nz-button (click)="copyHotZoneData()"> 复制数据 </button> <button style="margin-left: 20px; margin-top: -5px" nz-button (click)="copyHotZoneData()"> 复制基础数据 </button>
<div style="margin-left: 20px; margin-top: -5px" > <div style="margin-left: 10px; margin-top: -5px" >
<span>粘贴数据: </span> <span>粘贴数据: </span>
<input style="width: 100px;" type="text" nz-input [(ngModel)]="pasteData" > <input style="width: 100px;" type="text" nz-input [(ngModel)]="pasteData" >
......
...@@ -14,9 +14,9 @@ import {Subject} from 'rxjs'; ...@@ -14,9 +14,9 @@ import {Subject} from 'rxjs';
import {debounceTime} from 'rxjs/operators'; import {debounceTime} from 'rxjs/operators';
import {EditorItem, HotZoneImg, HotZoneItem, HotZoneLabel, Label, MySprite, removeItemFromArr} from './Unit'; import {EditorItem, HotZoneImg, HotZoneItem, HotZoneLabel, Label, MySprite, removeItemFromArr} from './Unit';
import TWEEN from '@tweenjs/tween.js'; import TWEEN from '@tweenjs/tween.js';
import {getMinScale} from "../../play/Unit"; import {getMinScale} from '../../play/Unit';
import {tar} from "compressing"; import {tar} from 'compressing';
import {NzMessageService} from "ng-zorro-antd"; import {NzMessageService} from 'ng-zorro-antd';
@Component({ @Component({
...@@ -47,11 +47,12 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { ...@@ -47,11 +47,12 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
@Input() @Input()
customTypeGroupArr; // [{name:string, rect:boolean, pic:boolean, text:boolean, audio:boolean, anima:boolean}, ...] customTypeGroupArr; // [{name:string, rect:boolean, pic:boolean, text:boolean, audio:boolean, anima:boolean}, ...]
@Input() @Input()
hotZoneFontObj = { hotZoneFontObj;
size: 50, // hotZoneFontObj = {
name: 'BRLNSR_1', // size: 50,
color: '#8f3758' // name: 'BRLNSR_1',
} // color: '#8f3758'
// }
@Input() @Input()
defaultItemType = 'text'; defaultItemType = 'text';
@Input() @Input()
...@@ -109,10 +110,9 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { ...@@ -109,10 +110,9 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
isTexPngLoading = false; isTexPngLoading = false;
constructor(private nzMessageService: NzMessageService) { constructor(private nzMessageService: NzMessageService) {
this.uploadUrl = (<any>window).courseware.uploadUrl(); this.uploadUrl = (<any> window).courseware.uploadUrl();
this.uploadData = (<any>window).courseware.uploadData(); this.uploadData = (<any> window).courseware.uploadData();
window['air'].getUploadCallback = (url, data) => { window['air'].getUploadCallback = (url, data) => {
this.uploadUrl = url; this.uploadUrl = url;
...@@ -141,7 +141,6 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { ...@@ -141,7 +141,6 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
ngOnInit() { ngOnInit() {
this.initListener(); this.initListener();
// this.init(); // this.init();
...@@ -434,19 +433,27 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { ...@@ -434,19 +433,27 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
refreshCustomItem(item) { refreshCustomItem(item) {
this.hideHotZoneItem(item); this.hideHotZoneItem(item);
const group = this.customTypeGroupArr[item.gIdx]; const group = this.customTypeGroupArr[item.gIdx];
if (!group) {
return;
}
if (group.text) { if (group.text) {
item.textLabel.visible = true; item.textLabel.visible = true;
item.itemType = 'text'; item.itemType = 'text';
} }
if (group.pic) {
item.pic.visible = true;
item.itemType = 'pic';
}
if (group.rect) { if (group.rect) {
item.visible = true; item.visible = true;
item.itemType = 'rect'; item.itemType = 'rect';
} }
if (group.pic && !group.anima) {
item.pic.visible = true;
item.itemType = 'pic';
}
} }
hideHotZoneItem(item) { hideHotZoneItem(item) {
...@@ -781,7 +788,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { ...@@ -781,7 +788,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
// } // }
this.updateArr(this.hotZoneArr); this.updateArr(this.hotZoneArr);
this.updatePos() this.updatePos();
TWEEN.update(); TWEEN.update();
...@@ -1073,7 +1080,85 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { ...@@ -1073,7 +1080,85 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
} }
} }
copyHotZoneData() {
const {bgItem, hotZoneItemArr} = this.getSendData();
// const hotZoneItemArrNew = [];
// const tmpArr = JSON.parse(JSON.stringify(hotZoneItemArr));
// tmpArr.forEach((item) => {
// if (item.gIdx === '0') {
// hotZoneItemArr.push(item);
// }
// })
const jsonData = {
bgItem,
hotZoneItemArr,
isHasRect: this.isHasRect,
isHasPic: this.isHasPic,
isHasText: this.isHasText,
isHasAudio: this.isHasAudio,
isHasAnima: this.isHasAnima,
hotZoneFontObj: this.hotZoneFontObj,
defaultItemType: this.defaultItemType,
hotZoneImgSize: this.hotZoneImgSize,
};
const oInput = document.createElement('input');
oInput.value = JSON.stringify(jsonData);
document.body.appendChild(oInput);
oInput.select(); // 选择对象
document.execCommand('Copy'); // 执行浏览器复制命令
document.body.removeChild(oInput);
this.nzMessageService.success('复制成功');
// alert('复制成功');
}
importData() {
if (!this.pasteData) {
return;
}
try {
const data = JSON.parse(this.pasteData);
console.log('data:', data);
const {
bgItem,
hotZoneItemArr,
isHasRect,
isHasPic,
isHasText,
isHasAudio,
isHasAnima,
hotZoneFontObj,
defaultItemType,
hotZoneImgSize,
} = data;
this.hotZoneItemArr = hotZoneItemArr;
this.isHasRect = isHasRect;
this.isHasPic = isHasPic;
this.isHasText = isHasText;
this.isHasAudio = isHasAudio;
this.isHasAnima = isHasAnima;
this.hotZoneFontObj = hotZoneFontObj;
this.defaultItemType = defaultItemType;
this.hotZoneImgSize = hotZoneImgSize;
this.bgItem = bgItem;
this.pasteData = '';
} catch (e) {
console.log('err: ', e);
this.nzMessageService.error('导入失败');
}
}
private updatePos() { private updatePos() {
this.hotZoneArr.forEach((item) => { this.hotZoneArr.forEach((item) => {
...@@ -1143,10 +1228,10 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { ...@@ -1143,10 +1228,10 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
if (item.lineDashFlag && this.checkClickTarget(item.arrow)) { if (item.lineDashFlag && this.checkClickTarget(item.arrow)) {
this.changeItemSize(item); this.changeItemSize(item);
// } else if (item.lineDashFlag && this.checkClickTarget(item.arrowTop)) { // } else if (item.lineDashFlag && this.checkClickTarget(item.arrowTop)) {
// this.changeItemTopSize(item); // this.changeItemTopSize(item);
// } else if (item.lineDashFlag && this.checkClickTarget(item.arrowRight)) { // } else if (item.lineDashFlag && this.checkClickTarget(item.arrowRight)) {
// this.changeItemRightSize(item); // this.changeItemRightSize(item);
} else { } else {
this.changeCurItem(item); this.changeCurItem(item);
} }
...@@ -1172,78 +1257,4 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { ...@@ -1172,78 +1257,4 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
}); });
} }
copyHotZoneData() {
const {bgItem, hotZoneItemArr} = this.getSendData();
const jsonData = {
bgItem,
hotZoneItemArr,
isHasRect: this.isHasRect,
isHasPic: this.isHasPic,
isHasText: this.isHasText,
isHasAudio: this.isHasAudio,
isHasAnima: this.isHasAnima,
hotZoneFontObj: this.hotZoneFontObj,
defaultItemType: this.defaultItemType,
hotZoneImgSize: this.hotZoneImgSize,
};
const oInput = document.createElement('input');
oInput.value = JSON.stringify(jsonData);
document.body.appendChild(oInput);
oInput.select(); // 选择对象
document.execCommand("Copy"); // 执行浏览器复制命令
document.body.removeChild(oInput);
this.nzMessageService.success('复制成功');
// alert('复制成功');
}
importData() {
if (!this.pasteData) {
return;
}
try {
const data = JSON.parse(this.pasteData);
console.log('data:', data);
const {
bgItem,
hotZoneItemArr,
isHasRect,
isHasPic,
isHasText,
isHasAudio,
isHasAnima,
hotZoneFontObj,
defaultItemType,
hotZoneImgSize,
} = data;
this.hotZoneItemArr = hotZoneItemArr;
this.isHasRect = isHasRect;
this.isHasPic = isHasPic;
this.isHasText = isHasText;
this.isHasAudio = isHasAudio;
this.isHasAnima = isHasAnima;
this.hotZoneFontObj = hotZoneFontObj;
this.defaultItemType = defaultItemType;
this.hotZoneImgSize = hotZoneImgSize;
this.bgItem = bgItem;
this.pasteData = '';
} catch (e) {
console.log('err: ', e);
this.nzMessageService.error('导入失败');
}
}
} }
...@@ -24,11 +24,18 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -24,11 +24,18 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
customTypeGroupArr = [ customTypeGroupArr = [
{ {
name: '底部资源', name: '基础资源',
rect: true,
anima: true,
pic: true, pic: true,
text: true, text: true,
audio: true audio: true,
}, },
// {
// name: '动画',
// rect: true,
// anima: true
// }
] ]
constructor(private appRef: ApplicationRef,private changeDetectorRef: ChangeDetectorRef, private message: NzMessageService) { constructor(private appRef: ApplicationRef,private changeDetectorRef: ChangeDetectorRef, private message: NzMessageService) {
...@@ -83,8 +90,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -83,8 +90,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
onImageUploadSuccess(e, key, it) { onImageUploadSuccess(e, key, it) {
it[key] = e.url; it[key] = e.url;
this.save(); this.save();
} }
/** /**
......
This diff is collapsed.
...@@ -88,7 +88,7 @@ cc.Class({ ...@@ -88,7 +88,7 @@ cc.Class({
getDefaultData() { getDefaultData() {
const dataJson = '{"bgItem":{"url":"http://staging-teach.cdn.ireadabc.com/3dd0eab42b3c17d7c28d3792f8a985b9.png","rect":{"x":188.28,"y":0,"width":780.44,"height":439}},"hotZoneItemArr":[{"id":"1597212942004","index":0,"pic_url":"http://staging-teach.cdn.ireadabc.com/8734cd9faae8092a38fff9398330222d.png","text":"aaa","audio_url":"http://staging-teach.cdn.ireadabc.com/f51e3fedc88aa69a99f6ef579f7de047.mp3","itemType":"pic","fontScale":0.90390625,"imgScale":0.375,"mapScale":0.90390625,"gIdx":"0","rect":{"x":4.13,"y":208.1,"width":75,"height":75}},{"id":"1597213039921","index":1,"pic_url":"http://staging-teach.cdn.ireadabc.com/18f2a029e02d679da8d42746daea228f.png","text":"bbb","audio_url":"http://staging-teach.cdn.ireadabc.com/fbe2f23b9eb191a9330f99800e0d54d5.mp3","itemType":"pic","fontScale":0.90390625,"imgScale":5.119657856821507,"mapScale":0.90390625,"gIdx":"0","rect":{"x":419.85,"y":124,"width":255.98,"height":255.98}}]}' const dataJson = ' {"bgItem":{"url":"http://staging-teach.cdn.ireadabc.com/3dd0eab42b3c17d7c28d3792f8a985b9.png","rect":{"x":205.28,"y":0,"width":844.44,"height":475}},"hotZoneItemArr":[{"id":"1597212942004","index":0,"pic_url":"http://staging-teach.cdn.ireadabc.com/8734cd9faae8092a38fff9398330222d.png","text":"aaa","audio_url":"http://staging-teach.cdn.ireadabc.com/f51e3fedc88aa69a99f6ef579f7de047.mp3","itemType":"rect","fontScale":0.98046875,"imgScale":0.375,"mapScale":0.98046875,"skeJsonData":{"url":"http://staging-teach.cdn.ireadabc.com/351545fd8fcc6d721cfc63afd243207d.json","name":"Ubbie_ske.json"},"texJsonData":{"url":"http://staging-teach.cdn.ireadabc.com/f4a5db504729d53c9e1f5b055312b6ef.json","name":"Ubbie_tex.json"},"texPngData":{"url":"http://staging-teach.cdn.ireadabc.com/2e56dbe3134380952a725eacceb86359.png","name":"Ubbie_tex.png"},"gIdx":"0","rect":{"x":13.36,"y":225.06,"width":65.36,"height":65.36}},{"id":"1597213039921","index":1,"pic_url":"http://staging-teach.cdn.ireadabc.com/18f2a029e02d679da8d42746daea228f.png","text":"bbb","audio_url":"http://staging-teach.cdn.ireadabc.com/fbe2f23b9eb191a9330f99800e0d54d5.mp3","itemType":"rect","fontScale":0.98046875,"imgScale":5.119657856821507,"mapScale":0.98046875,"skeJsonData":{"url":"http://staging-teach.cdn.ireadabc.com/ab66b9d704187f60fd8a61c981435b8e.json","name":"finish2_ske.json"},"texJsonData":{"url":"http://staging-teach.cdn.ireadabc.com/a4b74d67df855493b394c7df9625ba24.json","name":"finish2_tex.json"},"texPngData":{"url":"http://staging-teach.cdn.ireadabc.com/e485027385bab93761a5d1749166ba83.png","name":"finish2_tex.png"},"gIdx":"0","rect":{"x":636.11,"y":220,"width":123.31,"height":123.31}}]}'
const data1 = JSON.parse(dataJson); const data1 = JSON.parse(dataJson);
return data1; return data1;
...@@ -166,6 +166,14 @@ cc.Class({ ...@@ -166,6 +166,14 @@ cc.Class({
if (this.data.bgItem) { if (this.data.bgItem) {
this._imageResList.push({url: this.data.bgItem.url}); this._imageResList.push({url: this.data.bgItem.url});
} }
if (!this.data.hotZoneItemArr) {
return;
}
this.data.hotZoneItemArr.forEach((item) => {
if (item.gIdx == '0' && item.pic_url) {
this._imageResList.push({url: item.pic_url});
}
})
}, },
...@@ -183,13 +191,13 @@ cc.Class({ ...@@ -183,13 +191,13 @@ cc.Class({
if (!this.data.hotZoneItemArr) { if (!this.data.hotZoneItemArr) {
return; return;
} }
// this.data.hotZoneItemArr.forEach((item) => { this.data.hotZoneItemArr.forEach((item) => {
// if (item.gIdx == '0') { if (item.gIdx == '0' && item.skeJsonData) {
// this._animaResList.push({url: item.skeJsonData.url}); this._animaResList.push({url: item.skeJsonData.url});
// this._animaResList.push({url: item.texJsonData.url}); this._animaResList.push({url: item.texJsonData.url});
// this._animaResList.push({url: item.texPngData.url}); this._animaResList.push({url: item.texPngData.url});
// } }
// }) })
}, },
...@@ -382,8 +390,8 @@ cc.Class({ ...@@ -382,8 +390,8 @@ cc.Class({
const bgBottom = cc.find('Canvas/bgBottom'); const bgBottom = cc.find('Canvas/bgBottom');
const script = bgBottom.getComponent('bgBottom'); const script = bgBottom.getComponent('bgBottom');
const picArr = this.getBottomPicArr(); // const picArr = this.getBottomPicArr();
script.setItemData(picArr); script.setItemData(this.data.hotZoneItemArr);
}, },
getBottomPicArr() { getBottomPicArr() {
...@@ -561,11 +569,6 @@ cc.Class({ ...@@ -561,11 +569,6 @@ cc.Class({
const circleSmallNode = cc.find('Canvas/res/circle_bg_small') const circleSmallNode = cc.find('Canvas/res/circle_bg_small')
spr.spriteFrame = circleSmallNode.getComponent(cc.Sprite).spriteFrame; spr.spriteFrame = circleSmallNode.getComponent(cc.Sprite).spriteFrame;
// const ctx = rectNode.addComponent(cc.Graphics);
// // 红色矩形
// ctx.lineWidth = 4;
// ctx.strokeColor = cc.Color.BLACK;
// ctx.fillColor = cc.Color.WHITE.setA(100);
const scale = rate / this.hotZoneBg.scaleY; const scale = rate / this.hotZoneBg.scaleY;
...@@ -573,30 +576,103 @@ cc.Class({ ...@@ -573,30 +576,103 @@ cc.Class({
rectNode.height = circleSmallNode.height; rectNode.height = circleSmallNode.height;
rectNode.x = -this.hotZoneBg.width / 2 + (data.rect.x + data.rect.width / 2) * scale; rectNode.x = -this.hotZoneBg.width / 2 + (data.rect.x + data.rect.width / 2) * scale;
rectNode.y = this.hotZoneBg.height / 2 - data.rect.height / 2 * scale - data.rect.y * scale; rectNode.y = this.hotZoneBg.height / 2 - data.rect.height / 2 * scale - data.rect.y * scale;
// rectNode.width = data.rect.width * scale;
// rectNode.height = data.rect.height * scale;
// rectNode.x = -this.hotZoneBg.width / 2 + data.rect.x * scale;
// rectNode.y = this.hotZoneBg.height / 2 - data.rect.height * scale - data.rect.y * scale;
rectNode.anchorX = rectNode.anchorY = 0.5; rectNode.anchorX = rectNode.anchorY = 0.5;
if (data.audio_url) {
cc.assetManager.loadRemote(data.audio_url, (err, audioClip) => {
data.audioClip = audioClip;
});
}
this.hotzoneCircleArr.push(rectNode);
if (!data.skeJsonData) {
return;
}
// if (this.data.bgItem.isShowDebugLine) {
// ctx.rect(0, 0, rectNode.width, rectNode.height); const animaNode = new cc.Node();
// } animaNode.name = 'anima_' + data.index;
// ctx.stroke(); this.hotZoneBg.addChild(animaNode);
// ctx.fill();
data.animaNode = animaNode;
animaNode.active = false;
if (data.audio_url) { if (data.audio_url) {
cc.assetManager.loadRemote(data.audio_url, (err, audioClip) => { cc.assetManager.loadRemote(data.audio_url, (err, audioClip) => {
data.audioClip = audioClip; animaNode.audioClip = audioClip;
}); });
} }
const dragonDisplay = animaNode.addComponent(dragonBones.ArmatureDisplay);
const image = data.texPngData.url//"http://staging-teach.cdn.ireadabc.com/5a0c5af3e952acd0ac83a6e5c6f03ff1.png";
const ske = data.skeJsonData.url//"http://staging-teach.cdn.ireadabc.com/bd825dcceea298d1146be8067ae3d17f.json";
const atlas = data.texJsonData.url//"http://staging-teach.cdn.ireadabc.com/246f8991b729fa3e5a7f4802de828efa.json";
cc.loader.load(image, (error, texture) => {
this.hotzoneCircleArr.push(rectNode); cc.loader.load({url: atlas, type: 'txt'}, (error, atlasJson) => {
cc.loader.load({url: ske, type: 'txt'}, (error, dragonBonesJson) => {
const atlas = new dragonBones.DragonBonesAtlasAsset();
atlas.atlasJson = atlasJson;
atlas.texture = texture;
const asset = new dragonBones.DragonBonesAsset();
asset.dragonBonesJson = dragonBonesJson;
dragonDisplay.dragonAtlasAsset = atlas;
dragonDisplay.dragonAsset = asset;
let json = JSON.parse(asset.dragonBonesJson);
let armatures = json["armature"];
console.log('armatures: ', armatures);
let armatureNames = [];
for (let i = 0; i < armatures.length; i++) {
armatureNames.push(armatures[i].name);
}
// console.log('armatureNames: ', armatureNames);
if (armatureNames.length > 0) {
let defaultArmatureName = armatureNames[0];
dragonDisplay.armatureName = defaultArmatureName;
// let animationNames = dragonDisplay.getAnimationNames(defaultArmatureName);
let defaultArmature = armatures[0];
let animations = defaultArmature.animation;
let animationNames = [];
for (let i = 0; i < animations.length; i++) {
animationNames.push(animations[i].name);
}
// rectNode.addComponent(cc.Button);
animaNode.showAnima = () => {
animaNode.active = true;
// rectNode.on('click', () => {
if (rectNode.isClicked) {
// return;
}
rectNode.isClicked = true;
console.log('clicked');
if (animaNode.audioClip) {
cc.audioEngine.stopAll();
cc.audioEngine.play(animaNode.audioClip, false, 0.8);
}
if (animationNames.length > 0) {
dragonDisplay.playAnimation(animationNames[0], 1);
}
}
}
});
});
});
}, },
...@@ -831,13 +907,17 @@ cc.Class({ ...@@ -831,13 +907,17 @@ cc.Class({
this._curShowItem.active = false; this._curShowItem.active = false;
cc.tween(this._curShowItem.data.pic) // cc.tween(this._curShowItem.data.pic)
.to(3, {opacity: 255}, {easing: 'cubicOut'}) // .to(3, {opacity: 255}, {easing: 'cubicOut'})
.start(); // .start();
// if (circle.data.audioClip) {
// cc.audioEngine.stopAll();
// cc.audioEngine.play(circle.data.audioClip, false, 0.8);
// }
if (circle.data.audioClip) {
cc.audioEngine.stopAll(); if (circle.data.animaNode) {
cc.audioEngine.play(circle.data.audioClip, false, 0.8); circle.data.animaNode.showAnima();
} }
}, },
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -500,8 +500,8 @@ ...@@ -500,8 +500,8 @@
"relativePath": "model/primitives.fbx" "relativePath": "model/primitives.fbx"
}, },
"b3e401a5-91fc-4a28-87e3-0b4063ba359c": { "b3e401a5-91fc-4a28-87e3-0b4063ba359c": {
"asset": 1596533409542, "asset": 1597369245920,
"meta": 1596591444218, "meta": 1597398041690,
"relativePath": "mz_003" "relativePath": "mz_003"
}, },
"4622f21b-4a93-4460-bbc0-350907c5dded": { "4622f21b-4a93-4460-bbc0-350907c5dded": {
...@@ -515,13 +515,13 @@ ...@@ -515,13 +515,13 @@
"relativePath": "mz_003/scene" "relativePath": "mz_003/scene"
}, },
"c3f18614-c716-4f1f-899f-09f073ac6c43": { "c3f18614-c716-4f1f-899f-09f073ac6c43": {
"asset": 1597370954795, "asset": 1597804594032,
"meta": 1597370954802, "meta": 1597804594038,
"relativePath": "mz_003/scene/scene.fire" "relativePath": "mz_003/scene/scene.fire"
}, },
"b5c6439b-d99b-428f-9454-22f767de4a02": { "b5c6439b-d99b-428f-9454-22f767de4a02": {
"asset": 1597368895290, "asset": 1597370866565,
"meta": 1597368919166, "meta": 1597398041693,
"relativePath": "mz_003/script" "relativePath": "mz_003/script"
}, },
"3531d7ec-7dc9-49bd-be94-92677dc9b7c0": { "3531d7ec-7dc9-49bd-be94-92677dc9b7c0": {
...@@ -600,8 +600,8 @@ ...@@ -600,8 +600,8 @@
"relativePath": "mz_003/prefab/bgBottom.js" "relativePath": "mz_003/prefab/bgBottom.js"
}, },
"4fd428f3-cf22-467b-8ae4-09dfc1fa94c2": { "4fd428f3-cf22-467b-8ae4-09dfc1fa94c2": {
"asset": 1597369244594, "asset": 1597369249348,
"meta": 1597369244595, "meta": 1597398041692,
"relativePath": "mz_003/audio" "relativePath": "mz_003/audio"
}, },
"d36dd89b-a002-4dc6-8383-ea534341830e": { "d36dd89b-a002-4dc6-8383-ea534341830e": {
...@@ -610,8 +610,8 @@ ...@@ -610,8 +610,8 @@
"relativePath": "mz_003/audio/wrong.mp3" "relativePath": "mz_003/audio/wrong.mp3"
}, },
"335fe6b8-2b52-45a9-a9c9-cb3b54014251": { "335fe6b8-2b52-45a9-a9c9-cb3b54014251": {
"asset": 1597370866564, "asset": 1597804590766,
"meta": 1597370869301, "meta": 1597804593676,
"relativePath": "mz_003/script/scene.js" "relativePath": "mz_003/script/scene.js"
} }
} }
\ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"url": "app://editor/index.html", "url": "app://editor/index.html",
"windowType": "dockable", "windowType": "dockable",
"x": 0, "x": 0,
"y": 24, "y": 23,
"width": 1680, "width": 1680,
"height": 942, "height": 942,
"layout": { "layout": {
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"children": [ "children": [
"hierarchy" "hierarchy"
], ],
"height": 296.6875, "height": 297,
"type": "panel", "type": "panel",
"width": 306 "width": 306
}, },
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
"assets", "assets",
"cloud-function" "cloud-function"
], ],
"height": 561.3125, "height": 561,
"type": "panel", "type": "panel",
"width": 306 "width": 306
} }
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
"children": [ "children": [
"scene" "scene"
], ],
"height": 589.375, "height": 588.984375,
"type": "panel", "type": "panel",
"width": 701.984375 "width": 701.984375
}, },
...@@ -55,12 +55,12 @@ ...@@ -55,12 +55,12 @@
"children": [ "children": [
"node-library" "node-library"
], ],
"height": 589.375, "height": 588.984375,
"type": "panel", "type": "panel",
"width": 264 "width": 264
} }
], ],
"height": 589.375, "height": 588.984375,
"type": "dock-h", "type": "dock-h",
"width": 969 "width": 969
}, },
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
"timeline", "timeline",
"game-window" "game-window"
], ],
"height": 268.625, "height": 269,
"type": "panel", "type": "panel",
"width": 969 "width": 969
} }
...@@ -105,8 +105,7 @@ ...@@ -105,8 +105,7 @@
"inspector", "inspector",
"cocos-services" "cocos-services"
] ]
}, }
"window-1597372045932": {}
}, },
"panels": { "panels": {
"sprite-editor": { "sprite-editor": {
......
...@@ -2208,7 +2208,7 @@ ...@@ -2208,7 +2208,7 @@
"_clip": { "_clip": {
"__uuid__": "d36dd89b-a002-4dc6-8383-ea534341830e" "__uuid__": "d36dd89b-a002-4dc6-8383-ea534341830e"
}, },
"_volume": 0.6, "_volume": 0.4,
"_mute": false, "_mute": false,
"_loop": false, "_loop": false,
"playOnLoad": false, "playOnLoad": false,
......
{"version":"1.0.8","stats":{"/Users/lmz/Documents/workspace/git_project/cocos/cc_mz_003/play/temp/quick-scripts/src/__qc_index__.js":"2020-08-14T01:35:19.685Z","/Users/lmz/Documents/workspace/git_project/cocos/cc_mz_003/play/temp/quick-scripts/src/assets/mz_003/prefab/bgBottom.js":"2020-08-14T01:35:19.667Z","/Users/lmz/Documents/workspace/git_project/cocos/cc_mz_003/play/temp/quick-scripts/src/assets/mz_003/script/util.js":"2020-08-14T01:35:19.665Z","/Users/lmz/Documents/workspace/git_project/cocos/cc_mz_003/play/temp/quick-scripts/src/assets/mz_003/script/scene.js":"2020-08-14T01:35:19.664Z"}} {"version":"1.0.8","stats":{"/Users/lmz/Documents/workspace/git_project/cocos/cc_mz_003/play/temp/quick-scripts/src/__qc_index__.js":"2020-08-19T01:42:12.970Z","/Users/lmz/Documents/workspace/git_project/cocos/cc_mz_003/play/temp/quick-scripts/src/assets/mz_003/script/scene.js":"2020-08-19T01:42:12.949Z","/Users/lmz/Documents/workspace/git_project/cocos/cc_mz_003/play/temp/quick-scripts/src/assets/mz_003/prefab/bgBottom.js":"2020-08-19T01:42:12.953Z","/Users/lmz/Documents/workspace/git_project/cocos/cc_mz_003/play/temp/quick-scripts/src/assets/mz_003/script/util.js":"2020-08-19T01:42:12.951Z"}}
This source diff could not be displayed because it is too large. You can view the blob instead.
(function () { (function () {
var scripts = [{"deps":{"./assets/mz_003/script/util":2,"./assets/mz_003/prefab/bgBottom":1,"./assets/mz_003/script/scene":3},"path":"preview-scripts/__qc_index__.js"},{"deps":{"../script/util":2},"path":"preview-scripts/assets/mz_003/prefab/bgBottom.js"},{"deps":{},"path":"preview-scripts/assets/mz_003/script/util.js"},{"deps":{"./util":2},"path":"preview-scripts/assets/mz_003/script/scene.js"}]; var scripts = [{"deps":{"./assets/mz_003/script/scene":1,"./assets/mz_003/prefab/bgBottom":2,"./assets/mz_003/script/util":3},"path":"preview-scripts/__qc_index__.js"},{"deps":{"./util":3},"path":"preview-scripts/assets/mz_003/script/scene.js"},{"deps":{"../script/util":3},"path":"preview-scripts/assets/mz_003/prefab/bgBottom.js"},{"deps":{},"path":"preview-scripts/assets/mz_003/script/util.js"}];
var entries = ["preview-scripts/__qc_index__.js"]; var entries = ["preview-scripts/__qc_index__.js"];
var bundleScript = 'preview-scripts/__qc_bundle__.js'; var bundleScript = 'preview-scripts/__qc_bundle__.js';
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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