Commit 212b4834 authored by limingzhe's avatar limingzhe

fix: debug

parent 4648d327
...@@ -300,7 +300,7 @@ cc.Class({ ...@@ -300,7 +300,7 @@ cc.Class({
this.centerItemArr = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '1'); this.centerItemArr = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '1');
this.benchmark1Data = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '3')[0]; this.benchmark1Data = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '3')[0];
this.benchmark2Data = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '4')[0]; this.benchmark2Data = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '4')[0];
this.firstItemData = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '5')[0]; // this.firstItemData = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '5')[0];
// this.topItemData = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '0')[0]; // this.topItemData = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '0')[0];
...@@ -810,9 +810,9 @@ cc.Class({ ...@@ -810,9 +810,9 @@ cc.Class({
const checkLetter = firstItemData; const checkLetter = firstItemData;
// console.log('baseY: ', baseY); console.log('baseY: ', baseY);
// console.log('checkLetter.unitY: ', checkLetter.unitY); console.log('checkLetter.unitY: ', checkLetter.unitY);
// console.log('unitH: ', unitH); console.log('unitH: ', unitH);
let x = baseX + checkLetter.unitX * unitW; let x = baseX + checkLetter.unitX * unitW;
...@@ -822,12 +822,13 @@ cc.Class({ ...@@ -822,12 +822,13 @@ cc.Class({
const r = Math.min(w, h) / 2; const r = Math.min(w, h) / 2;
// console.log(' baseX: ', baseX); console.log(' baseX: ', baseX);
// console.log(' checkLetter.unitX: ', checkLetter.unitX); console.log(' checkLetter.unitX: ', checkLetter.unitX);
// console.log(' unitW: ', unitW); console.log(' unitW: ', unitW);
// console.log(' x: ', x); console.log(' x: ', x);
// console.log(' y: ', y); console.log(' y: ', y);
// console.log(' r: ', r); console.log(' r: ', r);
console.log(' checkLetter: ', checkLetter);
const dot = this.getColorDot(x, -y, r, r, 'red'); const dot = this.getColorDot(x, -y, r, r, 'red');
this.debugDrawLayer.addChild(dot, 5); this.debugDrawLayer.addChild(dot, 5);
...@@ -862,7 +863,7 @@ cc.Class({ ...@@ -862,7 +863,7 @@ cc.Class({
} }
const colorRect = this.getColorRect(rect, "purple"); const colorRect = this.getColorRect(rect, "purple");
colorRect.labelText = content; colorRect.labelText = content;
// this.debugDrawLayer.addChild(colorRect); this.debugDrawLayer.addChild(colorRect);
// console.log('colorRect: ', colorRect); // console.log('colorRect: ', colorRect);
...@@ -870,7 +871,7 @@ cc.Class({ ...@@ -870,7 +871,7 @@ cc.Class({
label.x = colorRect.x + colorRect.width / 2 * colorRect.scaleX; label.x = colorRect.x + colorRect.width / 2 * colorRect.scaleX;
label.y = colorRect.y - colorRect.height / 2 //* colorRect.scaleY; label.y = colorRect.y - colorRect.height / 2 //* colorRect.scaleY;
label.color = cc.Color.GREEN; label.color = cc.Color.GREEN;
// this.debugDrawLayer.addChild(label); this.debugDrawLayer.addChild(label);
......
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