Fix: screen top ui, screen bottom ui
This commit is contained in:
@@ -14,13 +14,6 @@ class MenuTypingTest {
|
||||
self = this;
|
||||
this.game.stage.backgroundColor = '#4d4d4d';
|
||||
|
||||
// top
|
||||
let backButton = new BackButton( () => {
|
||||
location.href = '../../web/client/menu_app.html';
|
||||
});
|
||||
let fullscreenButton = new FullscreenButton(this.game);
|
||||
|
||||
|
||||
// typing app area
|
||||
let typingBG = new AppAreaBG(AppAreaBG.COLOR_TYPING_APP, 1,
|
||||
0, 60,
|
||||
@@ -28,10 +21,10 @@ class MenuTypingTest {
|
||||
);
|
||||
|
||||
// korean app area
|
||||
let koreanBG = new AppAreaBG(AppAreaBG.COLOR_TYPING_KOREAN, 1,
|
||||
0, 60 + AppAreaBG.GAP_Y,
|
||||
GAME_SCREEN_SIZE.x, 270
|
||||
);
|
||||
// let koreanBG = new AppAreaBG(AppAreaBG.COLOR_TYPING_KOREAN, 1,
|
||||
// 0, 60 + AppAreaBG.GAP_Y,
|
||||
// GAME_SCREEN_SIZE.x, 270
|
||||
// );
|
||||
// koreanBG.printText(
|
||||
// "한 글 타 자",
|
||||
// game.world.centerX, 320,
|
||||
@@ -39,10 +32,10 @@ class MenuTypingTest {
|
||||
// );
|
||||
|
||||
// english app area
|
||||
let englishBG = new AppAreaBG(AppAreaBG.COLOR_TYPING_ENGLISH, 1,
|
||||
0, 340,
|
||||
GAME_SCREEN_SIZE.x, 270
|
||||
);
|
||||
// let englishBG = new AppAreaBG(AppAreaBG.COLOR_TYPING_ENGLISH, 1,
|
||||
// 0, 340,
|
||||
// GAME_SCREEN_SIZE.x, 270
|
||||
// );
|
||||
// englishBG.printText(
|
||||
// "영 문 타 자",
|
||||
// game.world.centerX, 370,
|
||||
@@ -50,12 +43,13 @@ class MenuTypingTest {
|
||||
// );
|
||||
|
||||
|
||||
// top ui
|
||||
let screenTopUI = new ScreenTopUI();
|
||||
screenTopUI.makeBackButton( () => {
|
||||
location.href = '../../web/client/menu_app.html';
|
||||
});
|
||||
screenTopUI.makeFullScreenButton();
|
||||
|
||||
// bottom
|
||||
let screenBottom = new ScreenBottom();
|
||||
// screenBottom.printBottomLeftText("게임 진행 정보");
|
||||
screenBottom.printBottomCenterText("메뉴 > 타자 시험");
|
||||
screenBottom.printBottomRightText(sessionStorageManager.playerName);
|
||||
|
||||
// typing tab buttons
|
||||
let typingPracticeTabButton = new TypingTabButton(
|
||||
@@ -77,6 +71,13 @@ class MenuTypingTest {
|
||||
typingTestTabButton.inputEnabled = false;
|
||||
|
||||
this.makeActiveTypingTestAppButtons();
|
||||
|
||||
|
||||
// bottom ui
|
||||
let screenBottomUI = new ScreenBottomUI();
|
||||
// screenBottomUI.printLeftText("게임 진행 정보");
|
||||
screenBottomUI.printCenterText("메뉴 > 타자 시험");
|
||||
screenBottomUI.printRightText(sessionStorageManager.playerName);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user