Add: menu bg
This commit is contained in:
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user