Switches in Options Menu

Can you put switches in the option menu? If someone could create a script that lets you do this it would be very helpful. Also, if it were either stackable (i.e. one plugin could be placed on top of another one so you can customize where they are in the options menu) or enable you to enter in multiple switches for the option menu within one plugin (YEP Menu Manager style) it would be great, since some people would require more than two switches in their options menu (I only need two).


I haven't seen this anywhere else yet and I don't know why someone hasn't done it. I asked how I would go about doing it in the Javascript questions that don't deserve their own thread topic, but the answer I got was a little cryptic and I couldn't figure out where to put the lines for the life of me.


Thanks 🙂
Can you show us the "cryptic" response?


I can't think of a way to do this without a plugin or some fancy script calls.
Putting switches in the option menu is a possibility, but you need to probably do two things.


Add / Get these commands from the dev. Then bind them  to the new options you put inside the menu. 


Reason being first you draw the text, then you link stuff to the text. The thing you want to link being the current value of the switch, or setting it from there. 


Then, you'd have to increase the window size to fit your options or make it scroll.


So that's some of the things you'd need to do.
I'm working on a plugin for this. Should be done soon.


Edit:


@Prescott


https://raw.githubusercontent.com/DreamXRMMV/Rpg-Maker-MV/master/DreamX_Options.js
@Skunk http://imgur.com/yrCgz0D picture too big for here


@DreamX this is awesome! thank you!


EDIT: If you hit enter or click the mouse on the options, they can turn from OFF to ON but not ON to OFF, to change it to OFF you need to hit the left arrow key. Any chance of fixing?
@Skunk http://imgur.com/yrCgz0D picture too big for here


@DreamX this is awesome! thank you!


EDIT: If you hit enter or click the mouse on the options, they can turn from OFF to ON but not ON to OFF, to change it to OFF you need to hit the left arrow key. Any chance of fixing?

Yea, use the latest version from the same link.

Original thread: https://forums.rpgmakerweb.com/threads/switches-in-options-menu.64594/