Fix: show best record with DB
This commit is contained in:
+14
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user