set in-game resolution based on desktop resolution

NOTES

  1. MUST be compatible with Yanfly Engine Ace.
  2. This script WILL be used in a commercial game.
     
So basically I want a script that will allow me to set a specific resolution that the game will be played in based on the specified desktop resolution. I also want a script in there that allows me to set a certain level of zoomout based on the resolution so that the graphics never look ugly.

It also needs to be able to affect things like:

- The title screen graphic. (perhaps it would be possible to set a certain graphic based on resolution?)

- in game windows such as the one the main menu is in and the pause menu. (Dialog too! but not limited to those). The size of the windows would be dictated by the in-game resolution.

- Must have an option in-game that allows users to change their resolution at will.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.


at OP's request

Original thread: https://forums.rpgmakerweb.com/threads/set-in-game-resolution-based-on-desktop-resolution.36577/