Hello,
I have 2 issues with battle status window // yanflys hp gauges.
Issue 1- As you can see in the attached image, yanflys hp gauge is displayed below the battle status window, which makes it bit harder to see when the actor is selected, therefore I would like to have the HP gauge on top of the battle status window.
Issue 2- Again, as you can see in the attached image, if actor has MP, his name is not displayed in the battle status window. When actor has TP, it's name is displayed properly.
Here's the code that I use to edit the battle status window
I have 2 issues with battle status window // yanflys hp gauges.
Issue 1- As you can see in the attached image, yanflys hp gauge is displayed below the battle status window, which makes it bit harder to see when the actor is selected, therefore I would like to have the HP gauge on top of the battle status window.
Issue 2- Again, as you can see in the attached image, if actor has MP, his name is not displayed in the battle status window. When actor has TP, it's name is displayed properly.
Here's the code that I use to edit the battle status window
JavaScript:
(function(alias) {
Window_BattleStatus.prototype.initialize = function() {
alias.apply(this, arguments);
this.x = 40;
this.y = 790;
};
}) (Window_BattleStatus.prototype.initialize);
Window_BattleStatus.prototype.numVisibleRows = function() {
return 6;
};
Window_BattleStatus.prototype.windowWidth = function() { return 760; };
Window_BattleStatus.prototype.windowHeight = function() { return 510; };
Window_BattleStatus.prototype.createContents = function() {
this.contents = new Bitmap(this.contentsWidth(), this.contentsHeight());
this.contentsWidth = 760;
this.contentsHeight = 510;
this.opacity = 255;
this.resetFontSettings();
};
Window_BattleStatus.prototype.drawGaugeAreaWithTp = function(rect, actor) {
if (actor == $gameActors.actor(5)) {
this.drawActorMp(actor, rect.x + 234, rect.y, 96);
} else if (actor == $gameActors.actor(3)) {
this.drawActorTp(actor, rect.x + 234, rect.y, 96);
}
};
Scene_Battle.prototype.updateWindowPositions = function() {};
Window_BattleStatus.prototype._refreshFrame = function() {};