OSDN Git Service

お飾りの調整・アイコンのサイズ変更
authornagoling <>
Sat, 9 Nov 2013 07:12:50 +0000 (16:12 +0900)
committernagomi <nagomi@192.168.1.23>
Sat, 9 Nov 2013 07:12:50 +0000 (16:12 +0900)
ctrl.js

diff --git a/ctrl.js b/ctrl.js
index 0222f47..c60d930 100644 (file)
--- a/ctrl.js
+++ b/ctrl.js
@@ -108,10 +108,10 @@ var MangIcon = enchant.Class.create({
                var index = 0;
                for (var key in ECommand) {
                        var value = ECommand[key];
-                       this.cmdIcons[value] = new CommandIcon(40, 40, value, index);
+                       this.cmdIcons[value] = new CommandIcon(ICON_WIDTH, ICON_HEIGHT, value, index);
                        this.cmdIcons[value].image = this.ctl.game.assets[EResPath.COMMAND];
-                       this.cmdIcons[value].x = 40 * index;
-                       this.cmdIcons[value].y = 4;
+                       this.cmdIcons[value].x = ICON_WIDTH * index + 5;
+                       this.cmdIcons[value].y = ICON_HEIGHT + 2;
 
                        // odd equals current. even equals not current.
                        this.cmdIcons[value].frame = (this.ctl.getCurrentCommand() == value)? index * 2 + 1: index * 2;
@@ -423,7 +423,7 @@ var MangLabel = enchant.Class.create({
                dateLabel.color = COLOR;
                dateLabel.font = FONT;
                dateLabel.x = self.START_XPOS;
-               dateLabel.y = GAME_HEIGHT - 30;
+               dateLabel.y = 4;
                // dateLabel.textWidth = menuBg.image.context.measureText(TEXT).width;
                dateLabel.addEventListener("enterframe", function(){
                                // console.log("min:" + ctl.min + ":" + ctl.hour + ":" + ctl.day);