Hi. I decided to get rid off Yanfly's Battle Status Window plugin and use the default one with Active Turn Battle mode.
However I'd like to make some changes and what I want to modify in this window - https://prnt.sc/p5jrlr
- Add Actors faces on the left
- Add prefix [Lv. x] to Actor's name (where X is current level of actor)
I checked rpg_windows.js and I found following code (RPG maker MV 1.5.1 - rpg_windows.js - line from 5496 to 5541):
What and where add to code to achieve ?
However I'd like to make some changes and what I want to modify in this window - https://prnt.sc/p5jrlr
- Add Actors faces on the left
- Add prefix [Lv. x] to Actor's name (where X is current level of actor)
I checked rpg_windows.js and I found following code (RPG maker MV 1.5.1 - rpg_windows.js - line from 5496 to 5541):
Code:
Window_BattleStatus.prototype.drawItem = function(index) {
var actor = $gameParty.battleMembers()[index];
this.drawBasicArea(this.basicAreaRect(index), actor);
this.drawGaugeArea(this.gaugeAreaRect(index), actor);
};
Window_BattleStatus.prototype.basicAreaRect = function(index) {
var rect = this.itemRectForText(index);
rect.width -= this.gaugeAreaWidth() + 15;
return rect;
};
Window_BattleStatus.prototype.gaugeAreaRect = function(index) {
var rect = this.itemRectForText(index);
rect.x += rect.width - this.gaugeAreaWidth();
rect.width = this.gaugeAreaWidth();
return rect;
};
Window_BattleStatus.prototype.gaugeAreaWidth = function() {
return 330;
};
Window_BattleStatus.prototype.drawBasicArea = function(rect, actor) {
this.drawActorName(actor, rect.x + 0, rect.y, 150);
this.drawActorIcons(actor, rect.x + 156, rect.y, rect.width - 156);
};
Window_BattleStatus.prototype.drawGaugeArea = function(rect, actor) {
if ($dataSystem.optDisplayTp) {
this.drawGaugeAreaWithTp(rect, actor);
} else {
this.drawGaugeAreaWithoutTp(rect, actor);
}
};
Window_BattleStatus.prototype.drawGaugeAreaWithTp = function(rect, actor) {
this.drawActorHp(actor, rect.x + 0, rect.y, 108);
this.drawActorMp(actor, rect.x + 123, rect.y, 96);
this.drawActorTp(actor, rect.x + 234, rect.y, 96);
};
Window_BattleStatus.prototype.drawGaugeAreaWithoutTp = function(rect, actor) {
this.drawActorHp(actor, rect.x + 0, rect.y, 201);
this.drawActorMp(actor, rect.x + 216, rect.y, 114);
};
What and where add to code to achieve ?