Fix: show score on timeover for typing exam
This commit is contained in:
@@ -101,10 +101,16 @@ Result.prototype.printRecord = function() {
|
||||
scoreText.anchor.set(0.5);
|
||||
|
||||
if(record < 0) {
|
||||
scoreText.text = "제한 시간 초과!";
|
||||
scoreText.style.fill = MainColor.INDIAN_RED_STRING;
|
||||
scoreText.style.fill = MainColor.THISTLE_STRING;
|
||||
|
||||
return;
|
||||
var timeoverText = this.makeDefaultText(game.world.width / 2, 225);
|
||||
timeoverText.text = "== 제한 시간 초과 (기록 저장 안됨) ==";
|
||||
timeoverText.fontSize = 50;
|
||||
timeoverText.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
|
||||
timeoverText.anchor.set(0.5);
|
||||
timeoverText.style.fill = MainColor.INDIAN_RED_STRING;
|
||||
|
||||
record = -1 * record;
|
||||
}
|
||||
|
||||
scoreText.text = RecordUtil.getRecordValueWithUnit(record, sessionStorageManager.getPlayingAppID());
|
||||
|
||||
@@ -364,7 +364,7 @@ TypingExamination.prototype.startGame = function() {
|
||||
|
||||
TypingExamination.prototype.timeOver = function() {
|
||||
var timeOverText = new TimeOverText();
|
||||
sessionStorageManager.setRecord(-1);
|
||||
sessionStorageManager.setRecord(-1 * this.typingRecordTotal);
|
||||
|
||||
this.stopAndGoResult();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user