MV Issues with battle status window // YEP visual hp gauge

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

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() {};
Your window's not wide enough. If there isn't room, it will automatically (or inherently because of the math) drop things. That's why the MP shows just the number without the current/max or a gauge.

I haven't looked at your code, but that's probably why the name isn't displaying either.

You need to either make the window wider or tell the gauges and buffers to take less space.

As far as the gauge under the window, as was recently described in some depth in another recent thread, that has to do with how the sprites are attached to each other and what's a child of what.

It will be easier to move your battler's position up slightly than it will be to change that.
Your window's not wide enough. If there isn't room, it will automatically (or inherently because of the math) drop things. That's why the MP shows just the number without the current/max or a gauge.

I haven't looked at your code, but that's probably why the name isn't displaying either.

You need to either make the window wider or tell the gauges and buffers to take less space.

As far as the gauge under the window, as was recently described in some depth in another recent thread, that has to do with how the sprites are attached to each other and what's a child of what.

It will be easier to move your battler's position up slightly than it will be to change that.
Thanks for the quick reply, regarding the issue with hp gauges being below battle state window, would it be possible to disable the highlight color of currently selected actor instead? If that would be disabled and I put window opacity to 0(I found a way to change opacity but not how to disable the highlight color), then it would work pretty much how I intent to.

EDIT: Window width doesn't seem to be problem as to why name of actor's who have MP is not displayed. In the code drawActorTp has the same x,y as drawActorMp, and name of actor's who have TP is shown(in game TP is called BT).

Original thread: https://forums.rpgmakerweb.com/threads/issues-with-battle-status-window-yep-visual-hp-gauge.161151/