How to add new setup options other than on/off

Does anyone know how to create a new positon in options which does not contain the selection on / off but the the range, or displays text.

For example, the position can set the range for variable.
I tried to copy, paste, edit from audio options, etc. but nothing works.


I have :


ConfigManager.dekoWindowskinOption = function (config, name) {
var value = config[name];
if (value !== undefined) {
return Number(value).clamp(0, 100);
} else {
return 1;
}

};



But it still is toggle On/Off


Can someone explain me how it works because i can't find a way....
Thank you in advance.
I recently made a plugin adding an encounter rate to the options menu.


Feel free to look it over to see if you can figure it out.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-add-new-setup-options-other-than-on-off.62425/