MZ Don't display TP outside of battle?

Hi, I'm trying to make it so my game only displays my characters' TP while in battle. As of now, it shows their TP on the main menu, the skills menu, the equip menu, and the status menu. I do not want it to show in any of these cases, I only want to show character TP during battles, as it is, IMO, visual clutter that serves no purpose outside of that scenario in my game. Is there a decent way to do this? My experience with programming is very limited.
If you use VisuStella stuff, you can comment out (with //) the line where it draws the tp gauge in the Main Menu Core Settings: List Style Settings (where it says 'Place Gauges'). I think that changes them for all the pages (unless you use updated layouts with the other plugins, where you might have to look to edit them too). There might be a simpler way though.
Pretty sure this would need a plugin, so~

I've moved this thread to Plugin Requests (from MZ Support). Thank you.

If you don't use VisuStella, you could try this:
Spoiler: plugin code
JavaScript:
/*:
 * @target MZ
 * @plugindesc Hide TP gauges when not in battle.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/169119/
 * @help Free to use and/or modify for any project, no credit required.
 */
void (alias => {
  Sprite_Gauge.prototype.currentValue = function() {
    if (this._statusType === "tp" && !$gameParty.inBattle())
      return NaN;
    return alias.apply(this, arguments);
  };
})(Sprite_Gauge.prototype.currentValue);
Just save it as a .js file (File Type: All Files, Filename: whatever.js) into your project's js/plugins subfolder, then import that file through the Plugin Manager.
If you use VisuStella stuff, you can comment out (with //) the line where it draws the tp gauge in the Main Menu Core Settings: List Style Settings (where it says 'Place Gauges'). I think that changes them for all the pages (unless you use updated layouts with the other plugins, where you might have to look to edit them too). There might be a simpler way though.
(using VisuStella here, should have clarified earlier)
I tried this, and it did not change anything. :rswt2:
My suggestion is pretty non-intrusive so it might still work with VisuStella.
My suggestion is pretty non-intrusive so it might still work with VisuStella.
ah i had tried it already, and it only worked once i disabled my VS plugins. i really appreciate the help though!!
Can you show a screenshot of how you modified the VisuStella settings?

EDIT: Nevermind, I tested it quickly and seems the edit only affects the menu front page, even though you can choose the plugin to decide the inner menu styles? Also, in their inner menu plugins I can only find a line command 'placeBasicGauges'. Maybe someone else knows better though.
It can all be done within VS settings. I have exactly that sorta setup. Where TP only displays in battle.

Uncheck the display TP in menus option in the default system database.
Then remove any instance of TP showing in menus in all of VS plugin parameters.
Check the Core, Battle, Element/Status, and Skill/State plugins.

It's all in there for you. Just keep digging in the plugin settings/parameters.

Original thread: https://forums.rpgmakerweb.com/threads/dont-display-tp-outside-of-battle.169119/