Fix: revise Chart UI
This commit is contained in:
@@ -24,6 +24,20 @@ Chart.prototype.printChartBaseLine = function() {
|
|||||||
this.chartGraphics.lineStyle(3, 0xffd900, 1);
|
this.chartGraphics.lineStyle(3, 0xffd900, 1);
|
||||||
this.chartGraphics.moveTo(Chart.CHART_LINE_START_X, Chart.CHART_LINE_Y);
|
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);
|
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() {
|
Chart.prototype.printContents = function() {
|
||||||
if(isDebugMode()) {
|
if(isDebugMode()) {
|
||||||
for(var i = 0; i < this.records.length; i++) {
|
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].printScore(360);
|
||||||
this.records[i].printGrade("B");
|
this.records[i].printGrade("B");
|
||||||
this.records[i].printSubject("ITQ 파워포인트");
|
this.records[i].printSubject("ITQ 파워포인트");
|
||||||
@@ -88,10 +102,10 @@ Chart.CHART_GRAPH_OFFSET_X = 50;
|
|||||||
Chart.CHART_DATE_OFFSET_Y = 20;
|
Chart.CHART_DATE_OFFSET_Y = 20;
|
||||||
Chart.CHART_SCORE_OFFSET_Y = 30;
|
Chart.CHART_SCORE_OFFSET_Y = 30;
|
||||||
|
|
||||||
Chart.DATE_POS_X = Chart.CHART_LINE_START_X + 50;
|
Chart.DATE_POS_X = Chart.CHART_LINE_START_X + 70;
|
||||||
Chart.SCORE_POS_X = Chart.DATE_POS_X + 100;
|
Chart.SCORE_POS_X = Chart.DATE_POS_X + 120;
|
||||||
Chart.GRADE_POS_X = Chart.DATE_POS_X + 200;
|
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) {
|
function ChartRecord(indexRow) {
|
||||||
@@ -109,7 +123,7 @@ ChartRecord.prototype.printDate = function(date) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ChartRecord.prototype.printScore = function(score) {
|
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) {
|
ChartRecord.prototype.printGrade = function(grade) {
|
||||||
@@ -153,7 +167,7 @@ ChartRecord.getDefaultFontStyle = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ChartRecord.GAP_RECORD_Y = 40;
|
ChartRecord.GAP_RECORD_Y = 40;
|
||||||
|
ChartRecord.RECORD_HEIGHT = 16;
|
||||||
|
|
||||||
|
|
||||||
function DateData(index) {
|
function DateData(index) {
|
||||||
|
|||||||
Reference in New Issue
Block a user