From be09fca8b20509c5251ceb97b69674104785af1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=A2=E1=84=91=E1=85=B3=E1=86=AF=20=E1=84=82?= =?UTF-8?q?=E1=85=A9=E1=84=90=E1=85=B3=E1=84=87=E1=85=AE=E1=86=A8?= Date: Thu, 13 Dec 2018 01:01:45 +0900 Subject: [PATCH] Fix: revise Chart UI --- src/game/license_timer/chart.js | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/src/game/license_timer/chart.js b/src/game/license_timer/chart.js index aab8601..a74b793 100644 --- a/src/game/license_timer/chart.js +++ b/src/game/license_timer/chart.js @@ -24,6 +24,20 @@ Chart.prototype.printChartBaseLine = function() { this.chartGraphics.lineStyle(3, 0xffd900, 1); this.chartGraphics.moveTo(Chart.CHART_LINE_START_X, Chart.CHART_LINE_Y); this.chartGraphics.lineTo(game.world.width - Chart.CHART_LINE_START_X, Chart.CHART_LINE_Y); + + /* + for(var i = 0; i < 6; i++) { + this.chartGraphics.lineStyle(1, 0x888888, 1); + this.chartGraphics.moveTo( + Chart.CHART_LINE_START_X, + ChartRecord.getPosY(i) + ChartRecord.RECORD_HEIGHT + ); + this.chartGraphics.lineTo( + game.world.width - Chart.CHART_LINE_START_X, + ChartRecord.getPosY(i) + ChartRecord.RECORD_HEIGHT + ); + } + */ } /* @@ -68,7 +82,7 @@ Chart.drawText = function(posX, posY, text, fontStyle) { Chart.prototype.printContents = function() { if(isDebugMode()) { for(var i = 0; i < this.records.length; i++) { - this.records[i].printDate("12/10"); + this.records[i].printDate("12월 10일"); this.records[i].printScore(360); this.records[i].printGrade("B"); this.records[i].printSubject("ITQ 파워포인트"); @@ -88,10 +102,10 @@ Chart.CHART_GRAPH_OFFSET_X = 50; Chart.CHART_DATE_OFFSET_Y = 20; Chart.CHART_SCORE_OFFSET_Y = 30; -Chart.DATE_POS_X = Chart.CHART_LINE_START_X + 50; -Chart.SCORE_POS_X = Chart.DATE_POS_X + 100; +Chart.DATE_POS_X = Chart.CHART_LINE_START_X + 70; +Chart.SCORE_POS_X = Chart.DATE_POS_X + 120; Chart.GRADE_POS_X = Chart.DATE_POS_X + 200; -Chart.SUBJECT_POS_X = Chart.DATE_POS_X + 400; +Chart.SUBJECT_POS_X = Chart.DATE_POS_X + 360; function ChartRecord(indexRow) { @@ -109,7 +123,7 @@ ChartRecord.prototype.printDate = function(date) { } ChartRecord.prototype.printScore = function(score) { - this.score.text = RecordUtil.getRecordValueWithUnit(score, sessionStorageManager.getPlayingAppID()); + this.score.text = RecordUtil.getRecordValueWithUnit(score, 101); //sessionStorageManager.getPlayingAppID()); } ChartRecord.prototype.printGrade = function(grade) { @@ -153,7 +167,7 @@ ChartRecord.getDefaultFontStyle = function() { } ChartRecord.GAP_RECORD_Y = 40; - +ChartRecord.RECORD_HEIGHT = 16; function DateData(index) {