...
 
Commits (4)
This diff is collapsed.
This diff is collapsed.
......@@ -262,5 +262,6 @@
"Hours": "h.",
"Minutes": "m.",
"Seconds": "s.",
"NoCompleted" : "No task completed"
"NoCompleted" : "No task completed",
"DestroyAllTeams" : "destroy all teams"
}
......@@ -264,5 +264,6 @@
"Hours": "ч.",
"Minutes": "м.",
"Seconds": "с.",
"NoCompleted" : "Ничего не выполнено"
"NoCompleted" : "Ничего не выполнено",
"DestroyAllTeams" : "удалить все команды"
}
......@@ -83,7 +83,6 @@ var ChangeLevelMenu = ccui.HBox.extend(/**@lends ChangeLevelMenu#*/{
if(level === world.getLevelCount(game) - 1 && game === world.getGameCount() - 1)
this._nextLevelButton.setEnabled(false);
},
/**
......
......@@ -7,12 +7,16 @@
*/
var ChangeLevelClassControl = ChangeLevelMenu.extend(/** @lends ChangeLevelClassControl# */{
_target: null,
buttonAnimated: false,
ctor: function ()
ctor: function (target)
{
this._super();
this._target = target;
this._nextLevelButton.setEnabled(true);
this._prevLevelButton.setEnabled(true);
......@@ -22,11 +26,11 @@ var ChangeLevelClassControl = ChangeLevelMenu.extend(/** @lends ChangeLevelClass
_nextLevel: function(sender)
{
this.getParent().getParent()._nextLevel();
this._target._nextLevel();
},
_prevLevel: function(sender)
{
this.getParent().getParent()._prevLevel();
this._target._prevLevel();
}
});
......@@ -146,7 +146,7 @@ var TeamGameLayout = ccui.Layout.extend({
this.addChild(buttonLayout);
this.changeLevel = new ChangeLevelClassControl();
this.changeLevel = new ChangeLevelClassControl(this);
var changeLevelAlign = new ccui.RelativeLayoutParameter();
changeLevelAlign.setAlign(ccui.RelativeLayoutParameter.PARENT_TOP_RIGHT);
......