MZ [SOLVED] How do i resize the opening main menu window?

Hello! i wanted to remove the options commands from the opening main menu.
i used this code i found here
Code:
Window_TitleCommand.prototype.makeCommandList = function() {
    this.addCommand(TextManager.newGame,   'newGame');
    this.addCommand(TextManager.continue_, 'continue', this.isContinueEnabled());
    // this.addCommand(TextManager.options,   'options');
};

Window_MenuCommand.prototype.addOptionsCommand = function() {
};
it worked but it leaved an empty space on the window.. how i edit/fix this?
is there any plugin that let you adjust those coordinates or something?
it would be nice idea for custom menus..
thanks!
Spoiler
pic.png
This should work to reduce the height of the title menu:
JavaScript:
;void (alias => {
  const ROWS = -1;  // increase height by this many rows
  Scene_Title.prototype.commandWindowRect = function() {
    const rect = alias.apply(this, arguments);
    rect.height += ROWS * Window_Selectable.prototype.itemHeight();
    return rect;
  };
})(Scene_Title.prototype.commandWindowRect);
You can change its position via Database -> System 1 -> Title Screen: Command Window.
Thank you very much!! Works perfectly!

Edit: can i ask another thing?.. can i alternatively add at the missing spot an "close game" option?
There are various plugins for that, e.g.
  • Luna Quit to Desktop:
  • The ExitToDesktop plugin here:
  • Feature Q12 of my plugin Cae_Tweaks:
Probably many more, I just found the first two with a quick search~

(I've noticed that many MZ plugins for adding/removing commands often don't adjust the height of the corresponding window, which can cause scrolling or empty space. But if you're basically replacing "Options" with "Quit" then the total number of commands remains the same, so that's not a problem.)
Thank you once again!!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-how-do-i-resize-the-opening-main-menu-window.179906/