MV How to alter the layout of things inside windows?

I wasn't entirely sure where to place this because my concern mostly deals with altering the game's built-in scripts.

I've been trying to make a game at a lower resolution (480x432) and I've managed to achieve a look that I like. I was able to move around and resize a bunch of windows using the HUD Maker plugin by SumRndmDde and I've gotten a bunch of menus to fit in the tiny resolution. But other menus just can't fit no matter how I move things around, like the status screen and the equip screen. The text within some of the windows in those screens is just too widely spaced and shrinking the windows just cuts some of it off.

I was just wondering how to alter the layout of the stuff within windows? I'd assume it would require fiddling with the rpg_windows.js file, but I'm having trouble finding what I need to be tweaking.

For reference, here's what I'm trying to do specifically:
- Change the spacing between the elements of the status screen and the equip screen
- Remove the faces and icons pretty on all the menu screens to save a little bit more space
- Changing the position of the "HP" label in the battle screen

Hoping somebody could point me to the right direction!
Moderator note: Moving to Learning Javascript
I wasn't entirely sure where to place this because my concern mostly deals with altering the game's built-in scripts.

I've been trying to make a game at a lower resolution (480x432) and I've managed to achieve a look that I like. I was able to move around and resize a bunch of windows using the HUD Maker plugin by SumRndmDde and I've gotten a bunch of menus to fit in the tiny resolution. But other menus just can't fit no matter how I move things around, like the status screen and the equip screen. The text within some of the windows in those screens is just too widely spaced and shrinking the windows just cuts some of it off.

I was just wondering how to alter the layout of the stuff within windows? I'd assume it would require fiddling with the rpg_windows.js file, but I'm having trouble finding what I need to be tweaking.

For reference, here's what I'm trying to do specifically:
- Change the spacing between the elements of the status screen and the equip screen
- Remove the faces and icons pretty on all the menu screens to save a little bit more space
- Changing the position of the "HP" label in the battle screen

Hoping somebody could point me to the right direction!
Quite a bit of that is hard-coded values, like window padding and item padding. They're functions that can be modified, but they return a hard number, meaning without editing, there is going to be a minimum space between certain things, meaning there is a theoretical minimum resolution the base engine can have. Window padding determines the "usable" space inside a window, to account for the borders of the window bitmap. Hence why if you stick something in a window using 0, 0 as the coordinates, it appears INSIDE the window's top left border instead of on TOP of it, because the coordinates are are modified with the window's padding first.

Same for selectable items like menu commands and the item screen, there's an item padding that controls how close those items can be to each other. There's also an itemRect function in windows like that that determine the button's size, though I think those take the window size itself into account.

Some things also either hard-code certain sizes, or in the case of images, likely don't scale the images they're drawing, keeping it at the engine's default asset specs.

For removing the face and icon drawing, there are two specific functions that handle those. Deleting the calls to those functions in the objects in question should take care of that.

In some cases, it's likely not the window that's the problem, but the scene, as it handles a lot of stuff like that too. So if you can't find what you need in the rpg_windows.js, try looking in rpg_scenes.js as well.
Just out of curiosity, why exactly do you want to want the game to actually run at such a tiny resolution? Anyone playing it will be leaning in to squint, or zooming it back up (or, very possibly, not bother). Do you have some very specific device in mind that people will be playing it on?

You could just keep the game at a reasonable size and just resize/edit/pixelate the graphics to emulate a lower resolution. It would probably be much less work than editing so much of the engine's base code.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-alter-the-layout-of-things-inside-windows.137917/