Commit 1caa7e64 authored by limingzhe's avatar limingzhe

fix: debug

parent 0194bd97
......@@ -947,7 +947,7 @@ cc.Class({
this.data.rows = randomSortByArr( rows );
this.score = 0;
this.curDataIndex = 0;
......@@ -1164,27 +1164,33 @@ cc.Class({
this.initBg();
this.initCurData();
this.initCurWord();
this.initScorePanel();
this.startTiming();
// // this.data.isDebug = false;
// this.initQuesArr();
// this.initCurQues();
// this.initBg();
// this.initBtn();
// this.initQuesCountLabel();
// this.initCurWordCard();
},
// this.initDebugLayer();
initScorePanel() {
const scorePanel = getSprNode("score_item");
scorePanel.x = this.canvas.width / 2 - scorePanel.width / 2 - 15;
scorePanel.y = this.canvas.height / 2 - scorePanel.height / 2 - 15;
this.canvas.addChild( scorePanel );
// scorePanel.active = false;
// c05610
const scoreLabelNode = this.getRichText("0", 35, "#ffffff", 2, "#e6a519");
scoreLabelNode.x = 20;
scoreLabelNode.y = 5;
scorePanel.addChild(scoreLabelNode);
this.scoreLabel = scoreLabelNode.getComponent(cc.RichText);
},
// this.showInsertCard();
addScore() {
this.score ++;
this.refreshRichText(this.scoreLabel.node, this.score);
},
......@@ -9785,6 +9791,9 @@ cc.Class({
},
enterNextGroup() {
this.addScore();
this.curDataIndex ++;
this.initCurData();
if (!this.curData) {
......
{
"ver": "2.3.5",
"uuid": "89b2a23b-2242-4770-a839-4c47d724a02d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 231,
"height": 83,
"platformSettings": {},
"subMetas": {
"score_item": {
"ver": "1.0.4",
"uuid": "2a6c5fe8-6fb7-4060-9730-fa6aa21a5b36",
"rawTextureUuid": "89b2a23b-2242-4770-a839-4c47d724a02d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 231,
"height": 83,
"rawWidth": 231,
"rawHeight": 83,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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