Add: menu bg

This commit is contained in:
2018-09-01 17:36:17 +09:00
parent 29539e9ce7
commit a291c18ea1
17 changed files with 129 additions and 34 deletions
+1 -1
View File
@@ -84,4 +84,4 @@ GameAppButton.BUTTON_GAP = 20;
GameAppButton.MARGIN_VERTICAL = 100;
GameAppButton.BUTTON_UPPER_POS_Y = 200;
GameAppButton.BUTTON_LOWER_POS_Y = 460;
GameAppButton.BUTTON_LOWER_POS_Y = 480;
+3 -3
View File
@@ -44,11 +44,11 @@ class TypingAppButton extends RoundRectButton {
}
TypingAppButton.BUTTON_WIDTH = 160;
TypingAppButton.BUTTON_WIDTH = 220;
TypingAppButton.BUTTON_HEIGHT = 80;
TypingAppButton.BUTTON_GAP = 10;
TypingAppButton.MARGIN_VERTICAL = 100;
TypingAppButton.BUTTON_UPPER_POS_Y = 200;
TypingAppButton.BUTTON_LOWER_POS_Y = 480;
TypingAppButton.BUTTON_UPPER_POS_Y = 205;
TypingAppButton.BUTTON_LOWER_POS_Y = 475;
+5 -5
View File
@@ -41,13 +41,13 @@ class TypingTabButton extends RoundRectButton {
}
TypingTabButton.BUTTON_WIDTH = 480;
TypingTabButton.BUTTON_WIDTH = 445;
TypingTabButton.BUTTON_HEIGHT = 80;
TypingTabButton.BUTTON_GAP = 20;
TypingTabButton.BUTTON_GAP = 26;
TypingTabButton.MARGIN_VERTICAL = 100;
TypingTabButton.PRACTICE_BUTTON_POS_X = GAME_SCREEN_SIZE.x / 4 + TypingTabButton.BUTTON_GAP / 2;
TypingTabButton.TEST_BUTTON_POS_X = GAME_SCREEN_SIZE.x / 4 * 3 - TypingTabButton.BUTTON_GAP / 2;
TypingTabButton.PRACTICE_BUTTON_POS_X = GAME_SCREEN_SIZE.x / 4 + TypingTabButton.BUTTON_GAP;
TypingTabButton.TEST_BUTTON_POS_X = GAME_SCREEN_SIZE.x / 4 * 3 - TypingTabButton.BUTTON_GAP;
TypingTabButton.BUTTON_POS_Y = GAME_SCREEN_SIZE.y - (TypingTabButton.BUTTON_HEIGHT / 3 * 4);
TypingTabButton.BUTTON_POS_Y = GAME_SCREEN_SIZE.y - 104;
+2 -1
View File
@@ -8,6 +8,7 @@ class ScreenBottom {
this.bottomBarCenterY = game.world.height - ScreenBottom.BOTTOM_BAR_HEIGHT / 2;
this.makeBottomLine();
this.leftText = this.printBottomText(this.leftText, "", "left");
this.centerText = this.printBottomText(this.centerText, "", "center");
this.rightText = this.printBottomText(this.rightText, "", "right");
@@ -15,7 +16,7 @@ class ScreenBottom {
makeBottomLine() {
game.add.graphics()
.beginFill(0xffffff, 0.1)
.beginFill(0x303030, 1)
.drawRect(
0, game.world.height - ScreenBottom.BOTTOM_BAR_HEIGHT,
game.world.width, ScreenBottom.BOTTOM_BAR_HEIGHT