MZ Setting Default Stretch Screen "ON" in VisuStella Options Core

Hi folks,

I am trying to set up some default settings in the Options Core plugin, but am having a weird issue.

When configuring the options, there is a "default" section with some JavaScript.

For the fullscreen option, it looks like this:

// Declare Constants
const config = arguments[0];
const symbol = arguments[1];

// Perform Actions
ConfigManager[symbol] = !!Graphics._isFullScreen();

It normally defaults to windowed mode (arguments[0]), so changing it to arguments[1] instead has made the option default to fullscreen.

Now, the issue is, as far as I can tell the "Stretch Screen" option below it is set up the exact same way, and it also defaults to not stretch (arguments[0]), however when I change it to arguments[1] like so:

// Declare Constants
const config = arguments[1];
const symbol = arguments[1];

// Perform Actions
ConfigManager[symbol] = true;

...nothing happens. The game loads with it set to off just as normal. It doesn't change the default selection, highlight "on" instead or anything.

Can someone out there give me a hand with this? It is just one of the default options added with Options Core, so anyone can go and take a look at how its set up if they want.

tldr: I am trying to get Options Core to set Stretch Screen to "ON" by default.

Thanks!
Nevermind, figured it out!

For anyone who might find this thread looking for a solution, you need to set the default JS to:

// Declare Constants
const config = arguments[1];
const symbol = arguments[1];

// Perform Actions
ConfigManager[symbol] = true;
Graphics._stretchEnabled = true;
Graphics._updateAllElements();
Graphics._stretchScreenOptionsCore();

The script that comes in the plugin by default for this option doesn't contain all of the commands that need to run to actually enable stretch screen, so this adds the missing bits.

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.

Original thread: https://forums.rpgmakerweb.com/threads/setting-default-stretch-screen-on-in-visustella-options-core.165735/