Fix: apply score+unit to ranking screen

This commit is contained in:
2018-12-06 00:28:46 +09:00
parent 1c03f9187d
commit 350b24d511
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -254,7 +254,10 @@ var Ranking = {
// bestRecordRow[0] = jsonRankingList[i]['UserID']; // bestRecordRow[0] = jsonRankingList[i]['UserID'];
bestRecordRow[0] = i + 1; bestRecordRow[0] = i + 1;
bestRecordRow[1] = jsonRankingList[i]['Name']; bestRecordRow[1] = jsonRankingList[i]['Name'];
bestRecordRow[2] = Math.floor(jsonRankingList[i]['BestRecord']); bestRecordRow[2] = RecordUtil.getRecordValueWithUnit(
jsonRankingList[i]['BestRecord'],
sessionStorageManager.getPlayingAppID()
);
// console.log("$BestRecordRow : " + bestRecordRow[0] + ", " + bestRecordRow[1] + ", " + bestRecordRow[2]); // console.log("$BestRecordRow : " + bestRecordRow[0] + ", " + bestRecordRow[1] + ", " + bestRecordRow[2]);
recordArray.push(bestRecordRow); recordArray.push(bestRecordRow);
+1
View File
@@ -41,6 +41,7 @@
<script src="../../game/lib/keyboard_shortcut.js"></script> <script src="../../game/lib/keyboard_shortcut.js"></script>
<script src="../../game/lib/string_util.js"></script> <script src="../../game/lib/string_util.js"></script>
<script src="../../game/lib/number_util.js"></script> <script src="../../game/lib/number_util.js"></script>
<script src="../../game/lib/record_util.js"></script>
<script src="../../game/lib/history_record_manager.js"></script> <script src="../../game/lib/history_record_manager.js"></script>
<script src="../../game/lib/input_type_text.js"></script> <script src="../../game/lib/input_type_text.js"></script>
<script src="../../game/lib/button/round_rect_button.js"></script> <script src="../../game/lib/button/round_rect_button.js"></script>