Hello everyone! I’m using Visustella Main Menu and I managed to set the Variable Window to display the location the player is at which is great but I’ve ran into an issue.
As you can see the name of the location and the “Location” variable name overlap. I was wondering if it would be possible to make it so the location name is displayed in a different row under the “Location” variable name.
I know that it’s tricky with Visustella but here is the code anyway
I haven’t tested this on your setup, so before you go further, open the console with F8 and type Window_MenuVariables to check it comes back as a class and not undefined. If it’s undefined then the window is named something else in your version and the override won’t be attaching to anything.
That’s the one, so the override will have something to attach to.
Next step is putting that code into a new .js file in your js/plugins folder, adding it in the Plugin Manager underneath VisuMZ_1_MainMenuCore, and changing the wh line in the JS: X, Y, W, H parameter to use rows * 2. Post a screenshot of how the window comes out and we can go from there.
drawTextEx resets the font settings when it starts but not when it finishes, so if there’s a color code like \C[16] sitting in the variable’s name in the Database, that color is still active by the time the value gets drawn on the line below it.