Fix: ranking title
This commit is contained in:
@@ -37,8 +37,11 @@ var Ranking = {
|
|||||||
var resultTextStyle = textStyleBasic;
|
var resultTextStyle = textStyleBasic;
|
||||||
resultTextStyle.font = "bold 42px Arial";
|
resultTextStyle.font = "bold 42px Arial";
|
||||||
|
|
||||||
this.textTitle = game.add.text(GAME_SCREEN_SIZE.x / 2, 32, "수업시간 순위", resultTextStyle)
|
this.textTitle = game.add.text(
|
||||||
.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
|
GAME_SCREEN_SIZE.x / 2, 32,
|
||||||
|
sessionStorageManager.getPlayingAppKoreanName() + " - 수업시간 순위",
|
||||||
|
resultTextStyle
|
||||||
|
).setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
|
||||||
this.textTitle.anchor.set(0.5);
|
this.textTitle.anchor.set(0.5);
|
||||||
this.textTitle.addColor("#ff6666", 0);
|
this.textTitle.addColor("#ff6666", 0);
|
||||||
|
|
||||||
@@ -51,7 +54,7 @@ var Ranking = {
|
|||||||
var style = { font: "34px Arial", fill: "#fff", tabs: [ 60, 200, 160 ] };
|
var style = { font: "34px Arial", fill: "#fff", tabs: [ 60, 200, 160 ] };
|
||||||
this.textRanking1to10 = game.add.text(rankAreaPositionX, rankAreaPositionY , '', style)
|
this.textRanking1to10 = game.add.text(rankAreaPositionX, rankAreaPositionY , '', style)
|
||||||
.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
|
.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
|
||||||
this.textRanking11to20 = game.add.text(rankAreaPositionX + 510, rankAreaPositionY, '', style)
|
this.textRanking11to20 = game.add.text(rankAreaPositionX + 500, rankAreaPositionY, '', style)
|
||||||
.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
|
.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
|
||||||
|
|
||||||
|
|
||||||
@@ -65,12 +68,12 @@ var Ranking = {
|
|||||||
|
|
||||||
|
|
||||||
// bottom ui
|
// bottom ui
|
||||||
var screenBottomUI = new ScreenBottomUI();
|
this.screenBottomUI = new ScreenBottomUI();
|
||||||
// ScreenBottomUI.printLeftText("게임 진행 정보");
|
// ScreenBottomUI.printLeftText("게임 진행 정보");
|
||||||
// var playingAppName = appInfoManager.getAppNameKorean(sessionStorageManager.getPlayingAppName());
|
// var playingAppName = appInfoManager.getAppNameKorean(sessionStorageManager.getPlayingAppName());
|
||||||
// ScreenBottomUI.printCenterText(playingAppName);
|
// ScreenBottomUI.printCenterText(playingAppName);
|
||||||
screenBottomUI.printCenterText("랭킹");
|
// this.screenBottomUI.printCenterText("수업시간 순위");
|
||||||
screenBottomUI.printRightText(sessionStorageManager.getPlayerName());
|
this.screenBottomUI.printRightText(sessionStorageManager.getPlayerName());
|
||||||
|
|
||||||
this.getRecordToRankingServer();
|
this.getRecordToRankingServer();
|
||||||
game.time.events.loop(Phaser.Timer.SECOND * 10, this.getRecordToRankingServer, this);
|
game.time.events.loop(Phaser.Timer.SECOND * 10, this.getRecordToRankingServer, this);
|
||||||
@@ -171,21 +174,21 @@ var Ranking = {
|
|||||||
|
|
||||||
showRankingHour: function() {
|
showRankingHour: function() {
|
||||||
self.mode = Ranking.MODE_HOUR;
|
self.mode = Ranking.MODE_HOUR;
|
||||||
self.textTitle.text = "수업시간 순위";
|
self.textTitle.text = sessionStorageManager.getPlayingAppKoreanName() + " - 수업시간 순위";
|
||||||
self.textTitle.addColor("#ff6666", 0);
|
self.textTitle.addColor("#ff6666", 0);
|
||||||
self.getRecordToRankingServer();
|
self.getRecordToRankingServer();
|
||||||
},
|
},
|
||||||
|
|
||||||
showRankingDay: function() {
|
showRankingDay: function() {
|
||||||
self.mode = Ranking.MODE_DAY;
|
self.mode = Ranking.MODE_DAY;
|
||||||
self.textTitle.text = "오늘의 순위";
|
self.textTitle.text = sessionStorageManager.getPlayingAppKoreanName() + " - 오늘의 순위";
|
||||||
self.textTitle.addColor("#9999ff", 0);
|
self.textTitle.addColor("#9999ff", 0);
|
||||||
self.getRecordToRankingServer();
|
self.getRecordToRankingServer();
|
||||||
},
|
},
|
||||||
|
|
||||||
showRankingMonth: function() {
|
showRankingMonth: function() {
|
||||||
self.mode = Ranking.MODE_MONTH;
|
self.mode = Ranking.MODE_MONTH;
|
||||||
self.textTitle.text = "이달의 순위";
|
self.textTitle.text = sessionStorageManager.getPlayingAppKoreanName() + " - 이달의 순위";
|
||||||
self.textTitle.addColor("#99ff99", 0);
|
self.textTitle.addColor("#99ff99", 0);
|
||||||
self.getRecordToRankingServer();
|
self.getRecordToRankingServer();
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -78,8 +78,8 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="Ranking" style="text-align:center;"></div>
|
<div id="Ranking" style="text-align:center;"></div>
|
||||||
<div style="margin-top: 20px; text-align:center;">
|
<div style="margin-top: 20px; text-align:center;">
|
||||||
|
앱이 실행되지 않으면, 브라우저의 새로 고침 버튼( <span class="oi oi-reload" title="icon reload" aria-hidden="true"></span> , 단축키 : Ctrl + R)을 눌러주세요.<br/>
|
||||||
(그래도 실행되지 않을때에는, Ctrl + Shift + R 을 눌러서 브라우저 캐시 삭제를 실행해 주세요)
|
(그래도 실행되지 않을때에는, Ctrl + Shift + R 을 눌러서 브라우저 캐시 삭제를 실행해 주세요)
|
||||||
앱이 실행되지 않으면, 브라우저의 새로 고침 버튼( <span class="oi oi-reload" title="icon reload" aria-hidden="true"></span> , 단축키 : Ctrl + R)을 눌러주세요.
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user