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

Adajst space

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