Commit c768cc4d authored by yu's avatar yu

7.22调整

parent ea61f494
{
"ver": "1.1.2",
"uuid": "155aceeb-a442-4f9e-9846-2f474325f280",
"uuid": "72069ea3-dcce-40f7-ae89-d5e1722dce91",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "1.1.2",
"uuid": "12e6fb2c-9078-4092-a388-123fe7de7d64",
"uuid": "a238192f-9188-4d6c-ba65-b650fe36096b",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "2.0.1",
"uuid": "6aac7f12-2d92-4435-9aff-4b7e1b0476fc",
"uuid": "fa2998d1-dedf-45f7-8975-b2b77d6818d2",
"downloadMode": 0,
"duration": 0.130612,
"subMetas": {}
......
{
"ver": "1.1.2",
"uuid": "175b749a-e575-4ba4-8932-a26dae39ff32",
"uuid": "730fc69f-ffed-4f17-a83c-bd9f4b5e8c0c",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "1.0.1",
"uuid": "6891a5a4-b997-453d-b0e7-727f461ccf43",
"uuid": "5f99c4db-f149-48c1-ae2c-d4056dcb31cc",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "d822931c-8455-4fa5-8d4c-89142c798cd1",
"uuid": "a7ca118a-8e52-451c-b042-681b415ea44c",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "793468a0-6b16-4d66-8f62-a32eac270996",
"uuid": "7deeaafa-690d-43ad-8588-fad5cbfcbb19",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"录音动画_tex": {
"ver": "1.0.4",
"uuid": "d820098f-39ec-4e1e-ba32-e139a4d47202",
"rawTextureUuid": "793468a0-6b16-4d66-8f62-a32eac270996",
"uuid": "2fb92d58-5a76-41b3-886b-daf6d314825f",
"rawTextureUuid": "7deeaafa-690d-43ad-8588-fad5cbfcbb19",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "1.1.2",
"uuid": "26823f59-1f99-4c7b-b61e-5853f72bcffe",
"uuid": "8ba7a92e-7746-4c3b-878b-0372a331e426",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "1.1.0",
"uuid": "33fab194-fec2-47ed-896c-442e9036771c",
"uuid": "b25384bc-5f0a-43c8-8a7c-333608e3222e",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "b8c8ab36-f250-4636-a99a-106d57aad97d",
"uuid": "daeb4978-4e42-41eb-a9e3-1726aed21fd5",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "6a98d911-2cf7-470a-9bc2-cd7bfe3a0b63",
"uuid": "599132e6-dc92-45b6-9a30-31725d20f25e",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "19e2d2dc-7339-4fdd-ae26-3a2908062f09",
"uuid": "d5c73033-f11f-42a8-8918-6371891af09e",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
......@@ -32,12 +32,16 @@ export default class Item extends cc.Component {
myrecord_play: cc.Node = null;
@property(cc.Node)
low: cc.Node = null;
richText: cc.Node = null;
// @property(cc.Node)
// low: cc.Node = null;
// 录制中
_recording = false;
// 已录音
_recorded = false;
private _str = "";
protected start(): void {
// this.init('One day,her grandma got sick!');
......@@ -47,41 +51,44 @@ export default class Item extends cc.Component {
* 初始化
* @param str 字符串
*/
init(str: string, content) {
this.label.setString(str, 580);//this.node.width 632
init(str: string) {
this._str = str;
// this.label.setString(str, 580);//this.node.width 632
this.richText.getComponent(cc.RichText).string = `<color=#ffffff>` + str + `</c>`
this.reset();
this.scheduleOnce(() => {
this.node.height = this.label.getRows() * 48; // 更新节点高度
let c = this.node.width - this.label.getLastStringLenght();
console.log(str);
// console.log("c: " + c);
if (this.node.width - this.label.getLastStringLenght() >= 118) {//170-48
this.record.getComponent(cc.Widget).enabled = false;
this.record_click.getComponent(cc.Widget).enabled = false;
this.myrecord.getComponent(cc.Widget).enabled = false;
this.myrecord_play.getComponent(cc.Widget).enabled = false;
this.record.y = 18;
this.record_click.y = 18;
this.myrecord.y = 18;
this.myrecord_play.y = 18;
this.record.x = this.label.getLastStringLenght() + 32;
this.record_click.x = this.label.getLastStringLenght() + 32;
this.myrecord.x = this.label.getLastStringLenght() + 32 + 86;
this.myrecord_play.x = this.label.getLastStringLenght() + 32 + 86;
}
this.stop();
content && content.getComponent(cc.Layout).updateLayout();
});
// this.scheduleOnce(() => {
// this.node.height = this.label.getRows() * 48; // 更新节点高度
// let lineHeight = this.richText.height / this.richText.getComponent(cc.RichText).lineHeight;
this.node.height = this.richText.height;
// let c = this.node.width - this.label.getLastStringLenght();
console.log(str);
// console.log("c: " + c);
if (this.node.width - this.label.getLastStringLenght() >= 118) {//170-48
this.record.getComponent(cc.Widget).enabled = false;
this.record_click.getComponent(cc.Widget).enabled = false;
this.myrecord.getComponent(cc.Widget).enabled = false;
this.myrecord_play.getComponent(cc.Widget).enabled = false;
this.record.y = 27;
this.record_click.y = 27;
this.myrecord.y = 27;
this.myrecord_play.y = 27;
// this.record.x = this.label.getLastStringLenght() + 32;
// this.record_click.x = this.label.getLastStringLenght() + 32;
// this.myrecord.x = this.label.getLastStringLenght() + 32 + 86;
// this.myrecord_play.x = this.label.getLastStringLenght() + 32 + 86;
}
this.stop();
// }, 0.1);
}
/**
* 重置所有按钮
*/
reset() {
this.tip.active = false;
// this.tip.active = false;
this.tip.opacity = 0;
this.record.active = true;
this.record_click.active = false;
......@@ -138,6 +145,35 @@ export default class Item extends cc.Component {
this.myrecord.active = true;
this.myrecord_play.active = false;
}
private intervalId;
private stopPlay = false;
public playAction() {
let count = 0;
if (this.intervalId) clearInterval(this.intervalId);
let icon_myrecord1 = cc.find("icon_myrecord1", this.myrecord_play);
let icon_myrecord2 = cc.find("icon_myrecord2", this.myrecord_play);
let icon_myrecord3 = cc.find("icon_myrecord3", this.myrecord_play);
this.intervalId = setInterval(() => {
count++;
// icon_myrecord1.active = count % 3 == 2;
icon_myrecord2.active = count % 3 == 0;
icon_myrecord3.active = count % 3 == 1;
if (this.stopPlay) {
// btn_laba1.active = false;
// btn_laba2.active = false;
clearInterval(this.intervalId);
}
}, 150)
}
public stopAction() {
if (this.intervalId) clearInterval(this.intervalId);
let icon_myrecord1 = cc.find("icon_myrecord1", this.myrecord_play);
let icon_myrecord2 = cc.find("icon_myrecord2", this.myrecord_play);
let icon_myrecord3 = cc.find("icon_myrecord3", this.myrecord_play);
icon_myrecord1.active = true;
icon_myrecord2.active = true;
icon_myrecord3.active = true;
}
getRecorded() {
return this._recorded;
......@@ -147,18 +183,26 @@ export default class Item extends cc.Component {
* 正在播放中
*/
playing() {
this.tip.active = true;
// this.tip.active = true;
this.tip.opacity = 255;
// this.label.node.color = cc.color(255, 96, 0);
this.label.node.color = cc.color(251, 255, 177);
this.richText.getComponent(cc.RichText).string = `<color=#FBFFB1>` + this._str + `</c>`
this.hideLow();
}
/**
* 播放完成
*/
stop() {
this.tip.active = false;
stop(noRecord = true) {
// this.tip.active = false;
this.tip.opacity = 0;
this.label.node.color = cc.color(255, 255, 255);
if (noRecord) {
this.richText.getComponent(cc.RichText).string = `<color=#ffffff>` + this._str + `</c>`;
} else {
this.richText.getComponent(cc.RichText).string = this.changStr;
}
this.showLow();
}
......@@ -177,28 +221,16 @@ export default class Item extends cc.Component {
clearLow() {
this.label.node.removeAllChildren();
}
cleanText() {
this.changStr = "";
this.richText.getComponent(cc.RichText).string = "";
}
public changStr = '';
changColor(str, isChange = false) {
setLow(str: string, index: number = 1) {
let ps = this.label.getTargetStringPos(str);
if (index > ps.length) {
return;
}
if (isChange) this.changStr += `<color=#ff8f8f>` + str + `</color>`;
else this.changStr += `<color=#ffffff>` + str + `</color>`;
let p = ps[index - 1];
let low = cc.instantiate(this.low);
low.parent = this.label.node;
low.active = true;
low.width = p.z;
low.name = "low";
low.getComponentInChildren(cc.Label).string = str;
low.setPosition(p.y, (p.x - 1) * 48);
}
cleanLow() {
this.label.node.children.forEach(ch => {
if (ch.name == "low") {
ch.parent = null;
ch.destroy();
}
});
this.richText.getComponent(cc.RichText).string = this.changStr;
}
}
{
"ver": "1.0.8",
"uuid": "83e78328-6683-49c1-831d-1848d87e856f",
"uuid": "48c6c0a5-a7bd-471e-9750-7a9f225fa198",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"ver": "1.2.9",
"uuid": "44caeca0-1257-4610-a742-274f264654d6",
"uuid": "d37e42e4-c587-4bd5-89d7-bcd968a66c6f",
"asyncLoadAssets": false,
"autoReleaseAssets": false,
"subMetas": {}
......
......@@ -19,6 +19,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
@property(cc.Node)
item: cc.Node = null;
@property(cc.Node)
down_item: cc.Node = null;
@property(cc.Node)
content: cc.Node = null;
......@@ -51,6 +54,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 倒计时
_countdown = 30;
_changStr = [];
// 当前
_curIndex = -1;
......@@ -90,25 +94,28 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.guide = true;
this._records.length = 0;
this._changStr.length = 0;
this._results.length = 0;
this.data.questions.forEach((element, idx) => {
this._records.push([]);
this._results.push([]);
element.options.forEach(op => {
this._changStr.push([]);
element.options.forEach((op, id) => {
op.id = id;
this._records[idx].push(null);
this._results[idx].push(null);
this._changStr[idx].push(null);
});
});
}
private initDown() {
let g_down = cc.find("g_down", this.node);
let content = cc.find("sc_down/view/content", g_down);
let bg_tip1 = cc.find("bg_tip1", g_down);
let bg_tip2 = cc.find("bg_tip2", g_down);
bg_tip1.active = this.guide && this.roundIdx == 0;
bg_tip2.active = this.guide && this.roundIdx == 0;
g_down.active = true;
this.initScrollView(content);
this.showDownItem();
}
private initMiddle() {
let g_middle = cc.find("g_middle", this.node);
......@@ -128,42 +135,55 @@ export default class SceneComponent extends MyCocosSceneComponent {
for (let i = 0; i < data.options.length; i++) {
let quest = data.options[i];
let item = cc.instantiate(this.item);
item.active = true;
item.name = '' + i;
item.parent = content;
// item.x = -316;
this.initItem(item, quest);
if (this._changStr[this.roundIdx][i] != null) item.getComponent(Item).changStr = this._changStr[this.roundIdx][i];
// const element = this.content.children[index];
item.getComponent(Item).init(quest.text, content);
// 播放当前句子
item.off('click');
item.on('click', () => {
this.onItem(item, quest, i);
});
}
content.getComponent(cc.Layout).updateLayout();
}
private initItem(item, quest) {
item.getComponent(Item).init(quest.text);
item.active = true;
item.data = quest;
// 播放当前句子
item.off('click');
item.on('click', () => {
this.onItem(item, quest, quest.id);
});
item.getComponent(Item).recorded();
item.getComponent(Item).recorded();
let record = cc.find('btn_record', item);
record.off('click');
record.on('click', () => {
if (this._recording) return;
this.onItemRecord(item, quest, i);
});
let record = cc.find('btn_record', item);
record.off('click');
record.on('click', () => {
if (this._recording) return;
this.onItemRecord(item, quest, quest.id);
});
item.getComponent(Item).hideRecord();
item.getComponent(Item).hideRecord();
let myrecord = cc.find('btn_myrecord', item);
let myrecord_play = cc.find('btn_myrecord_play', item);
myrecord.off('click');
myrecord_play.off('click');
myrecord.on('click', () => {
this.onMyRecord(item, i);
});
myrecord_play.on('click', () => {
this.onMyRecordPlay(item);
});
}
content.getComponent(cc.Layout).updateLayout();
let myrecord = cc.find('btn_myrecord', item);
let myrecord_play = cc.find('btn_myrecord_play', item);
myrecord.off('click');
myrecord_play.off('click');
myrecord.on('click', () => {
this.onMyRecord(item, quest.id);
});
myrecord_play.on('click', () => {
this.onMyRecordPlay(item);
});
}
private showDownItem() {
let data = this.data.questions[this.roundIdx].options[this.clickIdx];
this.initItem(this.down_item, data);
let id = this.down_item.data.id;
if (this._changStr[this.roundIdx][id] != null) this.down_item.getComponent(Item).changStr = this._changStr[this.roundIdx][id];
this.resetText();
this.resetRecord();
}
private clickIdx;
private onItem(item, quest, idx) {
......@@ -177,7 +197,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
item.getComponent(Item).playing();
this.playAudioByUrl(quest.audio, () => {
item.getComponent(Item).stop();
item.getComponent(Item).stop(this._records[this.roundIdx][idx] === null);
});
}
private onItemRecord(item, quest, idx) {
......@@ -208,6 +228,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.cleanLaba();
cc.audioEngine.stopAll();
item.getComponent(Item).stopRecord();
item.getComponent(Item).stopAction();
}
private onMyRecord(item, idx) {
......@@ -216,6 +237,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.resetRecord();
cc.audioEngine.stopAll();
item.getComponent(Item).playRecord();
item.getComponent(Item).playAction();
//
if (this._records[this.roundIdx][idx] != null) {
this.playAudioByUrl(this._records[this.roundIdx][idx], () => {
......@@ -243,20 +265,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
g_middle.active = false;
setTimeout(() => {
g_down.opacity = 255;
this.scroolTo();
// this.scroolTo();
}, 30);
this.showDownItem();
}
private getRecordIdx() {
let g_down = cc.find("g_down", this.node);
let g_middle = cc.find("g_middle", this.node);
let idx = -1;
if (g_down.active) {
let content = cc.find("sc_down/view/content", g_down);
content.children.forEach((item, index) => {
if (item.getComponent(Item).getRecording()) {
idx = index;
}
})
let data = this.down_item.data;
idx = data.id;
} else if (g_middle.active) {
let content = cc.find("sc_down/view/content", g_middle);
content.children.forEach((item, index) => {
......@@ -285,13 +305,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
btn_laba1.active = count % 2 == 0;
btn_laba2.active = count % 2 == 1;
if (stop && count % 2 == 0) {
btn_laba1.active = false;
// btn_laba1.active = false;
// btn_laba2.active = false;
clearInterval(this.intervalId);
}
}, 150)
this.playAudioByUrl(this.data.questions[this.roundIdx].audio, () => {
btn_laba1.active = false;
btn_laba2.active = false;
stop = true;
btn_laba1.active = true;
btn_laba2.active = true;
});
}
private cleanLaba() {
......@@ -299,17 +321,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
let btn_play = cc.find("btn_play", this.node);
let btn_laba1 = btn_play.getChildByName("btn_laba1");
let btn_laba2 = btn_play.getChildByName("btn_laba2");
btn_laba1.active = false;
btn_laba2.active = false;
}
private scroolTo() {
let g_down = cc.find("g_down", this.node);
let sc_down = cc.find("sc_down", g_down);
let content = cc.find("sc_down/view/content", g_down);
let ch = content.children[this.clickIdx];
let pos = cc.v2(0, -ch.y - (ch.height / 2));
if (ch.height > 48) pos = cc.v2(0, -ch.y - 15);
sc_down.getComponent(cc.ScrollView).setContentPosition(pos);
btn_laba1.active = true;
btn_laba2.active = true;
}
initView() {
this.initDown();
......@@ -469,7 +482,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// }
this.log('idx:' + idx);
let text = self.data.questions[this.roundIdx].options[idx].text;
let text = self.data.questions[self.roundIdx].options[idx].text;
this.log("text: " + text);
if (window['courseware']) {
if (idx !== -1) {
......@@ -518,11 +531,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (idx !== -1) {
// let it = this.content.children[idx].getComponent(Item);
let g_down = cc.find("g_down", this.node);
let g_middle = cc.find("g_middle", this.node);
let donw_content = cc.find("sc_down/view/content", g_down);
let middle_content = cc.find("sc_down/view/content", g_middle);
this.recordEnd(donw_content, res, idx);
this.recordDownEnd(res, idx);
this.recordEnd(middle_content, res, idx);
}
......@@ -552,17 +563,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
});
} else {
if (idx !== -1) {
let content = null;
let g_down = cc.find("g_down", this.node);
let g_middle = cc.find("g_middle", this.node);
let res = { "audioUrl": "https://staging-teach.cdn.ireadabc.com/bea0ba87bcf8bc09815f34b4790ffac9.mp3", "eof": 1, "file": "/storage/emulated/0/Android/data/com.example.oxford/cache/shengtong/gradeVoice.mp3", "result": { "duration": "2.670", "fluency": 86, "integrity": 50, "kernel_version": "3.7.1", "overall": 28, "pronunciation": 28, "resource_version": "2.3.11", "rhythm": 28, "sentences": [{ "beginIndex": 0, "details": [{ "charType": 0, "end": 0, "overall": 56, "prominence": 0, "start": 0, "word": "Good" }, { "charType": 0, "end": 0, "overall": 0, "prominence": 0, "start": 0, "word": "morning" }], "end": 0, "endIndex": 0, "overall": 28, "sentence": "Good morning", "start": 0 }], "speed": 28 }, "tokenId": "62d7a2343327934258000009" }
let donw_content = cc.find("sc_down/view/content", g_down);
let middle_content = cc.find("sc_down/view/content", g_middle);
this.recordEnd(donw_content, res, idx);
this.recordDownEnd(res, idx);
this.recordEnd(middle_content, res, idx);
content.children[idx].getComponent(Item).recorded();
this.down_item.getComponent(Item).recorded();
middle_content.children[idx].getComponent(Item).recorded();
}
// 模拟测试
this._records[this.roundIdx][idx] = 'http://staging-teach.cdn.ireadabc.com/92ddbc65e9af775f7a8450a5bef1a732.mp3';
......@@ -570,7 +579,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.resetRecord();
});
this.btn_arrow.on(cc.Node.EventType.TOUCH_END, this.onArrow, this);
// this.btn_last.on(cc.Node.EventType.TOUCH_END, this.onLast, this);
this.btn_last.on(cc.Node.EventType.TOUCH_END, this.onLast, this);
this.setPagBg();
this.refreshArrow();
}
......@@ -584,7 +593,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
arr = arr.concat(e.details);
}
it.cleanLow();
it.cleanText();
let arrOne = [];
for (let index = 0; index < arr.length; index++) {
let e = arr[index];
......@@ -602,12 +611,56 @@ export default class SceneComponent extends MyCocosSceneComponent {
for (let k in result) {
if (k === e.word) {
let w = index == 0 ? e.word : " " + e.word;
if (e.overall < 40) {
it.setLow(e.word, result[k]);
it.changColor(w, true);
} else {
it.changColor(w, false);
}
}
}
}
this._changStr[this.roundIdx][idx] = it.getComponent(Item).changStr;
}
private recordDownEnd(res, idx) {
let it = this.down_item.getComponent(Item);
if (idx != this.down_item.data.id) return;
it.recorded();
let arr = [];
for (let index = 0; index < res.result.sentences.length; index++) {
let e = res.result.sentences[index];
arr = arr.concat(e.details);
}
it.cleanText();
let arrOne = [];
for (let index = 0; index < arr.length; index++) {
let e = arr[index];
arrOne.push({ key: e.word, value: 1 });
let result = {};
arrOne.forEach((item) => {
if (result[item.key]) {
result[item.key] += item.value;
} else {
result[item.key] = item.value;
}
});
for (let k in result) {
if (k === e.word) {
let w = index == 0 ? e.word : " " + e.word;
if (e.overall < 40) {
it.changColor(w, true);
} else {
it.changColor(w, false);
}
}
}
}
this._changStr[this.roundIdx][idx] = it.getComponent(Item).changStr;
}
private roundIdx;
private setPagBg() {
......@@ -618,25 +671,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc.audioEngine.stopAll();
this.resetText();
this.resetRecord();
let data = this.data.questions[this.roundIdx].pageImage;
this.getSpriteFrimeByUrl(data, (sp) => {//+ '?x-oss-process=image/resize,m_fill,h_520,w_560'
// this.getSpriteFrimeByUrl(this.data.pageImage, (sp) => {
cc.find('Canvas/bg_img/img').getComponent(cc.Sprite).spriteFrame = sp;
cc.find('Canvas/bg_img/img').width = 1218;
cc.find('Canvas/bg_img/img').height = 656;
cc.find('Canvas/bg_img/img').width = 1209;
cc.find('Canvas/bg_img/img').height = 649;
cc.find('Canvas/bg_img/img').scale = 1;// Math.max(520 / cc.find('Canvas/bg_img/img').width, 560 / cc.find('Canvas/bg_img/img').height);
});
}
private refreshArrow() {
// this.btn_last.active = this.roundIdx > 0;
this.btn_last.active = this.roundIdx > 0;
this.btn_arrow.active = this.roundIdx < this.data.questions.length - 1;
}
private arrowTouch = false;
private onArrow() {
if (this.arrowTouch) return;
this.arrowTouch = true;
// this.arrowTouch = true;
this.roundIdx++;
this.clickIdx = 0;
// let pag = cc.find("PageView", this.node);
......@@ -646,31 +698,35 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.initDown();
this.initMiddle();
this.refreshArrow();
this.resetText();
this.resetRecord();
}
private onLast() {
if (this.arrowTouch) return;
this.arrowTouch = true;
// this.arrowTouch = true;
this.roundIdx--;
this.clickIdx = 0;
// let pag = cc.find("PageView", this.node);
// let len = pag.getComponent(cc.PageView).getPages().length;
// if (len <= 1) return;
// pag.getComponent(cc.PageView).enabled = true;
// pag.getComponent(cc.PageView).scrollToPage(this.roundIdx, 0.1);
this.setPagBg();
this.initDown();
this.initMiddle();
this.refreshArrow();
this.resetText();
this.resetRecord();
}
/**
* 重置文字
*/
resetText() {
let down = cc.find("g_down/sc_down/view/content", this.node);
down.children.forEach((item) => {
item.getComponent(Item).stop();
})
this.down_item.getComponent(Item).stop(this._records[this.roundIdx][this.down_item.data.id] === null);
let middle = cc.find("g_middle/sc_down/view/content", this.node);
middle.children.forEach((item) => {
item.getComponent(Item).stop();
middle.children.forEach((item, index) => {
item.getComponent(Item).stop(this._records[this.roundIdx][index] === null);
})
}
......@@ -678,25 +734,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
* 重置录制音频
*/
resetRecord() {
// let content = cc.find("view/content", this.pagContent.children[this.roundIdx]);
// for (let index = 0; index < content.childrenCount; index++) {
// const element = content.children[index];
// if (this._records[this.roundIdx][index] === null) {
// element.getComponent(Item).hideRecord();
// } else {
// console.log(`===> ${index}`);
// element.getComponent(Item).stopRecord();
// }
// }
let down = cc.find("g_down/sc_down/view/content", this.node);
for (let index = 0; index < down.childrenCount; index++) {
const element = down.children[index];
if (this._records[this.roundIdx][index] === null) {
element.getComponent(Item).hideRecord();
} else {
console.log(`===> ${index}`);
element.getComponent(Item).stopRecord();
}
let data = this.down_item.data;
this.down_item.getComponent(Item).hideRecord();
for (let i = 0; i < this._records[this.roundIdx].length; i++) {
let item = this._records[this.roundIdx][i];
if (item && data.id == i) this.down_item.getComponent(Item).stopRecord();
}
let middle = cc.find("g_middle/sc_down/view/content", this.node);
for (let index = 0; index < middle.childrenCount; index++) {
......
{
"ver": "1.0.8",
"uuid": "12291789-8ecc-49b9-a411-ea209785e97d",
"uuid": "b3c58fab-d429-49d8-a3bd-73171d5b87d9",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.0.8",
"uuid": "8fd86b00-25d1-4ee2-a910-3d0ce5b59874",
"uuid": "de4e51ef-ba18-420b-90c6-7348b35cb2cc",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.0.8",
"uuid": "dd1a96df-21a6-4f3c-8e6d-5855575f876a",
"uuid": "cd90fb5a-b205-4445-a68a-8b8523df7b1c",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.1.2",
"uuid": "dc0d7299-1373-426b-a762-7cf81b49cbdf",
"uuid": "89f91128-3c99-44b0-9864-21b0362b3acd",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "1.0.8",
"uuid": "4241d6f1-fe19-4b2d-9a1a-2eef80cb4b1b",
"uuid": "9bf28d0b-045e-48d7-a487-2d78f4f3c926",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
......@@ -20,7 +20,7 @@ export const defaultData = {
"audio": 'http://staging-teach.cdn.ireadabc.com/17edcaecd09a72a64a77480673cdc232.mp3',
}, {
"duration": 10,
"text": 'Hello, how old are you yo yo you yo yo',
"text": 'Hello, how old are you yo yo you ',
"audio": 'http://staging-teach.cdn.ireadabc.com/17edcaecd09a72a64a77480673cdc232.mp3',
}, {
"duration": 11,
......
{
"ver": "1.0.8",
"uuid": "3b09c3c9-5df0-4aae-a69b-05089110f435",
"uuid": "6bae5ebf-5c95-4383-9e57-d4912db3bc2b",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.0.8",
"uuid": "de75b888-a220-403b-b84a-2539168e93ae",
"uuid": "ae961202-1553-4229-9e85-e94486300544",
"isPlugin": true,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.0.8",
"uuid": "b20aad85-94aa-41e2-99d8-b1e4dd4bc411",
"uuid": "87b44ee3-2e3b-4ae8-8043-480a9be02675",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.1.2",
"uuid": "567db09e-371a-48ff-96ef-d32ac637a4ac",
"uuid": "21250ec1-49fa-4dc1-8308-ddfb9cf7ec5f",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "2.3.5",
"uuid": "5c9e7fb3-ce64-4c2d-8b01-512fba7baaca",
"uuid": "9897705e-05a6-4605-8a9f-a81cbba79f40",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"1orange": {
"ver": "1.0.4",
"uuid": "2daa8a3e-5463-40d5-9cd2-13d496b900fe",
"rawTextureUuid": "5c9e7fb3-ce64-4c2d-8b01-512fba7baaca",
"uuid": "8b31473f-5069-4c55-9acf-4edc23d74512",
"rawTextureUuid": "9897705e-05a6-4605-8a9f-a81cbba79f40",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "32ff207f-dc5e-4516-ab2a-231829e47fd7",
"uuid": "848d066c-d3d5-4579-a342-ea1c0e971aaa",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg": {
"ver": "1.0.4",
"uuid": "fa9a1724-a8fc-480f-94de-693fd7f2c54a",
"rawTextureUuid": "32ff207f-dc5e-4516-ab2a-231829e47fd7",
"uuid": "5c8c06ca-7c34-49d7-b90c-5666e0ccb006",
"rawTextureUuid": "848d066c-d3d5-4579-a342-ea1c0e971aaa",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "98644435-37f3-419a-a023-d1bb1c4476de",
"uuid": "7b78636b-09e6-4452-8869-34b69e19a8e3",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_left": {
"ver": "1.0.4",
"uuid": "84cc030b-a691-44c7-8769-a3902731564f",
"rawTextureUuid": "98644435-37f3-419a-a023-d1bb1c4476de",
"uuid": "6884f667-034d-4289-97ab-c89d070d7ab7",
"rawTextureUuid": "7b78636b-09e6-4452-8869-34b69e19a8e3",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "343a381a-ff67-4bf1-9aad-b2b9ec20cc19",
"uuid": "1a810b10-6c78-44e5-adb3-ffeadf3b1864",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_right": {
"ver": "1.0.4",
"uuid": "58b021ab-33dd-4cb6-a4a9-d7be0a5fc7de",
"rawTextureUuid": "343a381a-ff67-4bf1-9aad-b2b9ec20cc19",
"uuid": "58843014-facc-4025-826d-a666a48af708",
"rawTextureUuid": "1a810b10-6c78-44e5-adb3-ffeadf3b1864",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "649b40ee-8623-41f1-be39-f7df55eb6305",
"uuid": "dfbfb1c1-f2b5-4048-8fd8-10836ccb80eb",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"icon": {
"ver": "1.0.4",
"uuid": "3c430c3f-6360-420d-b158-6c32a562b86f",
"rawTextureUuid": "649b40ee-8623-41f1-be39-f7df55eb6305",
"uuid": "ea41afda-7945-4d0b-93cb-5a2c8fba834f",
"rawTextureUuid": "dfbfb1c1-f2b5-4048-8fd8-10836ccb80eb",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "1.1.2",
"uuid": "3fb1dbd0-d4d3-49fb-954d-24104fff566a",
"uuid": "8f52048b-ddc0-4693-971e-a75389f6af2c",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "2.3.5",
"uuid": "ccbbca93-763e-499f-a5ee-6962abe3d733",
"uuid": "36f9308d-da82-48ef-ab98-498e4a4a6928",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg": {
"ver": "1.0.4",
"uuid": "6dfb81c1-9789-4321-a604-78781697c0f6",
"rawTextureUuid": "ccbbca93-763e-499f-a5ee-6962abe3d733",
"uuid": "0ebc001f-8c5f-496a-8d20-bd6f61c5812c",
"rawTextureUuid": "36f9308d-da82-48ef-ab98-498e4a4a6928",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "ab572ca8-e85c-4fa6-bf26-6e893b3de089",
"uuid": "34d41d20-7099-4f4f-b6e0-fd04747f4cb5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_bg": {
"ver": "1.0.4",
"uuid": "f6c70899-9a27-4782-b3e0-452c7c066415",
"rawTextureUuid": "ab572ca8-e85c-4fa6-bf26-6e893b3de089",
"uuid": "d3c303f7-0585-4513-81e1-66c13640406c",
"rawTextureUuid": "34d41d20-7099-4f4f-b6e0-fd04747f4cb5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "d7307d6d-46e8-40cf-ac3d-32d097a21fab",
"uuid": "c87c4fa3-c54f-4e74-9223-5792a3380c70",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_countdown": {
"ver": "1.0.4",
"uuid": "032f7e4d-e478-4700-9cbd-e6e7ac5d4b58",
"rawTextureUuid": "d7307d6d-46e8-40cf-ac3d-32d097a21fab",
"uuid": "8308718e-ce9e-4bbd-abce-9601d0c806e7",
"rawTextureUuid": "c87c4fa3-c54f-4e74-9223-5792a3380c70",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "4bd4f6af-a82d-4ab2-bc91-6bc31aa64941",
"uuid": "5fa62911-e890-47bc-9cb0-bf83d7d095bd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_di": {
"ver": "1.0.4",
"uuid": "15a6a14c-e154-4289-a87e-1108dd9a0694",
"rawTextureUuid": "4bd4f6af-a82d-4ab2-bc91-6bc31aa64941",
"uuid": "2f0923c3-d719-4f1a-95c9-65214bc0fd82",
"rawTextureUuid": "5fa62911-e890-47bc-9cb0-bf83d7d095bd",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "dcbec851-8f00-47bc-a4ec-dbd0ed8e2bbc",
"uuid": "0c9a535c-ce6f-435f-bb63-99c051c58b6b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_heitou": {
"ver": "1.0.4",
"uuid": "784bba3c-61b5-4317-93df-467d434f4be5",
"rawTextureUuid": "dcbec851-8f00-47bc-a4ec-dbd0ed8e2bbc",
"uuid": "e10bb079-d507-42d1-a279-88489087e6dc",
"rawTextureUuid": "0c9a535c-ce6f-435f-bb63-99c051c58b6b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "8234103a-9481-4904-9072-2dcb71b92300",
"uuid": "b2691bf1-b194-48f8-9a15-42b23a884aa5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_tip": {
"ver": "1.0.4",
"uuid": "5be2975e-7352-4fd7-b25b-8abbc5be4749",
"rawTextureUuid": "8234103a-9481-4904-9072-2dcb71b92300",
"uuid": "e9de2d61-5332-4387-82d7-9bbf3aa9aaaa",
"rawTextureUuid": "b2691bf1-b194-48f8-9a15-42b23a884aa5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "cf892f9b-a86b-439a-bf9f-8980449c69ea",
"uuid": "7641a7f0-1900-4a67-83f7-dcf77ec220a6",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_tip1": {
"ver": "1.0.4",
"uuid": "22b20553-3952-44fd-94bc-c033f2015646",
"rawTextureUuid": "cf892f9b-a86b-439a-bf9f-8980449c69ea",
"uuid": "21b8dbae-d694-47f6-a387-76f532560050",
"rawTextureUuid": "7641a7f0-1900-4a67-83f7-dcf77ec220a6",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "157a2f41-9dc6-4cbc-8e29-ba58ab2f47d6",
"uuid": "ed14bb83-ad71-418e-820f-21ae871612ad",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_tip2": {
"ver": "1.0.4",
"uuid": "6592c4b1-4922-4629-84b2-ff2fd0bbaeb1",
"rawTextureUuid": "157a2f41-9dc6-4cbc-8e29-ba58ab2f47d6",
"uuid": "2b85847f-dcfc-4cae-8ec4-8e3b8c5dfb37",
"rawTextureUuid": "ed14bb83-ad71-418e-820f-21ae871612ad",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "6b64a1cc-5460-4c41-a44e-3342c09f23cd",
"uuid": "4f1ca1d6-19a1-419b-8cff-dc86e22b68ca",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_title": {
"ver": "1.0.4",
"uuid": "f4e5685e-f9c6-4053-b2d1-e469bc1a66a6",
"rawTextureUuid": "6b64a1cc-5460-4c41-a44e-3342c09f23cd",
"uuid": "790725c2-2993-417f-ba74-19340ef84428",
"rawTextureUuid": "4f1ca1d6-19a1-419b-8cff-dc86e22b68ca",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "af4ffde1-20c7-4691-8252-32ee524ce9fc",
"uuid": "92a4e254-0600-474f-9eba-3c4011d9ea33",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_arrow": {
"ver": "1.0.4",
"uuid": "7ac4b74a-833e-46c9-8e90-1815364fd09f",
"rawTextureUuid": "af4ffde1-20c7-4691-8252-32ee524ce9fc",
"uuid": "b19c40df-172b-4022-bdd1-bf926de4ab86",
"rawTextureUuid": "92a4e254-0600-474f-9eba-3c4011d9ea33",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "1.0.1",
"uuid": "2cc4c00e-9ff0-4ed9-9dd2-5b764b1e9bbb",
"uuid": "c1207763-be6a-401d-b11e-cf941a8a5c8e",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "50e042fb-9acb-4a7a-bd8b-ffb1ac84d443",
"uuid": "ec99ebb3-1f3d-49b6-82a6-bd0767e9bd05",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_down": {
"ver": "1.0.4",
"uuid": "716bdb9e-7831-457b-9ec2-269242ad2d0a",
"rawTextureUuid": "50e042fb-9acb-4a7a-bd8b-ffb1ac84d443",
"uuid": "1d6e052a-a3c6-437f-8e7c-7c53b4608569",
"rawTextureUuid": "ec99ebb3-1f3d-49b6-82a6-bd0767e9bd05",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "114794ff-7d9e-4fb5-a357-4d17464a6eec",
"uuid": "ab00ed01-0116-45a1-a94d-7910acf037fb",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_laba": {
"ver": "1.0.4",
"uuid": "e8075f5c-af60-422c-b2b8-3035d24f7041",
"rawTextureUuid": "114794ff-7d9e-4fb5-a357-4d17464a6eec",
"uuid": "fa7ea6cd-0011-4e6f-bc0e-33ea29418f81",
"rawTextureUuid": "ab00ed01-0116-45a1-a94d-7910acf037fb",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "a5d71f01-0109-4af2-8723-0df855af2315",
"uuid": "7ec45396-46a9-4feb-a652-1191caa70d2e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_laba1": {
"ver": "1.0.4",
"uuid": "e3802a39-4c58-4447-945b-651d5713b46b",
"rawTextureUuid": "a5d71f01-0109-4af2-8723-0df855af2315",
"uuid": "44414ca0-b44f-4fad-8b60-87e917142e39",
"rawTextureUuid": "7ec45396-46a9-4feb-a652-1191caa70d2e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "573bc19c-4762-4624-8775-6cf89c8660d8",
"uuid": "050f3bf5-f7b6-4736-a889-a166f92be900",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_laba2": {
"ver": "1.0.4",
"uuid": "3e9bc6f3-1fcf-4bca-93ae-b31203b630a7",
"rawTextureUuid": "573bc19c-4762-4624-8775-6cf89c8660d8",
"uuid": "e0fc8bdc-e6b8-4a12-961b-1f8ade8a8006",
"rawTextureUuid": "050f3bf5-f7b6-4736-a889-a166f92be900",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "3e5d0fda-e2cf-41a8-8671-a7b93e421cd9",
"uuid": "c2789d42-7f8b-44c2-89b7-172f14595ca1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_last": {
"ver": "1.0.4",
"uuid": "b3ccbb31-12f0-421e-ac8b-e2c43d4613b6",
"rawTextureUuid": "3e5d0fda-e2cf-41a8-8671-a7b93e421cd9",
"uuid": "359dfd3a-a2d8-49c8-9421-8dba541e8b96",
"rawTextureUuid": "c2789d42-7f8b-44c2-89b7-172f14595ca1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "c4d6b589-6766-4bae-b2ce-31a4469799e7",
"uuid": "44b2c6b2-c176-418f-8fa4-e94a2ac3c2b1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_myrecord-play": {
"ver": "1.0.4",
"uuid": "2b33e029-1a56-49a6-aed8-85faa3303164",
"rawTextureUuid": "c4d6b589-6766-4bae-b2ce-31a4469799e7",
"uuid": "5431baf7-b752-41c3-bbf0-ba12854ff00f",
"rawTextureUuid": "44b2c6b2-c176-418f-8fa4-e94a2ac3c2b1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "1a218c15-e424-4163-8bf0-eb1eee3645cd",
"uuid": "14162cef-6670-4152-a934-9a90d3600380",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_myrecord": {
"ver": "1.0.4",
"uuid": "dafa31bd-d7db-4ea4-85d3-aa0767412bd4",
"rawTextureUuid": "1a218c15-e424-4163-8bf0-eb1eee3645cd",
"uuid": "6ac049dd-58a7-4532-baae-8e189c65e79d",
"rawTextureUuid": "14162cef-6670-4152-a934-9a90d3600380",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "eed64364-761e-406b-a9d5-3d285044aeec",
"uuid": "4c08e84e-774f-4b0b-a7ea-3fe98236eb68",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_myrecord_play": {
"ver": "1.0.4",
"uuid": "0d55a581-d90f-46ca-aeed-7bfee7ffdf64",
"rawTextureUuid": "eed64364-761e-406b-a9d5-3d285044aeec",
"uuid": "0cd526c7-b3d0-42b9-8259-4ca0d52133a2",
"rawTextureUuid": "4c08e84e-774f-4b0b-a7ea-3fe98236eb68",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "751a707e-2623-406d-806b-c077b31b7df5",
"uuid": "772b038a-5ace-47b0-b3be-02d2818a8ec0",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_play": {
"ver": "1.0.4",
"uuid": "93b1d1f4-c6bb-4f1d-b810-fdb50eef0c1c",
"rawTextureUuid": "751a707e-2623-406d-806b-c077b31b7df5",
"uuid": "9c07118b-cefe-468e-b462-976baff784d0",
"rawTextureUuid": "772b038a-5ace-47b0-b3be-02d2818a8ec0",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "8eef0b85-f6e2-4d88-8324-1b5b47af56a7",
"uuid": "83e19004-655a-4852-816d-ff8fc519ee6a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_record-click": {
"ver": "1.0.4",
"uuid": "22006342-0eda-4ebe-a788-5fc4eae3c41b",
"rawTextureUuid": "8eef0b85-f6e2-4d88-8324-1b5b47af56a7",
"uuid": "db23570f-5bcb-4e31-bbbd-40a8a7bd0d13",
"rawTextureUuid": "83e19004-655a-4852-816d-ff8fc519ee6a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "05f2fd3f-061c-4ced-b08c-2a9ffe151cbe",
"uuid": "259513a4-edec-4e5b-86f0-e4827cc97081",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_record-start": {
"ver": "1.0.4",
"uuid": "db3e5b8d-9c12-457b-9539-8a91a82cee01",
"rawTextureUuid": "05f2fd3f-061c-4ced-b08c-2a9ffe151cbe",
"uuid": "f0d04b29-6ffe-4b7e-a1b0-512a509902b8",
"rawTextureUuid": "259513a4-edec-4e5b-86f0-e4827cc97081",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "21557701-c9ad-4839-959f-c2f4f8b99dc5",
"uuid": "b2b32faf-4f8f-4f86-8f17-b2e16cfaaefc",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_record-stop": {
"ver": "1.0.4",
"uuid": "952f9e47-8b80-450b-b4fd-938022116b01",
"rawTextureUuid": "21557701-c9ad-4839-959f-c2f4f8b99dc5",
"uuid": "a7dc3f28-90c6-482e-be8f-a31987feec80",
"rawTextureUuid": "b2b32faf-4f8f-4f86-8f17-b2e16cfaaefc",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "0db729fd-0ed6-4998-b4a0-88e2a205c0bd",
"uuid": "8506e390-3f30-4e85-84a0-7ddc487b4cd9",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_record": {
"ver": "1.0.4",
"uuid": "2d832852-c0e9-45ee-9c9e-aa0a7ac52aad",
"rawTextureUuid": "0db729fd-0ed6-4998-b4a0-88e2a205c0bd",
"uuid": "9cf7d1f4-2796-41b4-8867-2e3b46f45aee",
"rawTextureUuid": "8506e390-3f30-4e85-84a0-7ddc487b4cd9",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "cfd6d9ef-5154-4d2f-a610-93df4cb55bbf",
"uuid": "13bc6985-37e7-4361-87cb-6c2ce9defbc2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_record_click": {
"ver": "1.0.4",
"uuid": "b2ca29b0-880d-41f8-ae07-bdc97af69475",
"rawTextureUuid": "cfd6d9ef-5154-4d2f-a610-93df4cb55bbf",
"uuid": "256c50d0-6b94-45f1-99ae-109b5ca7d080",
"rawTextureUuid": "13bc6985-37e7-4361-87cb-6c2ce9defbc2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "49594abc-bb77-4773-bc5f-2b4c3f18253f",
"uuid": "1e737d1b-af4e-4255-93b0-ea0f30fbe92b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_record_start": {
"ver": "1.0.4",
"uuid": "185bdbbd-dd1f-4b9e-bf91-b4fca95254a6",
"rawTextureUuid": "49594abc-bb77-4773-bc5f-2b4c3f18253f",
"uuid": "6f34a1fe-7d8f-40ba-9b64-e617c1c6dcfb",
"rawTextureUuid": "1e737d1b-af4e-4255-93b0-ea0f30fbe92b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "3a6932c6-561f-4823-8729-fe6ddb5a2bbd",
"uuid": "c4b21a0b-0859-474a-9332-be2bcf12c84a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_record_stop": {
"ver": "1.0.4",
"uuid": "9a25336d-0187-4fe8-8a58-1717003e7a26",
"rawTextureUuid": "3a6932c6-561f-4823-8729-fe6ddb5a2bbd",
"uuid": "286e01de-d2be-48da-a342-103da5fdb371",
"rawTextureUuid": "c4b21a0b-0859-474a-9332-be2bcf12c84a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "c1a040c2-9323-4492-aac3-3701f65ff7c5",
"uuid": "94deed08-b3a6-46ca-ad03-632e381907f5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_restart": {
"ver": "1.0.4",
"uuid": "08062a3d-4e61-40f2-9c12-65096c1d20fc",
"rawTextureUuid": "c1a040c2-9323-4492-aac3-3701f65ff7c5",
"uuid": "0a57e422-2d5d-45bf-b7ac-54da466da634",
"rawTextureUuid": "94deed08-b3a6-46ca-ad03-632e381907f5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "71c4b2b7-fd71-4470-898a-c040c004806e",
"uuid": "42e1d2d3-1c9a-4717-aac8-ca27e851ab3f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_start": {
"ver": "1.0.4",
"uuid": "3ec61158-6c6f-4c8f-82b7-aaa35dfd3d87",
"rawTextureUuid": "71c4b2b7-fd71-4470-898a-c040c004806e",
"uuid": "0abee29f-13ef-4f3e-950e-30aa09dd4802",
"rawTextureUuid": "42e1d2d3-1c9a-4717-aac8-ca27e851ab3f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "b3bf52c2-ed8d-4b19-a814-ebeebdf41cfb",
"uuid": "6b2a67ec-5034-433c-8673-63ddb4f9cf2c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_stop": {
"ver": "1.0.4",
"uuid": "1e5717c3-f216-494d-80f6-7ef28f40d0cd",
"rawTextureUuid": "b3bf52c2-ed8d-4b19-a814-ebeebdf41cfb",
"uuid": "3b93286b-d9cd-4e68-b218-10d750cc4625",
"rawTextureUuid": "6b2a67ec-5034-433c-8673-63ddb4f9cf2c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "2fa2414b-6059-4fcd-8acb-3074cb4e2a21",
"uuid": "26afaa57-520e-4486-8f88-18ebb62a61be",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_up": {
"ver": "1.0.4",
"uuid": "8b2630e2-3a3d-4981-b150-18d62f0902f3",
"rawTextureUuid": "2fa2414b-6059-4fcd-8acb-3074cb4e2a21",
"uuid": "e916776e-33ad-44ee-82f0-6868b3a45d49",
"rawTextureUuid": "26afaa57-520e-4486-8f88-18ebb62a61be",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "5a0fddd6-a21c-443d-8715-ad8aac79a445",
"uuid": "d496fee7-2dac-4b00-87ba-6617ecbc9eff",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"icon_myrecord1": {
"ver": "1.0.4",
"uuid": "32fdbccc-88f3-4ccf-ac65-1d7181ad1c38",
"rawTextureUuid": "5a0fddd6-a21c-443d-8715-ad8aac79a445",
"uuid": "cf81ef7c-4145-4292-8226-2f42fca80555",
"rawTextureUuid": "d496fee7-2dac-4b00-87ba-6617ecbc9eff",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "faaa0dbe-97f3-487f-be83-de354cbf2b6f",
"uuid": "7a02a025-4175-4562-b254-93f1cece234e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"icon_myrecord2": {
"ver": "1.0.4",
"uuid": "cb1f2003-9617-4499-b76e-b01727a1f579",
"rawTextureUuid": "faaa0dbe-97f3-487f-be83-de354cbf2b6f",
"uuid": "e2844930-e4be-406e-b4b7-bbf8cb1b4d8a",
"rawTextureUuid": "7a02a025-4175-4562-b254-93f1cece234e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "e55288fb-41e6-4903-811a-f4bcd0e6eddd",
"uuid": "151bc8f3-fb06-4159-8707-f0decf2d580f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"icon_myrecord3": {
"ver": "1.0.4",
"uuid": "a998f368-cd6d-44cb-85ed-cda0d95f4eb8",
"rawTextureUuid": "e55288fb-41e6-4903-811a-f4bcd0e6eddd",
"uuid": "58f6a964-4460-4fce-b69e-be3cbfaef280",
"rawTextureUuid": "151bc8f3-fb06-4159-8707-f0decf2d580f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "d2eff8b8-1093-4208-8516-4b29a3f13ba8",
"uuid": "2badf860-7427-4f1e-8ec8-76f60f49848e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"icon_tip": {
"ver": "1.0.4",
"uuid": "a3504f7c-d514-47fd-b8b4-24141b424369",
"rawTextureUuid": "d2eff8b8-1093-4208-8516-4b29a3f13ba8",
"uuid": "f7fe7055-e64c-49de-9f5e-331d00d5e931",
"rawTextureUuid": "2badf860-7427-4f1e-8ec8-76f60f49848e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
......@@ -4588,6 +4588,7 @@ declare namespace cc {
/** !#en Returns a normalized vector representing the forward direction (Z axis) of the node in world space.
!#zh 获取节点正前方(z 轴)面对的方向,返回值为世界坐标系下的归一化向量 */
forward: Vec3;
data: any;
/**
@param name name
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