Showing YEP ATB in custom HUD

Hi all

I'm currently using YEP ATB plugin and I want to redesign the battle HUD. The problem is that I've got no idea how to grab a variable to represent the current ATB gauge's value or the charge value.

I think that the gauge graphics update per 'tick' rather than it holding a direct variable to represent where the gauge has got to, which I just don't know how to intercept.

If anyone can help at all it'd be greatly appreciated.
Found the tick counter and assigned the total value to a variable, so mostly solved. Slight issue with the variable jittering just before it resets to zero, but can probably brute force that somehow.

Solved.

Original thread: https://forums.rpgmakerweb.com/threads/showing-yep-atb-in-custom-hud.129018/