Visual enemy TP gauge

I'm looking for a plugin similar to Yanfly's Visual Enemy HP Gauges, but for enemy TP instead. It would be great if it was compatible with the visual HP gauge plugin.
I wonder if DoubleX RMMV Status Bars can do the job 🙂
I made an addon for Yanfly's Visual HP Gauges that adds HP and TP Gauges.

https://www.dropbox.com/s/7t5eqy8eqxyk4vv/WAY_X_VisualGaugesAddon.js?dl=0

EDIT: updated link
I made an addon for Yanfly's Visual HP Gauges that adds HP and TP Gauges.

https://www.dropbox.com/s/o6l4yg98qxccvt5/WAY_X_VisualGaugesAddon.js?dl=0
Works like a charm. 😀
I made an addon for Yanfly's Visual HP Gauges that adds HP and TP Gauges.

https://www.dropbox.com/s/o6l4yg98qxccvt5/WAY_X_VisualGaugesAddon.js?dl=0
I'm getting a TypeError saying "Failed to execute 'getImageData' on 'CanvasRenderingContext2D': float parameter 1 is non-finite"

When trying to start a battle test...
@TheMasterFighter
Using battle test can cause issues when using a lot of YEP Plugins, therefore it's better to avoid that and just use a Battle Processing ingame.

Does that error occur in game as well?
@waynee95
Yes, the error happens on a field battle too...
@waynee95
Got it working...!
Note to self: don't try to edit the plugin directly....nomatter how insignificant you think the change could be :blush:
Edit
Does it work for MP gauges too?
@waynee95 great plug-in! It really helps with battle strategy if you can see the enemy's MP/TP.

Is it possible to make this work with Yanfly's Segmented gauges? It seems like this should be an easy edit, but I've been tinkering with the JavaScript for a while now and I can't quite figure it out

Original thread: https://forums.rpgmakerweb.com/threads/visual-enemy-tp-gauge.78726/