Commit 6fc8f78d authored by 李维's avatar 李维

Adajst space

parent eec9e5f9
...@@ -289,7 +289,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -289,7 +289,7 @@ export class PlayComponent implements OnInit, OnDestroy {
} }
initTopMaskLine() { initTopMaskLine() {
let maskTop = this.g_cartoon.createCartoonElementShapeRect("top-mask", this.g_canvasWidth, 105 * this.g_mapScale, "#f0f5f8") // let maskTop = this.g_cartoon.createCartoonElementShapeRect("top-mask", this.g_canvasWidth, 80 * this.g_mapScale, "#f0f5f8") //
this.render(maskTop.ref, zIndexMap.topMaskLine) this.render(maskTop.ref, zIndexMap.topMaskLine)
} }
...@@ -481,14 +481,14 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -481,14 +481,14 @@ export class PlayComponent implements OnInit, OnDestroy {
} }
initScrollPannel() { initScrollPannel() {
let pannel = this.g_cartoon.createCartoonElementShapeRect("scroll-pannel", this.g_canvasWidth - 180 * this.g_mapScale, this.g_canvasHeight - 78 * this.g_mapScale, "#f0f5f8") let pannel = this.g_cartoon.createCartoonElementShapeRect("scroll-pannel", this.g_canvasWidth - 180 * this.g_mapScale, this.g_canvasHeight - 52 * this.g_mapScale, "#f0f5f8") // f0f5f8
pannel.ref.y = 78 * this.g_mapScale pannel.ref.y = 52 * this.g_mapScale
this.render(pannel.ref, 10); this.render(pannel.ref, 10);
pannel.lastInserType = "Q" pannel.lastInserType = "Q"
pannel.windowHeight = this.g_canvasHeight - 78 * this.g_mapScale pannel.windowHeight = this.g_canvasHeight - 52 * this.g_mapScale
pannel.currentY = 0; pannel.currentY = 0;
pannel.currentQuestionIndex = -1; pannel.currentQuestionIndex = -1;
pannel.topY = 78 * this.g_mapScale pannel.topY = 52 * this.g_mapScale
pannel.insertQuestion = (text, nextQuestion = false) => { pannel.insertQuestion = (text, nextQuestion = false) => {
if(nextQuestion) { if(nextQuestion) {
pannel.currentQuestionIndex++; pannel.currentQuestionIndex++;
...@@ -502,7 +502,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -502,7 +502,7 @@ export class PlayComponent implements OnInit, OnDestroy {
} else { } else {
textString = `${text}`; textString = `${text}`;
} }
pannel.currentY += 28 * this.g_mapScale; pannel.currentY += 18 * this.g_mapScale;
} else { } else {
textString = text; textString = text;
pannel.currentY -= 52 * this.g_mapScale; pannel.currentY -= 52 * this.g_mapScale;
...@@ -531,9 +531,9 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -531,9 +531,9 @@ export class PlayComponent implements OnInit, OnDestroy {
let bb = label.ref.getBoundingBox(); let bb = label.ref.getBoundingBox();
label.ref.x = 42 * this.g_mapScale * 2 + bb.width / 2; label.ref.x = 42 * this.g_mapScale * 2 + bb.width / 2;
if(pannel.lastInserType == "Q") { if(pannel.lastInserType == "Q") {
pannel.currentY -= 28 * this.g_mapScale pannel.currentY -= 32 * this.g_mapScale
line.mask.ref.y -= 28 * this.g_mapScale; line.mask.ref.y -= 32 * this.g_mapScale;
line.target.ref.y -= 28 * this.g_mapScale; line.target.ref.y -= 32 * this.g_mapScale;
} }
label.ref.y = pannel.currentY + 32 * this.g_mapScale / 2; label.ref.y = pannel.currentY + 32 * this.g_mapScale / 2;
......
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