Size wordbubbles to text

This commit is contained in:
2014-06-15 19:20:00 -07:00
parent ef898fe961
commit 6be34dcd3d

View File

@@ -821,7 +821,7 @@ var AISprite = function(game, x, y, key, frame) {
}
var mylines = moonlightDialog['status'][this.sprite_group][aistate];
bubbleimg = game.cache.image('wordbubble')
bubbleimg = game.cache.getImage('wordbubble');
text = mylines[game.rnd.integerInRange(0, mylines.length-1)];
style = {font: '14px Arial Bold', fill: '#ffffff'}
this.text_size = stringSize(text, style['font']);