mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-09 22:17:14 +08:00
Merge pull request #27 from toofarapart/fade_to_black
(SPOILERS) A nice fade to black...
This commit is contained in:
+4
-9
@@ -370,9 +370,10 @@ var Space = {
|
|||||||
$('#locationSlider, #worldPanel, #spacePanel, #notifications').remove();
|
$('#locationSlider, #worldPanel, #spacePanel, #notifications').remove();
|
||||||
$('#header').empty();
|
$('#header').empty();
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('body').removeClass('noMask').stop().animate({
|
$('body').stop();
|
||||||
|
$('#starsContainer').animate({
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
'background-color': '#FFF'
|
'background-color': '#000'
|
||||||
}, {
|
}, {
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
progress: function() {
|
progress: function() {
|
||||||
@@ -382,18 +383,12 @@ var Space = {
|
|||||||
$('#notifyGradient').attr('style', 'background-color:'+cur+';background:-webkit-' + s + ';background:' + s);
|
$('#notifyGradient').attr('style', 'background-color:'+cur+';background:-webkit-' + s + ';background:' + s);
|
||||||
},
|
},
|
||||||
complete: function() {
|
complete: function() {
|
||||||
$('#starsContainer, .deleteSave, .share').remove();
|
$('#starsContainer').remove();
|
||||||
if(typeof Storage != 'undefined' && localStorage) {
|
if(typeof Storage != 'undefined' && localStorage) {
|
||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
}
|
}
|
||||||
delete window.State;
|
delete window.State;
|
||||||
Engine.options = {};
|
Engine.options = {};
|
||||||
setTimeout(function() {
|
|
||||||
Engine.init();
|
|
||||||
$('body').animate({
|
|
||||||
opacity: 1
|
|
||||||
}, 500, 'linear');
|
|
||||||
}, 2000);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
|||||||
Reference in New Issue
Block a user