I'm working on a custom menu layout for my project. But I'm not sure on how to hide the help window that's displayed when you extend scene_menubase.
That's not the Help Window, aka Window_Help. It also does not originate from Scene_MenuBase's default code, as it is not native to MZ.
It looks like it could be one of VisuStella's windows. Did you thoroughly read through the documentation of any plugins you have installed? If not, you need to.
Regarding the previous post...
Code:
Scene_CustomMenu.prototype.createHelpWindow = function() {
// Do nothing to prevent help window from being created
};
This will lead to errors as other methods reliant on the help window eventually try to reference a nonexistent window.
Code:
Scene_CustomMenu.prototype.createHelpWindow = function() {
Scene_MenuBase.prototype.createHelpWindow.call(this);
this._helpWindow.visible = false; // Hides the help window
};
This would likely not reliably hide the help window because its visibility is usually managed elsewhere. If you
did want to temporarily hide the window, it's usually better practice to call
this._helpWindow.hide() rather than directly modifying the window's visibility property.
Code:
Scene_CustomMenu.prototype.createHelpWindow = function() {
Scene_MenuBase.prototype.createHelpWindow.call(this);
this.removeChild(this._helpWindow); // Removes the help window from the scene
};
Don't do this.
I assume this stuff was AI-generated based on the comments?