Fix: RecordUtil.getRecordValueWithUnit
This commit is contained in:
@@ -23,7 +23,8 @@ Chart.prototype.drawRecordGraph = function(index, date, bestRecord, min, max) {
|
||||
|
||||
this.drawText(
|
||||
posX, posY - Chart.CHART_HEIGHT - Chart.CHART_RECORD_OFFSET_Y,
|
||||
StringUtil.getRecordTextWithoutUnit(bestRecord) + StringUtil.getScoreUnit(sessionStorageManager.playingAppID)
|
||||
// StringUtil.getRecordTextWithoutUnit(bestRecord) + StringUtil.getScoreUnit(sessionStorageManager.playingAppID)
|
||||
RecordUtil.getRecordValueWithUnit(bestRecord, sessionStorageManager.getPlayingAppID())
|
||||
);
|
||||
|
||||
// chart
|
||||
|
||||
@@ -12,7 +12,7 @@ RecordUtil.getRecordValueText = function(record, appID) {
|
||||
if(appID == 104)
|
||||
return record.toFixed(2);
|
||||
else
|
||||
NumberUtil.numberWithCommas(Math.floor(record));
|
||||
return NumberUtil.numberWithCommas(Math.floor(record));
|
||||
}
|
||||
|
||||
RecordUtil.getRecordUnit = function(appID) {
|
||||
|
||||
@@ -181,7 +181,7 @@ Missile.prototype.speedUp = function() {
|
||||
|
||||
Missile.DEFAULT_SPEED_DOT_PER_SEC = 150;
|
||||
|
||||
Missile.START_Radius_PX = 600;
|
||||
Missile.START_Radius_PX = 640;
|
||||
Missile.START_RANDOM_Radius_PERCENT = 40;
|
||||
|
||||
Missile.SPACESHIP_RANDOM_AREA_MARGIN = 100;
|
||||
@@ -7,6 +7,7 @@ function StopWatch() {
|
||||
|
||||
this.timerText = game.add.text(game.world.centerX, 35, "", fontStyle);
|
||||
this.timerText.anchor.set(0.5);
|
||||
this.printTime();
|
||||
|
||||
// var grd = this.label.context.createLinearGradient(0, 0, 0, StopWatch.FONT_HEIGHT_PX);
|
||||
// grd.addColorStop(0, '#8ED6FF');
|
||||
@@ -57,8 +58,9 @@ StopWatch.prototype.updateTimer = function() {
|
||||
}
|
||||
|
||||
StopWatch.prototype.printTime = function() {
|
||||
var timeText = this.ellpasedTime.toFixed(2);
|
||||
this.timerText.text = timeText + "초";
|
||||
this.timerText.text = RecordUtil.getRecordValueWithUnit(
|
||||
this.ellpasedTime, sessionStorageManager.getPlayingAppID()
|
||||
);
|
||||
}
|
||||
|
||||
StopWatch.prototype.removeTimer = function() {
|
||||
|
||||
@@ -50,7 +50,7 @@ var Start = {
|
||||
|
||||
// bottom ui
|
||||
var screenBottomUI = new ScreenBottomUI();
|
||||
screenBottomUI.printLeftText("");
|
||||
screenBottomUI.printLeftTextWithAppHighestRecord(sessionStorageManager.getAppHighestRecord());
|
||||
screenBottomUI.printCenterText(sessionStorageManager.getPlayingAppKoreanName());
|
||||
screenBottomUI.printRightText(sessionStorageManager.getPlayerName());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user