Add: ranking for app
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user