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