How can I change the width of individual UI elements?

I used to work with RMMV, and just got MZ a day ago and tried making a quick test project to test out the new features. I made a 16:9 game but didn't like how the dialogue box covered the entire screen, but I learned about the differences between the game resolution and the UI resolution, and now the dialogue box is as I wanted it to be.
1692707235118.png


I also like the less-wide menu, however, I do not like how the touch icon for the menu is now more to the side rather than the corner.
1692707288266.png


It's not a huge deal but, is there a way to individually change the resolution of parts of the UI?
Just to put it out there, "resolution" does not really mean what you're using it to mean. Technically speaking, resolution is an indication of how many pixels are being displayed in a given area of your monitor.

So if you take a fullscreen game and make it display at a lower resolution, it will appear larger because you're using multiple of your monitor's pixels to display one of the game's pixels.

When you change your RPG Maker game's size (the screen width/height settings) you're not changing the resolution. One pixel is still displaying one pixel, you're just making the window larger or smaller so you see more pixels on your screen.

MZ's settings to have the UI area width/height be separate from the screen settings is a fast way to control how much space the UI takes up. But you can absolutely make the UI area match your screen size and then make a little plugin file where you copy the code that defines various parts of the interface and change it manually.

For example:
Code:
Scene_Map.prototype.createMenuButton = function() {
    this._menuButton = new Sprite_Button("menu");
    this._menuButton.x = Graphics.boxWidth - this._menuButton.width - 4;
    this._menuButton.y = this.buttonY();
    this._menuButton.visible = false;
    this.addWindow(this._menuButton);
};

In the above code, the Graphics.boxWidth indicates what you defined for the UI area width. So the default placement is to draw the menu button with a 4-pixel clearance from the edge of that.

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-change-the-width-of-individual-ui-elements.160510/