Size wordbubbles to text
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user