Add: medals and new high score particle
This commit is contained in:
@@ -9,6 +9,8 @@ class HistoryBoard {
|
||||
return;
|
||||
}
|
||||
|
||||
this.todayBestRecord = 0;
|
||||
|
||||
this.dbConnectManager = new DBConnectManager();
|
||||
|
||||
let arrayTabStyle = { font: "20px Arial", fill: "#fff", align: "left", tabs: [ 40, 80, 120 ] };
|
||||
@@ -32,6 +34,9 @@ class HistoryBoard {
|
||||
for(let i = 0; i < historyRecordManager.count; i++) {
|
||||
let data = historyRecordManager.getAt(i);
|
||||
this.printRecord(i, data.date, data.bestRecord);
|
||||
|
||||
if(date == data.date)
|
||||
this.todayBestRecord = data.bestRecord;
|
||||
}
|
||||
}
|
||||
);
|
||||
@@ -98,4 +103,9 @@ class HistoryBoard {
|
||||
this.printRecord(5, DateUtil.getYYYYMMDD(this.calcDate(15)), 840);
|
||||
this.printRecord(6, DateUtil.getYYYYMMDD(this.calcDate(20)), 760);
|
||||
}
|
||||
|
||||
todayBestRecord() {
|
||||
return this.todayBestRecord;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user