Fix background without transition
This commit is contained in:
parent
669f8b74a6
commit
4a0591f8b0
@ -15,6 +15,7 @@ function Views(parser) {
|
||||
this.backgroundName = "";
|
||||
this.backgroundType = "";
|
||||
this.characters = new Characters();
|
||||
this.characters.makeNamesUnknown();
|
||||
this.characters.makeNamesKnown();
|
||||
|
||||
this.useSpriteTransitions = true;
|
||||
@ -101,14 +102,15 @@ Views.prototype.background = function (type, name, effect) {
|
||||
});
|
||||
});
|
||||
|
||||
} else {
|
||||
$('#background2').css('background', background);
|
||||
$('#background2').css('backgroundSize', 'cover');
|
||||
this.pause(animationTime, false);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
$('#background2').css('background', background);
|
||||
$('#background2').css('backgroundSize', 'cover');
|
||||
}
|
||||
|
||||
$('#background1').hide();
|
||||
$('#background2').css('background', background);
|
||||
$('#background2').css('backgroundSize', 'cover');
|
||||
$('#background2').show();
|
||||
this.pause(animationTime, false);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user