Fix: typing app button - record text color
This commit is contained in:
@@ -85,13 +85,14 @@ TypingAppButton.prototype.setTypingRecordText = function(record) {
|
|||||||
var noDataAlpha = 0.3;
|
var noDataAlpha = 0.3;
|
||||||
if(typeof(record) === "undefined") {
|
if(typeof(record) === "undefined") {
|
||||||
this.animal.sprite.alpha = noDataAlpha;
|
this.animal.sprite.alpha = noDataAlpha;
|
||||||
this.typingRecordText.style.fill = MainColor.CHOCO_STRING;
|
this.typingRecordText.style.fill = MainColor.GRAY_STRING;
|
||||||
this.typingRecordText.text = "기록 없음";
|
this.typingRecordText.text = "기록 없음";
|
||||||
} else if(record === 0) {
|
} else if(record === 0) {
|
||||||
this.animal.sprite.alpha = noDataAlpha;
|
this.animal.sprite.alpha = noDataAlpha;
|
||||||
this.typingRecordText.style.fill = MainColor.CHOCO_STRING;
|
this.typingRecordText.style.fill = MainColor.GRAY_STRING;
|
||||||
this.typingRecordText.text = "기록 없음";
|
this.typingRecordText.text = "기록 없음";
|
||||||
} else {
|
} else {
|
||||||
|
this.typingRecordText.style.fill = MainColor.WHITE_SMOKE_STRING;
|
||||||
var recordWithUnit = RecordUtil.getRecordValueWithUnit(record, typingAppID);
|
var recordWithUnit = RecordUtil.getRecordValueWithUnit(record, typingAppID);
|
||||||
this.typingRecordText.text = recordWithUnit;
|
this.typingRecordText.text = recordWithUnit;
|
||||||
}
|
}
|
||||||
@@ -264,7 +265,7 @@ TypingAppButton.HEIGHT = 80;
|
|||||||
|
|
||||||
TypingAppButton.KEYBOARD_WIDTH = 100;
|
TypingAppButton.KEYBOARD_WIDTH = 100;
|
||||||
|
|
||||||
TypingAppButton.ANIMAL_OFFSET_Y = -6;
|
TypingAppButton.ANIMAL_OFFSET_Y = -7;
|
||||||
|
|
||||||
TypingAppButton.STROKE_COLOR_OUT_HEX = MainColor.LIGHT_CHOCO_HEX;
|
TypingAppButton.STROKE_COLOR_OUT_HEX = MainColor.LIGHT_CHOCO_HEX;
|
||||||
TypingAppButton.STROKE_COLOR_OVER_HEX = MainColor.LIGHT_CHOCO_HEX;
|
TypingAppButton.STROKE_COLOR_OVER_HEX = MainColor.LIGHT_CHOCO_HEX;
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ TypingExamButton.prototype.makeTypingRecordText = function(x, y) {
|
|||||||
typingRecordText.anchor.set(0.5, 0.5);
|
typingRecordText.anchor.set(0.5, 0.5);
|
||||||
typingRecordText.font = this.setting.font;
|
typingRecordText.font = this.setting.font;
|
||||||
typingRecordText.fontSize = 13;
|
typingRecordText.fontSize = 13;
|
||||||
typingRecordText.style.fill = MainColor.LIGHTER_CHOCO_STRING;
|
typingRecordText.style.fill = MainColor.WHITE_STRING; // MainColor.LIGHTER_CHOCO_STRING;
|
||||||
typingRecordText.lineSpacing = ButtonSetting.DEFAULT_TEXT_LINE_SPACING_PX;
|
typingRecordText.lineSpacing = ButtonSetting.DEFAULT_TEXT_LINE_SPACING_PX;
|
||||||
|
|
||||||
return typingRecordText;
|
return typingRecordText;
|
||||||
@@ -102,13 +102,14 @@ TypingExamButton.prototype.setTypingRecordText = function(record) {
|
|||||||
var noDataAlpha = 0.3;
|
var noDataAlpha = 0.3;
|
||||||
if(typeof(record) === "undefined") {
|
if(typeof(record) === "undefined") {
|
||||||
this.animal.sprite.alpha = noDataAlpha;
|
this.animal.sprite.alpha = noDataAlpha;
|
||||||
this.typingRecordText.style.fill = MainColor.CHOCO_STRING;
|
this.typingRecordText.style.fill = MainColor.GRAY_STRING;
|
||||||
this.typingRecordText.text = "기록 없음";
|
this.typingRecordText.text = "기록 없음";
|
||||||
} else if(record === 0) {
|
} else if(record === 0) {
|
||||||
this.animal.sprite.alpha = noDataAlpha;
|
this.animal.sprite.alpha = noDataAlpha;
|
||||||
this.typingRecordText.style.fill = MainColor.CHOCO_STRING;
|
this.typingRecordText.style.fill = MainColor.GRAY_STRING;
|
||||||
this.typingRecordText.text = "기록 없음";
|
this.typingRecordText.text = "기록 없음";
|
||||||
} else {
|
} else {
|
||||||
|
this.typingRecordText.style.fill = MainColor.WHITE_SMOKE_STRING;
|
||||||
var recordWithUnit = RecordUtil.getRecordValueWithUnit(record, typingExamAppID);
|
var recordWithUnit = RecordUtil.getRecordValueWithUnit(record, typingExamAppID);
|
||||||
this.typingRecordText.text = recordWithUnit;
|
this.typingRecordText.text = recordWithUnit;
|
||||||
}
|
}
|
||||||
@@ -222,7 +223,7 @@ TypingExamButton.loadResources = function() {
|
|||||||
TypingExamButton.WIDTH = 400;
|
TypingExamButton.WIDTH = 400;
|
||||||
TypingExamButton.HEIGHT = 80;
|
TypingExamButton.HEIGHT = 80;
|
||||||
|
|
||||||
TypingExamButton.ANIMAL_OFFSET_Y = -6;
|
TypingExamButton.ANIMAL_OFFSET_Y = -7;
|
||||||
|
|
||||||
TypingExamButton.STROKE_COLOR_OUT_HEX = MainColor.LIGHT_CHOCO_HEX;
|
TypingExamButton.STROKE_COLOR_OUT_HEX = MainColor.LIGHT_CHOCO_HEX;
|
||||||
TypingExamButton.STROKE_COLOR_OVER_HEX = MainColor.LIGHT_CHOCO_HEX;
|
TypingExamButton.STROKE_COLOR_OVER_HEX = MainColor.LIGHT_CHOCO_HEX;
|
||||||
|
|||||||
Reference in New Issue
Block a user