Skip to content

Commit a92ef5d

Browse files
committed
Allowed Bitmap Text to use a frame from a texture atlas
1 parent ea8b1ca commit a92ef5d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

v3/src/checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
var CHECKSUM = {
2-
build: '9eb76a80-6665-11e7-ab02-edf4fee981c3'
2+
build: '391befc0-6692-11e7-b6f4-cbbce538a3f5'
33
};
44
module.exports = CHECKSUM;

v3/src/plugins/Loader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,12 @@ var Loader = new Class({
341341

342342
if (fileA.type === 'image')
343343
{
344-
cache.bitmapFont.add(fileB.key, ParseXMLBitmapFont(fileB.data));
344+
cache.bitmapFont.add(fileB.key, { data: ParseXMLBitmapFont(fileB.data), texture: fileA.key, frame: null });
345345
textures.addImage(fileA.key, fileA.data);
346346
}
347347
else
348348
{
349-
cache.bitmapFont.add(fileA.key, ParseXMLBitmapFont(fileA.data));
349+
cache.bitmapFont.add(fileA.key, { data: ParseXMLBitmapFont(fileA.data), texture: fileB.key, frame: null });
350350
textures.addImage(fileB.key, fileB.data);
351351
}
352352
break;

0 commit comments

Comments
 (0)