MV YanFly Options Remove the categories window.

Hi All,

Maybe someone can help me. Does anyone know of a way to get rid of the categories in the option core plugin and just have it go directly to the "all" options screen? Any advice would be greatly appreciated. Let me know if you need any additional information.
The category organisation is one of the main purposes of YEP Options Core...have you considered a different plugin?

With Yanfly's plugin, this might work (untested):
Spoiler: plugin code
JavaScript:
/*: 
 * @target MV MZ
 * @plugindesc 
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/172169/
 * @orderAfter YEP_OptionsCore
 * @help Designed to be loaded after YEP_OptionsCore.
 *
 * Free to use and/or modify for any project, no credit required.
 */
// Patch - on category window init: hide, deactivate, and auto-OK.
;void (function(alias) {
'use strict';
  Window_OptionsCategory.prototype.initialize = function() {
    alias.apply(this, arguments);
    const w = this._categoryWindow;
    w.hide();
    w.deactivate();
    this.onCategoryOk();
  };
})(Window_OptionsCategory.prototype.initialize);

// Override - cancel options pops scene, skipping category window.
Scene_Options.prototype.onOptionsCancel = function() {
  this.popScene();
};
Sadly that didn't seem to work.

As for finding another plugin, that's what I've been figuring out. I really just wanted the master volume option. The rest in options core is a bit more than my game really needs.

I will keep tinkering. But thank you so much for your help. It's super appreciated.
I haven't tried it myself, but triacontane's plugins are usually good:

Otherwise...I noticed a mistake in the code I posted, you could try this instead:
Spoiler: plugin code v2
JavaScript:
/*: 
 * @target MV MZ
 * @plugindesc v2 - do not display categories with YEP_OptionsCore.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/172169/
 * @orderAfter YEP_OptionsCore
 * @help Designed to be loaded after YEP_OptionsCore.
 *
 * Free to use and/or modify for any project, no credit required.
 */
// Patch - on scene creation: hide, deactivate, and auto-OK the category window.
;void (function(alias) {
'use strict';
  Scene_Options.prototype.create = function() {
    alias.apply(this, arguments);
    const w = this._categoryWindow;
    w.hide();
    w.deactivate();
    this.onCategoryOk();
  };
})(Scene_Options.prototype.create);

// Override - cancel options pops scene, skipping category window.
Scene_Options.prototype.onOptionsCancel = function() {
  this.popScene();
};

// Patch - move options window over a bit into the now-empty space.
void (function(alias) {
  Window_Options.prototype.updatePlacement = function() {
    alias.apply(this, arguments);
    this.x = this.x >> 1;
  };
})(Window_Options.prototype.updatePlacement);
SRD also has a plugin that adds a master volume setting to Options.
@caethyril That worked perfectly. Thank you so much.

@ATT_Turan Yeah I might go with this in the end, as I don't have a huge need for all of the other features Options Core offers.

But thank you to both of you, you've been such a great help and have given me excellent options in what I can use!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-options-remove-the-categories-window.172169/