Fix: remove useless keyboard png files, add upper/lower keyboard image
This commit is contained in:
@@ -42,21 +42,21 @@ function TypingAppButton(x, y) {
|
||||
|
||||
BasicButton.call(this, setting, this.clickEvent);
|
||||
|
||||
this.mainText.x = TypingAppButton.WIDTH / 2 + TypingAppButton.KEYBOARD_WIDTH / 4;
|
||||
this.mainText.x = TypingAppButton.WIDTH / 2 + TypingAppButton.KEYBOARD_WIDTH / 6;
|
||||
// this.setMainText("");
|
||||
// this.addIcon("tile_choco");
|
||||
// this.setIconSize(40);
|
||||
// this.setShortcutText("[단축키]");
|
||||
|
||||
this.keyboardSprite = game.add.sprite(
|
||||
80,
|
||||
TypingAppButton.KEYBOARD_WIDTH / 2 + 10,
|
||||
TypingAppButton.HEIGHT / 2,
|
||||
"keyboards"
|
||||
);
|
||||
this.keyboardSprite.anchor.set(0.5);
|
||||
this.keyboardSprite.frame = 1;
|
||||
this.keyboardSprite.width = 120;
|
||||
this.keyboardSprite.height = 120;
|
||||
this.keyboardSprite.width = TypingAppButton.KEYBOARD_WIDTH;
|
||||
this.keyboardSprite.height = TypingAppButton.KEYBOARD_WIDTH;
|
||||
this.buttonSprite.addChild(this.keyboardSprite);
|
||||
|
||||
this.animal = new Animal(
|
||||
@@ -240,14 +240,14 @@ TypingAppButton.TYPING_APP_KOREAN_NAME = "타자검정";
|
||||
|
||||
|
||||
TypingAppButton.loadResources = function() {
|
||||
game.load.spritesheet('keyboards', '../../../resources/image/ui/keyboard/keyboards.png', 120, 120);
|
||||
game.load.spritesheet('keyboards', '../../../resources/image/ui/keyboard/keyboards.png', 100, 100);
|
||||
}
|
||||
|
||||
|
||||
TypingAppButton.WIDTH = 400;
|
||||
TypingAppButton.HEIGHT = 80;
|
||||
|
||||
TypingAppButton.KEYBOARD_WIDTH = 120;
|
||||
TypingAppButton.KEYBOARD_WIDTH = 100;
|
||||
|
||||
TypingAppButton.STROKE_COLOR_OUT_HEX = MainColor.DARK_CHOCO_HEX;
|
||||
TypingAppButton.STROKE_COLOR_OVER_HEX = MainColor.DARK_CHOCO_HEX;
|
||||
|
||||
Reference in New Issue
Block a user