MZ Window_Options and adding a custom command

Aloha kakou-

I am trying to add my own command to the options window.

Behold my code:
Window_Options-min.png


It runs without a hitch, alack the command "Hud Alignment" does not appear in the options window-
Options Menu.PNG


Can somebody enlighten me as to what I have neglected?

Mahalo nui in advance!
Your command is there, you just need to scroll down 😛

These are the lines of code from the Maker's Source Code you may want to alias to change the windows's height:

Code:
Scene_Options.prototype.maxCommands = function() {
    // Increase this value when adding option items.
    return 7;
};
Scene_Options.prototype.maxVisibleCommands = function() {
    return 12;
};

Example:

Code:
const alias = Scene_Options.prototype.maxCommands;
Scene_Options.prototype.maxCommands = function() {
  return alias.call(this) + 1;
}
Your command is there, you just need to scroll down 😛

These are the lines of code from the Maker's Source Code you may want to alias to change the windows's height:

Code:
Scene_Options.prototype.maxCommands = function() {
    // Increase this value when adding option items.
    return 7;
};
Scene_Options.prototype.maxVisibleCommands = function() {
    return 12;
};

Example:

Code:
const alias = Scene_Options.prototype.maxCommands;
Scene_Options.prototype.maxCommands = function() {
  return alias.call(this) + 1;
}

@Aerosys thank you!
it works- thank you, again @Aerosys

Original thread: https://forums.rpgmakerweb.com/threads/window_options-and-adding-a-custom-command.141521/