Fix: HistoryRecord, record -> score
This commit is contained in:
@@ -20,11 +20,11 @@ class HistoryBoard {
|
||||
loadHistoryRecords() {
|
||||
this.historyRecordManager.clear();
|
||||
|
||||
this.historyRecordManager.push(new HistoryRecordData("05/10", 15460));
|
||||
this.historyRecordManager.push(new HistoryRecordData("05/11", 3040));
|
||||
this.historyRecordManager.push(new HistoryRecordData("05/12", 460));
|
||||
this.historyRecordManager.push(new HistoryRecordData("05/13", 60));
|
||||
this.historyRecordManager.push(new HistoryRecordData("05/14", 8));
|
||||
this.historyRecordManager.push(new HistoryRecord("05/10", 15460));
|
||||
this.historyRecordManager.push(new HistoryRecord("05/11", 3040));
|
||||
this.historyRecordManager.push(new HistoryRecord("05/12", 460));
|
||||
this.historyRecordManager.push(new HistoryRecord("05/13", 60));
|
||||
this.historyRecordManager.push(new HistoryRecord("05/14", 8));
|
||||
|
||||
this.printHistoryRecords();
|
||||
}
|
||||
@@ -32,7 +32,7 @@ class HistoryBoard {
|
||||
printHistoryRecords(historyRecords) {
|
||||
for(let i = 0; i < this.historyRecordManager.count; i++) {
|
||||
let data = this.historyRecordManager.getAt(i);
|
||||
this.printRecord(i, data.date, data.record);
|
||||
this.printRecord(i, data.date, data.score);
|
||||
}
|
||||
|
||||
// this.chartGraphics.lineStyle(3, 0xffd900, 1);
|
||||
@@ -40,14 +40,14 @@ class HistoryBoard {
|
||||
// this.chartGraphics.lineTo(game.world.width - 200, 0);
|
||||
}
|
||||
|
||||
printRecord(index, date, record) {
|
||||
printRecord(index, date, score) {
|
||||
if(sessionStorageManager.playingAppName.indexOf("typing") > -1)
|
||||
this.printMouseAppHistory(index, date, record);
|
||||
this.printMouseAppHistory(index, date, score);
|
||||
else
|
||||
this.printMouseAppHistory(index, date, record);
|
||||
this.printMouseAppHistory(index, date, score);
|
||||
}
|
||||
|
||||
printTypingAppHistory(index, date, record) {
|
||||
printTypingAppHistory(index, date, score) {
|
||||
let posX = 60;
|
||||
let posY = game.world.height / 2 + 90 + 30 * index;
|
||||
|
||||
@@ -62,14 +62,14 @@ class HistoryBoard {
|
||||
.setTextBounds(0, 0, 60, 60)
|
||||
.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
|
||||
|
||||
let numberWithCommas = NumberUtil.numberWithCommas(record);
|
||||
let numberWithCommas = NumberUtil.numberWithCommas(score);
|
||||
style.boundsAlignH = "right";
|
||||
game.add.text(posX + 120, posY, numberWithCommas, style)
|
||||
.setTextBounds(0, 0, 80, 60)
|
||||
.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
|
||||
}
|
||||
|
||||
printMouseAppHistory(index, date, record) {
|
||||
printMouseAppHistory(index, date, score) {
|
||||
let posX = 60;
|
||||
let posY = game.world.height / 2 + 90 + 30 * index;
|
||||
|
||||
@@ -80,7 +80,7 @@ class HistoryBoard {
|
||||
.setTextBounds(0, 0, 100, 60)
|
||||
.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
|
||||
|
||||
let numberWithCommas = NumberUtil.numberWithCommas(record);
|
||||
let numberWithCommas = NumberUtil.numberWithCommas(score);
|
||||
style.boundsAlignH = "right";
|
||||
game.add.text(posX + 80, posY, numberWithCommas, style)
|
||||
.setTextBounds(0, 0, 100, 60)
|
||||
|
||||
Reference in New Issue
Block a user