Commit 4273faa8 authored by limingzhe's avatar limingzhe

style: 调整句子背景块位置

parent 029d01a9
......@@ -65,7 +65,6 @@ export class PlayComponent implements OnInit, OnDestroy {
t1Bg: MySprite;
Btn
playButton
juzi_bg: ShapeRect;
guide_bg: ShapeRect;
guide: MySprite;
wordArr
......@@ -697,7 +696,7 @@ export class PlayComponent implements OnInit, OnDestroy {
letter_num.fontName = 'GOTHICB_1';
letter_num.fontColor = this.getColor('#ffffff');
letter_num.refreshSize();
letter_num.x = tempWidth + 5;
letter_num.x = tempWidth + 25;
rowHeight = letter_num.height;
letter_num.y = rows * rowHeight - rowHeight / 2;
rowGroup[rows - 1].letterLabels.push(letter_num);
......@@ -896,20 +895,10 @@ export class PlayComponent implements OnInit, OnDestroy {
const j = Math.min(sx2, sy2);
this.juziBg.setScaleXY(j);
this.juziBg.x = this.canvasWidth / 2;
this.juziBg.x = this.juziBg.width / 2 * this.juziBg.scaleX;
this.juziBg.y = this.canvasHeight / 2;
//句子方块
this.juzi_bg = new ShapeRect();
this.juzi_bg.fillColor = '#ffffff';
this.juzi_bg.setSize(1060, 570);
this.juzi_bg.x = -550;
this.juzi_bg.y = -289;
this.juziBg.addChild(this.juzi_bg);
//按钮
this.Btn = new MySprite();
this.pauseButton = new MySprite();
this.playButton = new MySprite();
......@@ -1020,14 +1009,6 @@ export class PlayComponent implements OnInit, OnDestroy {
}
/*
if(this.checkClickTarget(this.juzi_bg)){
//滚动区域
this.shapePosY = event.clientY;
}
*/
}
private pauseSentenceAudio() {
......
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