finetune UI design

This commit is contained in:
Juraj Michalek
2014-12-29 20:08:22 +00:00
parent ba562f269d
commit e4f151e31b
4 changed files with 41 additions and 12 deletions

View File

@@ -19,7 +19,11 @@ angular.module('level-selector', ['LocalStorageModule'])
{state:'locked', text:'PF'}
];
$scope.startLevel = function(levelIndex) {
$scope.startLevel = function(state, levelIndex) {
if (state != 'unlocked') {
return;
}
$scope.isLevelSelectorVisible = false;
var args = {
levelIndex: levelIndex