mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 17:00:04 +02:00
before attempt at flipping
This commit is contained in:
parent
ca33b7ce1b
commit
9460c4b4c6
3 changed files with 28 additions and 15 deletions
|
@ -6717,19 +6717,23 @@ var Level = Sandbox.extend({
|
|||
},
|
||||
|
||||
startLevel: function(command, deferred) {
|
||||
command.addWarning(
|
||||
"You are in a level! You can't start a new one before exiting. I'll add the command for you..."
|
||||
);
|
||||
command.set('status', 'error');
|
||||
this.exitLevel();
|
||||
|
||||
Main.getSandbox().startLevel(command, deferred);
|
||||
/*
|
||||
Main.getEventBaton().trigger('commandSubmitted',
|
||||
'delay 3000; exit level; delay 500;' + command.get('rawStr')
|
||||
);
|
||||
deferred.resolve();
|
||||
deferred.resolve();*/
|
||||
},
|
||||
|
||||
exitLevel: function(command, deferred) {
|
||||
this.die();
|
||||
|
||||
if (!command || !deferred) {
|
||||
return;
|
||||
}
|
||||
|
||||
setTimeout(function() {
|
||||
command.finishWith(deferred);
|
||||
}, this.getAnimationTime());
|
||||
|
@ -18503,19 +18507,23 @@ var Level = Sandbox.extend({
|
|||
},
|
||||
|
||||
startLevel: function(command, deferred) {
|
||||
command.addWarning(
|
||||
"You are in a level! You can't start a new one before exiting. I'll add the command for you..."
|
||||
);
|
||||
command.set('status', 'error');
|
||||
this.exitLevel();
|
||||
|
||||
Main.getSandbox().startLevel(command, deferred);
|
||||
/*
|
||||
Main.getEventBaton().trigger('commandSubmitted',
|
||||
'delay 3000; exit level; delay 500;' + command.get('rawStr')
|
||||
);
|
||||
deferred.resolve();
|
||||
deferred.resolve();*/
|
||||
},
|
||||
|
||||
exitLevel: function(command, deferred) {
|
||||
this.die();
|
||||
|
||||
if (!command || !deferred) {
|
||||
return;
|
||||
}
|
||||
|
||||
setTimeout(function() {
|
||||
command.finishWith(deferred);
|
||||
}, this.getAnimationTime());
|
||||
|
|
|
@ -330,19 +330,23 @@ var Level = Sandbox.extend({
|
|||
},
|
||||
|
||||
startLevel: function(command, deferred) {
|
||||
command.addWarning(
|
||||
"You are in a level! You can't start a new one before exiting. I'll add the command for you..."
|
||||
);
|
||||
command.set('status', 'error');
|
||||
this.exitLevel();
|
||||
|
||||
Main.getSandbox().startLevel(command, deferred);
|
||||
/*
|
||||
Main.getEventBaton().trigger('commandSubmitted',
|
||||
'delay 3000; exit level; delay 500;' + command.get('rawStr')
|
||||
);
|
||||
deferred.resolve();
|
||||
deferred.resolve();*/
|
||||
},
|
||||
|
||||
exitLevel: function(command, deferred) {
|
||||
this.die();
|
||||
|
||||
if (!command || !deferred) {
|
||||
return;
|
||||
}
|
||||
|
||||
setTimeout(function() {
|
||||
command.finishWith(deferred);
|
||||
}, this.getAnimationTime());
|
||||
|
|
1
todo.txt
1
todo.txt
|
@ -9,6 +9,7 @@ Big Graphic things:
|
|||
Medium things:
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
[ ] level arbiter (has everything by ID)
|
||||
[ ] flip branches on the sides!! i wonder how to determine...
|
||||
|
||||
Small things to implement:
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue