MV Changing gauge's height

Hi, i'm using Jeremy Cannady's enemy HP Bar Gauge script, I wonder if there is anyway to change the gauge's height? like i want to make it slimmer
The code to draw the gauge should be this if i'm not wrong

Code:
//FUNCTION: draw the hp guage
Enemy_Bars.prototype.drawBar = function() {
    //Go through the enemies and draw the bars
    for(var i = 0; i < $gameTroop._enemies.length; i++){
        var enemyId = $gameTroop._enemies[i]._enemyId;
        var selected = $gameTroop._enemies[i]._selected;
        if(BattleManager._phase === "action" || BattleManager._phase === "turn"){
            var turn = true
        }else{
            var turn = false
            console.log(BattleManager._phase)
            };
 
        var enabled = false;
        var meta = new Array(4);
        meta[0] = $dataEnemies[enemyId].meta.hpBar
        meta[1] = $dataEnemies[enemyId].meta.hpBarSelectionOnly
        meta[2] = $dataEnemies[enemyId].meta.hpBarTurnASelection
        meta[3] = $dataEnemies[enemyId].meta.hpBarTurnOnly
 
        if(meta[0]){
            enabled = true;
        }else if(meta[1] && selected){
            enabled = true;
        }else if(meta[2] && (selected || turn)){
            enabled = true;
        }else if(meta[3] && turn){
            enabled = true;
        }else{
            enabled = false;
        }
       
        //Current hp  
        var currentHp = $gameTroop._enemies[i]._hp;
        //If the enemy hp is not zero then draw the hp bar
        if(currentHp > 0 && enabled){
            //Max hp defined from the enemies parameters.
            var maxHp = $dataEnemies[enemyId].params[0];
            //Rate is the currnet hp compared to the max hp
            var rate = currentHp/maxHp;
            //Width of the bar
            var width = $dataEnemies[enemyId].battlerWidth / 2;
            var xOffset = $dataEnemies[enemyId].battlerWidth / 2 - 43 ;
            var x = $gameTroop._enemies[i]._screenX - xOffset;
            var y = $gameTroop._enemies[i]._screenY - 32;
            //Draw the guage

            this.drawGauge(x, y, width, rate , this.guageColor(0.1), this.guageColor(0.1));
        };
    };
 };
The whole plugin is here

*I posted this to the wrong thread, sorry, really appriciated if you move this to the right thread for me, because i dont know how to, thanks!

I've moved this thread to Plugin Support. Thank you.

You will have to modify the method which draws the gauge, inherited from Window_Base:
JavaScript:
// Replace the value in "gaugeHeight" with whatever you see fit
Enemy_Bars.prototype.drawGauge = function(x, y, width, rate, color1, color2) {
    var fillW = Math.floor(width * rate);
    var gaugeHeight = 6;
    var gaugeY = y + this.lineHeight() - 8;
    this.contents.fillRect(x, gaugeY, width, gaugeHeight, this.gaugeBackColor());
    this.contents.gradientFillRect(x, gaugeY, fillW, gaugeHeight, color1, color2);
};

You will also have to add this code to the plugin since it's not there by default.
You will have to modify the method which draws the gauge, inherited from Window_Base:
JavaScript:
// Replace the value in "gaugeHeight" with whatever you see fit
Enemy_Bars.prototype.drawGauge = function(x, y, width, rate, color1, color2) {
    var fillW = Math.floor(width * rate);
    var gaugeHeight = 6;
    var gaugeY = y + this.lineHeight() - 8;
    this.contents.fillRect(x, gaugeY, width, gaugeHeight, this.gaugeBackColor());
    this.contents.gradientFillRect(x, gaugeY, fillW, gaugeHeight, color1, color2);
};

You will also have to add this code to the plugin since it's not there by default.
this is life saving, thank you so much :LZSjoy:

Original thread: https://forums.rpgmakerweb.com/threads/changing-gauges-height.165502/