MV Hide Yanfly JP text from main menu

I started using Yanfly's JP plugin, but it's graphically conflicting with Galv's bust menu plugin. As you can see in the first picture, the JP text (PA in this case) clips through the class name.

1d079c19e0719de8391bab3c3a8d80de.png


There is an option in the plugin to hide it, but then it hides it from EVERY menu, including the status menu, where I actually want it to show. I managed to reposition it in the status menu, so it doesn't clip there anymore.

9d68b1847886201b9e40a8c918d04501.png


I'm looking for a way to hide the JP text from the main menu ONLY, and keep it in the status menu. I tried messing with the .js, but everything I did kept hiding it from the status menu and never from the main menu.
You should probably edit out the quote from your post and replace it with a link to the plugin page - posting that plugin's code is a violation of Yanfly's terms of use.

That being said, it should be easy to remove that one placement.

Open the plugin in a text editor and go to line 682 - change it to read:
Code:
if (!this._drawMenuJP || SceneManager._scene instanceof Scene_Menu) return;

That should do what you want.
Alright, I removed the code, thanks for pointing it out.
The change tho doesn't seem to do anything. Line 682 is just a
Code:
};
and if I change that, the JP text disappears from every menu.
Then you're either somehow on the wrong line, or you don't have the current version of the plugin. The current version, to work with MV 1.6.1, is 1.11.

It should by default read if (!this._drawMenuJP) return;
I'm currently at 1.10, although version 1.11 looks like just an optimization fix, so not sure if that's the case.
...optimization fixes means the code is changed...

Regardless, I just gave you what the original line said, so if there's some reason you don't want to update for the fixes, you should be able to find whatever line it is in your version.
I've found the line and changed it, but it still doesn't do anything. Either it's a compatibility problem within Galv's script or, as you said, it's just the version screwing it up. I'll try to update it soon and see if it works. Thanks for the help :ywink:
I don't have Galv's plugin, but I don't see how that could be adding the JP back in if they're removed in Yanfly's original code. I did test this in a project only using the JP plugin, so perhaps try that - turn off Galv's and see if you've applied the edit correctly.

Also, make sure that after you make any changes you're right-clicking the plugin in your plugin manager, hitting reload, and then saving your project and starting a new game. Save games will have the old code in them.
Looks like the problem actually is Galv's plugin, I tried playing without it and it worked as intended.
I also tried to put the JP plugin under Galv's just to test, and nothing, the issue is still there.
Okay...so the change to the JP plugin didn't work because Galv actually has specific code that looks for Yanfly's JP and adds it in. I have no clue why this was done if he wasn't going to format it properly.

Regardless, in Galv's plugin, go to line 264 and at the beginning of the line add /*
Then at the end of line 267 add */

That'll do you.
It works like a charm now. I didn't even know Galv released a new version with the JP integration, no wonder I didn't think of looking for it in there.
Anyway, thanks a lot for the help, man, really appreciate it :uswt:

Original thread: https://forums.rpgmakerweb.com/threads/hide-yanfly-jp-text-from-main-menu.140399/