MZ MOG Battle HUD - Show HP on the first turn instead of on battle start

Hiya,

I'm just getting started with making a project in RPGMMZ and have just a quick question about tweaking the MOG_BattleHud plugin. As it comes out of the box, the HP/MP/TP Gauges and numbers load in as soon as the battle starts. I already have a script to skip the Party Window, but they still show with the initial message.

MOGHUD1.png


If possible, I'd like them to appear along with the Command Window and Show Pictures command, so they show at the same time as my custom HUD.

MOGHUD2.png


I've taken a look into the script, but I'm a javascript newbie and really can't make sense of it. Apologies if this is a common question, but I'd appreciate the help!
Documenting my incredibly nasty (but working) solution here:

I changed the battleHudOpacity section of the code to:

//==============================
// * battleHudOpacity
//==============================
Scene_Battle.prototype.battleHudOpacity = function() {
if ($gameSwitches.value(1))
return 255;
else
return 0;
};

And had my BattleStart common event (which draws the rest of the HUD) flip that switch on. I have to set the switch back off after each battle and this only works because I'm not using the BattleHud for anything until the command window appears, but hey, it does the trick.

Original thread: https://forums.rpgmakerweb.com/threads/mog-battle-hud-show-hp-on-the-first-turn-instead-of-on-battle-start.171250/