mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Allowed Bitmap Text to use a frame from a texture atlas
This commit is contained in:
parent
ea8b1ca94c
commit
a92ef5dc31
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
var CHECKSUM = {
|
||||
build: '9eb76a80-6665-11e7-ab02-edf4fee981c3'
|
||||
build: '391befc0-6692-11e7-b6f4-cbbce538a3f5'
|
||||
};
|
||||
module.exports = CHECKSUM;
|
|
@ -341,12 +341,12 @@ var Loader = new Class({
|
|||
|
||||
if (fileA.type === 'image')
|
||||
{
|
||||
cache.bitmapFont.add(fileB.key, ParseXMLBitmapFont(fileB.data));
|
||||
cache.bitmapFont.add(fileB.key, { data: ParseXMLBitmapFont(fileB.data), texture: fileA.key, frame: null });
|
||||
textures.addImage(fileA.key, fileA.data);
|
||||
}
|
||||
else
|
||||
{
|
||||
cache.bitmapFont.add(fileA.key, ParseXMLBitmapFont(fileA.data));
|
||||
cache.bitmapFont.add(fileA.key, { data: ParseXMLBitmapFont(fileA.data), texture: fileB.key, frame: null });
|
||||
textures.addImage(fileB.key, fileB.data);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue