Fix: show best record with DB

This commit is contained in:
2018-06-05 18:29:19 +09:00
parent cc59e9e739
commit 3f43f80c3d
6 changed files with 56 additions and 16 deletions
+14 -3
View File
@@ -58,10 +58,21 @@ class Start {
// bottom
let screenBottom = new ScreenBottom();
screenBottom.makeBottomLine();
screenBottom.printBottomLeftText("게임 진행 정보");
let playingAppKoreanName = sessionStorageManager.playingAppKoreanName;
screenBottom.printBottomCenterText(playingAppKoreanName);
screenBottom.printBottomLeftText("오늘의 최고 기록 : ");
screenBottom.printBottomCenterText(sessionStorageManager.playingAppKoreanName);
screenBottom.printBottomRightText(sessionStorageManager.playerName);
this.dbConnectManager.requestTodayBestRecord(
sessionStorageManager.maestroID,
sessionStorageManager.playerUserID,
sessionStorageManager.playingAppID,
replyJSON => {
sessionStorageManager.BestRecord = Number(replyJSON["BestRecord"]);
let highScoreWithCommas = NumberUtil.numberWithCommas(sessionStorageManager.BestRecord);
screenBottom.printBottomLeftText("오늘의 최고 기록 : " + highScoreWithCommas);
}
);
}
loadHowToPlay(appID) {