MZ Changing the size of healthbars and such in the battle screen. (SOLVED)

Where would I find the width and/or height of the bars in the battle screen. See below:
1626965548933.png


Want it to fill the the entire box basically.

SOLVED:

I solved it with this. It will automatically resize your status gauges based on your screen resolution. I don't know if it collides with other plugins or such. I've only tested it for 1080p. But go ahead and try it out if you wish.
JavaScript:
//=============================================================================
// BISH_battleCore_resize.js
//=============================================================================

/*:
 * @plugindesc Changes the status gauges based on your screen resolution.
 * @author Bishiba
 * Free to use for commercial use.
 * Credits appreciated but not required.
 * @help Help text
 *
 */
 
var BISH = BISH || {};
BISH.battleCore = BISH.battleCore || {};

BISH.battleCore.resizeBattleWindow = function() {
    Sprite_Gauge.prototype.bitmapWidth = function() {
        return 128 * (Graphics.width/816);
    };
   
    Window_StatusBase.prototype.placeGauge = function(actor, type, x, y) {
        const key = "actor%1-gauge-%2".format(actor.actorId(), type);
        const sprite = this.createInnerSprite(key, Sprite_Gauge);
        console.log(this.createInnerSprite(key, Sprite_Gauge))
        sprite.setup(actor, type);
        sprite.move(x, y-20);
        sprite.show();
    };
   
    Window_BattleStatus.prototype.drawItemStatus = function(index) {
        const actor = this.actor(index);
        const rect = this.itemRectWithPadding(index);
        const nameX = this.nameX(rect);
        const nameY = this.nameY(rect);
        const stateIconX = this.stateIconX(rect);
        const stateIconY = this.stateIconY(rect);
        const basicGaugesX = this.basicGaugesX(rect);
        const basicGaugesY = this.basicGaugesY(rect);
        this.placeTimeGauge(actor, nameX, nameY-10);
        this.placeActorName(actor, nameX, nameY-30);
        this.placeStateIcon(actor, stateIconX, stateIconY);
        this.placeBasicGauges(actor, basicGaugesX, basicGaugesY);
    };
}
Before:
1626965548933.png

After:
1626985420198.png
Try looking at the prototypes in rmmz_windows.js beginning on line 6038. These are for the BattleStatus class.
Try looking at the prototypes in rmmz_windows.js beginning on line 6038. These are for the BattleStatus class.
Been going through it for an hour at this point. I can't seem to figure anything out here... I don't get where rect is being established. But I am currently trying to rewrite some of it and hopefully I can work it out. Will be back if I fail at it 😛

Best regards!
Took me quite some time, but with the tip from Arctica I finally managed to locate the simple line to fix it. It is in rmmz_sprites.js at line 52. That's for width. Line 56 for height.

JavaScript:
Sprite_Gauge.prototype.bitmapWidth = function() {
    return 128; //Change the value to what you desire
};

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-size-of-healthbars-and-such-in-the-battle-screen-solved.138796/