MZ Help to remove BGS volume and Me volume from options menu

Hello everyone. How do i remove BGS volume and Me volume from options menu?

Ive tried some plugins without any sucsess, i wasnt suggested to dig into the game files.


Is there a easy way? I can remove the names from the database itself but the line in option menu isnt removed.


Thanks alot
You can copy and paste the following into a new plugin. Unless you're using any other plugins to affect the Options menu, this should work. It just removes the two commands that added BGS and ME volumes, and reduces the size of the command window (otherwise you'd see two blank lines).

JavaScript:
Window_Options.prototype.addVolumeOptions = function() {
    this.addCommand(TextManager.bgmVolume, "bgmVolume");
    this.addCommand(TextManager.seVolume, "seVolume");
};

const _alias_Scene_Options_maxCommands = Scene_Options.prototype.maxCommands;
Scene_Options.prototype.maxCommands = function() {
    return _alias_Scene_Options_maxCommands.call(this) - 2;
};
Unless you're on some type of crusade against people who wear headphones, please don't actually remove those options from the menu.

Original thread: https://forums.rpgmakerweb.com/threads/help-to-remove-bgs-volume-and-me-volume-from-options-menu.149010/