Moghunter - Party HUD - I want vertical bar instead of horizontal

Plugin: http://pastebin.com/q9SQ45gL


Preview:


rmv_phud01.jpg



Hi,


My problem is that my HUD has vertical bars instead, I was able to half tweak it but the bar is not filling from the bottom to top but instead from top to bottom.


I don't understand why it's happening and how to correct it.


Could someone help me, please ?


Lines that I changed 678-686:


//============================== // * refresh Meter //==============================


PartyHud.prototype.refreshMeter = function(sprite,value1,value2) {


var w = sprite.bitmap.width;


var h = sprite.bitmap.height;


var wd = h * value1 / value2;


sprite.setFrame(0,0,w,wd);


};

Original thread: https://forums.rpgmakerweb.com/threads/moghunter-party-hud-i-want-vertical-bar-instead-of-horizontal.72043/