Fix: input line position
This commit is contained in:
@@ -185,23 +185,24 @@ TypingExamination.prototype.makeTextContents = function() {
|
||||
var CONTENT_TEXT_WIDTH = 800;
|
||||
|
||||
var TYPING_CONTENT_X = 150;
|
||||
var TYPING_CONTENT_Y = 390;
|
||||
var TYPING_CONTENT_Y = 330;
|
||||
|
||||
var LINE_POS_X = 130;
|
||||
|
||||
var INPUT_TEXT_OFFSET_X = 10;
|
||||
var INPUT_TEXT_OFFSET_Y = 60;
|
||||
|
||||
var DONE_OFFSET_Y = 60;
|
||||
var PREVIEW_OFFSET_Y = 130;
|
||||
var DONE_OFFSET_Y = 0;
|
||||
var INPUT_OFFSET_Y = 120;
|
||||
var PREVIEW_OFFSET_Y = 190;
|
||||
|
||||
var TEXT_HEIGHT = 50;
|
||||
var BIG_FONT_SIZE = 28;
|
||||
|
||||
|
||||
// input content
|
||||
this.makeInputlineText(TYPING_CONTENT_X, TYPING_CONTENT_Y);
|
||||
this.textTypingLine = this.makeLineText(LINE_POS_X, TYPING_CONTENT_Y);
|
||||
this.makeInputlineText(TYPING_CONTENT_X, TYPING_CONTENT_Y + INPUT_OFFSET_Y);
|
||||
this.textTypingLine = this.makeLineText(LINE_POS_X, TYPING_CONTENT_Y + INPUT_OFFSET_Y);
|
||||
|
||||
|
||||
// typed done contents
|
||||
@@ -482,7 +483,7 @@ TypingExamination.prototype.showTypingExaminationContents = function() {
|
||||
this.textTypingContentPreview[i].text = this.typingExaminationContents[previewIndex];
|
||||
|
||||
var lineNumber = this.typingContentLength - this.typingIndex - 1 - i;
|
||||
this.textPreviewLineNumber[i].text = NumberUtil.numberWithCommas(lineNumber) + " ";
|
||||
this.textPreviewLineNumber[i].text = "#" + NumberUtil.numberWithCommas(lineNumber) + " ";
|
||||
} else {
|
||||
this.textTypingContentPreview[i].text = "";
|
||||
this.textPreviewLineNumber[i].text = "";
|
||||
@@ -670,8 +671,7 @@ TypingExamination.prototype.playNextContent = function() {
|
||||
|
||||
TypingExamination.prototype.showPlayingWordNumber = function() {
|
||||
var currentLine = this.typingIndex + 1;
|
||||
// this.textTypingLine.text = "#" + (this.typingContentLength - this.typingIndex);
|
||||
this.textTypingLine.text = this.typingContentLength - this.typingIndex + " ";
|
||||
this.textTypingLine.text = "#" + (this.typingContentLength - this.typingIndex) + " ";
|
||||
}
|
||||
|
||||
TypingExamination.prototype.startTyping = function() {
|
||||
|
||||
Reference in New Issue
Block a user