Add: ranking board print record

This commit is contained in:
2018-05-17 14:12:35 +09:00
parent 2c1b928554
commit bf7a136ed8
3 changed files with 119 additions and 201 deletions
+5 -3
View File
@@ -13,10 +13,12 @@ class HistoryBoard {
this.textMyRanking = game.add.text(posX, posY + 100, '', arrayTabStyle)
.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
this.dbConnectManager.requestTempMyHistory( historyRecordManager => {
let self = this;
let self = this;
this.dbConnectManager.requestTempPlayerHistory( historyRecordManager => {
for(let i = 0; i < historyRecordManager.count; i++) {
if(i > 6)
break;
let data = historyRecordManager.getAt(i);
self.printRecord(i, data.date, data.score);
}