Allowed Bitmap Text to use a frame from a texture atlas

This commit is contained in:
Richard Davey 2017-07-12 00:48:41 +01:00
parent ea8b1ca94c
commit a92ef5dc31
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
var CHECKSUM = {
build: '9eb76a80-6665-11e7-ab02-edf4fee981c3'
build: '391befc0-6692-11e7-b6f4-cbbce538a3f5'
};
module.exports = CHECKSUM;

View file

@ -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;