Hi.
I'm trying to replace square default background of YEP Turn Order with my custom, loaded from images. I've changed code for drawBorder class to be like this:
Background for actors are displayed correctly. The issue is with background for enemies. For some reason they don't display on start of combat, only after one of battlers die. It looks like this is displayed during some refresh.
I'm trying to replace square default background of YEP Turn Order with my custom, loaded from images. I've changed code for drawBorder class to be like this:
JavaScript:
Window_TurnOrderIcon.prototype.drawBorder = function() {
if (this.battler().isActor()) {
var bitmap = ImageManager.loadBitmap("img/system/", "turn_order");
this.contents.blt(bitmap, 0, 0, 55, 55, 0, 0);
}
if (this.battler().isEnemy()) {
var bitmap2 = ImageManager.loadBitmap("img/system/", "turn_order_enemy");
this.contents.blt(bitmap2, 0, 0, 55, 55, 0, 0);
}
return;
};