Add: HistoryText

Fix: ranking.js, result.js
This commit is contained in:
2019-06-09 00:21:03 +09:00
parent 547fee6704
commit 1f5f87c361
8 changed files with 127 additions and 72 deletions
+11 -11
View File
@@ -2,7 +2,10 @@ function RecordBoard(dataType) {
this.chartGraphics = game.add.graphics(0, 0);
this.printRecordBoardHeader();
this.printSeperator();
this.printSeperator(265, 480);
this.printSeperator(505, 480);
this.printSeperator(745, 480);
var historyBoard = new HistoryBoard(dataType);
var rankingBoard = new RankingBoard(dataType);
@@ -10,7 +13,7 @@ function RecordBoard(dataType) {
RecordBoard.prototype.printRecordBoardHeader = function() {
var posX = 60;
var posX = 40;
var posY = game.world.height / 2 + 20;
var bar = game.add.graphics();
@@ -20,14 +23,14 @@ RecordBoard.prototype.printRecordBoardHeader = function() {
var style = { font: "32px Arial", fill: "#ffc", align: "left", boundsAlignH: "center", boundsAlignV: "middle" };
this.printHeader(posX, posY, "최근의 내 기록", style);
posX = 320;
posX = 285;
style.fill = "#fff";
this.printHeader(posX, posY, "수업시간 순위", style);
posX = 550;
posX = 520;
this.printHeader(posX, posY, "오늘의 순위", style);
posX = 770;
posX = 765;
this.printHeader(posX, posY, "이달의 순위", style);
}
@@ -37,13 +40,10 @@ RecordBoard.prototype.printHeader = function(x, y, title, style) {
.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
}
RecordBoard.prototype.printSeperator = function() {
var posX = 290;
var posY = 480;
RecordBoard.prototype.printSeperator = function(x, y) {
this.chartGraphics.lineStyle(3, 0x444444, 1);
this.chartGraphics.moveTo(posX, posY);
this.chartGraphics.lineTo(posX, posY + 200);
this.chartGraphics.moveTo(x, y);
this.chartGraphics.lineTo(x, y + 200);
}