MZ Any plugins or tips for resizing GUI assets for lower-res games?

This is a problem I imagine a lot of people run into yet I can never seem to find a good solution, but when I reduce the window resolution for lower-resolution games, the text boxes and other GUI elements end up taking up too much space and/or squashed in a way that make them unusable. Are there any half-decent plugins for resizing them to fit better, or do I have to fix it manually, and if it's the latter, what parts of the code should I focus on editing?
This is a problem I imagine a lot of people run into yet I can never seem to find a good solution
The common solution is to do it the other way. Instead of reducing the window dimensions (not resolution) down, leave them the same or adjust them slightly larger so that the window fits the assets you want to use at double the size.

That way you don't have to deal with the issues of sizing the UI down in the engine, and likely more people will play your game (because who wants to squint at a tiny window on their monitor?).
There is no real solution for your problem, because fewer pixel on the screen means fewer information that can be displayed.
and while that can be done on the map, it is much more difficult on the menu (or any text screen).

There is some 'give' on the default menues, but not enough to significantly reduce the size needed for the existing information, and that means you need to either reduce or reorder the information displayed - and reordering means distributing it over more screens in this case.
which means it is a massibe change instead of some edits to the existing menues.

that is why most people go the other way already mentioned above: only pretending to be of a lower res by using 2x2 pixel blocks for each 1 pixel in lower res.
Well that's frustrating. Why do the options to use smaller tiles and lower resultions even exist in the program when using them essentially breaks the game?
those options were added in a later update because a lot of people demanded them.
as such they had limited support and require more work to be used.

but they can be used with that additional work.
and the main reason for that demand was the ability to use 32-pixel tiles (which are a lot more common as that was used for XP, VX and VXA), which are not for low-res games either.
it's just that the additional work for even lower than 32 grids was nothing to add when adding the ability to change grid size at all.
Well probably there are not so many people who run into this problem or they work around the problem. 😛
I saw someone who developed a MZ game using a map zoom plugin (scale everything except the UI).
I guess that is because it is easier to do. Making a small menu requires you to edit lots of numbers, in theory it is not hard, but it requires hard work.

Edit*
Well, it seems there's a window layer in almost every scene of MZ. So in theory you can scale the window layer by 50% and the game is still playable. Then you'll need to deal with text positions I guess, or some odd pixels look blurry if you are using a pixel font.

1732976454677.png
1732976861385.png


Console test:

JavaScript:
SceneManager._scene._windowLayer.scale.set(0.5,0.5);
SceneManager._scene._windowLayer.x=0;
SceneManager._scene._windowLayer.y=0;
Well probably there are not so many people who run into this problem or they work around the problem. 😛
I saw someone who developed a MZ game using a map zoom plugin (scale everything except the UI).
I guess that is because it is easier to do. Making a small menu requires you to edit lots of numbers, in theory it is not hard, but it requires hard work.

Edit*
Well, it seems there's a window layer in almost every scene of MZ. So in theory you can scale the window layer by 50% and the game is still playable. Then you'll need to deal with text positions I guess, or some odd pixels look blurry if you are using a pixel font.

View attachment 324187View attachment 324188

Console test:

JavaScript:
SceneManager._scene._windowLayer.scale.set(0.5,0.5);
SceneManager._scene._windowLayer.x=0;
SceneManager._scene._windowLayer.y=0;
I tried using that code to scale down the window layer, but I just get an error that says "Cannot read property '_windowLayer' of null".
I tried using that code to scale down the window layer, but I just get an error that says "Cannot read property '_windowLayer' of null".
It is not a plugin, yet. I just test it in the menu scene using the console to see if it can be done.
I tried running it as a script and it seemed to work with shrinking text boxes. Any way to make this work as a plugin?
I tried running it as a script and it seemed to work with shrinking text boxes. Any way to make this work as a plugin?
I haven't looked into the code of various scenes yet. But I guess the code can be put into the window layer class. Let me see if I can make some working demo when I have the time.

But I still recommend you use a map zoom plugin because there maybe other HUD/menu plugins you may want to use in the future that may or may not be compatible with the code.

Edit* Done.

You can edit the numbers if you don't use half size.

JavaScript:
(function(alias){
WindowLayer.prototype.update = function() {
  //adjust scale if needed, currently this seems to work for every scene
  this.scale.set(0.5,0.5);
  this.x = 0;
  this.y = 0;
  alias.call(this);
};
})(WindowLayer.prototype.update);

Original thread: https://forums.rpgmakerweb.com/threads/any-plugins-or-tips-for-resizing-gui-assets-for-lower-res-games.173558/