mirror of
https://github.com/ysoftdevs/pf2015.git
synced 2026-03-20 16:24:35 +01:00
fix return completed level
This commit is contained in:
@@ -30,6 +30,11 @@ angular.module('level-complete', [])
|
|||||||
$rootScope.$emit('startLevel', args);
|
$rootScope.$emit('startLevel', args);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.cancelLevel = function() {
|
||||||
|
$scope.isLevelCompleteVisible = false;
|
||||||
|
};
|
||||||
|
|
||||||
$rootScope.$on('completeLevel', $scope.completeLevel);
|
$rootScope.$on('completeLevel', $scope.completeLevel);
|
||||||
|
$rootScope.$on('cancelLevel', $scope.cancelLevel);
|
||||||
|
|
||||||
});
|
});
|
||||||
@@ -59,22 +59,22 @@ angular.module('app', ['angular-flippy', 'level-selector', 'level-complete'])
|
|||||||
cardTypes: ['picture', 'picture', 'picture', 'picture']
|
cardTypes: ['picture', 'picture', 'picture', 'picture']
|
||||||
}, {
|
}, {
|
||||||
levelName: "04: Simple Math",
|
levelName: "04: Simple Math",
|
||||||
totalCards: 3*2,
|
totalCards: 4*4,
|
||||||
cardsPerRow: 3,
|
cardsPerRow: 4,
|
||||||
chainLength: 2,
|
chainLength: 2,
|
||||||
cardSet: mathCards,
|
cardSet: mathCards,
|
||||||
cardTypes: ['arabic', 'math']
|
cardTypes: ['arabic', 'math']
|
||||||
}, {
|
}, {
|
||||||
levelName: "05: Roman",
|
levelName: "05: Roman",
|
||||||
totalCards: 3*2,
|
totalCards: 4*4,
|
||||||
cardsPerRow: 3,
|
cardsPerRow: 4,
|
||||||
chainLength: 2,
|
chainLength: 2,
|
||||||
cardSet: mathCards,
|
cardSet: mathCards,
|
||||||
cardTypes: ['arabic', 'roman']
|
cardTypes: ['arabic', 'roman']
|
||||||
}, {
|
}, {
|
||||||
levelName: "06: Japanese",
|
levelName: "06: Japanese",
|
||||||
totalCards: 3*2,
|
totalCards: 4*4,
|
||||||
cardsPerRow: 3,
|
cardsPerRow: 4,
|
||||||
chainLength: 2,
|
chainLength: 2,
|
||||||
cardSet: mathCards,
|
cardSet: mathCards,
|
||||||
cardTypes: ['arabic', 'japanese']
|
cardTypes: ['arabic', 'japanese']
|
||||||
|
|||||||
Reference in New Issue
Block a user