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!
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!