Fix: revise Chart UI

This commit is contained in:
2018-12-13 01:01:45 +09:00
parent 3cfc37b76e
commit be09fca8b2
+20 -6
View File
@@ -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("1210");
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) {