Add: ranking for app

This commit is contained in:
2018-09-05 09:21:48 +09:00
parent 3a1be0744c
commit 3d4852c42c
7 changed files with 529 additions and 19 deletions
+18
View File
@@ -33,6 +33,8 @@ class Start {
// contents
this.loadHowToPlay(sessionStorageManager.playingAppID);
this.makeStartButton();
this.makeRankingButton();
if(sessionStorageManager.maestroAccountType >= 100) { // experience account
this.printSampleChart();
this.announceBox = new AnnounceBox(50, 648);
@@ -141,6 +143,22 @@ class Start {
let startButton = new RoundRectButton(setting, RoundRectButton.NONE_ICON, "시작", this.startStage);
}
makeRankingButton() {
let setting = new RoundRectButtonSetting(game.world.centerX + 160, game.world.centerY, 60, 60);
setting.fontStyle = {
font: "18px Arial",
boundsAlignH: "center", // left, center. right
boundsAlignV: "middle", // top, middle, bottom
fill: "#fff"
};
let rankingButton = new RoundRectButton(
setting, RoundRectButton.NONE_ICON, "순위\n보기",
() => {
location.href = '../../web/client/ranking.html';
});
}
startStage() {
if(isTypingPracticeStage())