Commit 71aa4400 authored by limingzhe's avatar limingzhe

fix: debug

parent f968896b
......@@ -1171,6 +1171,18 @@ cc.Class({
},
showCurWordSound() {
if (!this.curData) {
return;
}
delayCall(0.8, () => {
if (this.isDestroy) {
return;
}
playAudioByUrl(this.curData.audio_url);
})
},
initScorePanel() {
......@@ -1262,6 +1274,8 @@ cc.Class({
this.curData = this.data.rows[this.curDataIndex];
this.refreshGroupLabel();
this.showCurWordSound();
},
initCurWord() {
......@@ -1470,10 +1484,16 @@ cc.Class({
const node = new cc.Node();
// const letterY = this.getRichText(text, 140, "#b4502e", 2, "#ffffff", true, true);
// const letterB = this.getRichText(text, 140, "#3a77ad", 2, "#ffffff", true, true);
const letterY = this.getLabelNew(text, 140, "#b4502e", 2, "#ffffff", true);
const letterB = this.getLabelNew(text, 140, "#3a77ad", 2, "#ffffff", true);
const letterY = this.getLabelNew(text, 140, "#b4502e", 4, "#ffffff", true);
const letterB = this.getLabelNew(text, 140, "#3a77ad", 4, "#ffffff", true);
letterB.cacheMode = cc.Label.CacheMode.CHAR
letterY.cacheMode = cc.Label.CacheMode.CHAR
letterY.active = false;
node.yNode = letterY;
node.bNode = letterB;
......
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