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;
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);