@Pehriska - MechPen's code hides the status/gold windows; your problem is with my code (repositioning). It still works OK for me on MZ v1.7.0 without plugins, so I'm guessing:
- You may have edited your core scripts (oh no). You should be able to easily undo any edits by using the Game -> Update Corescript option from the editor's menu bar. (If you've edited the JS files in your install folder, then you may need to reinstall the editor first.)
- You may be using the code incorrectly. To be sure, here's the combined plugin code, to be saved as a .js file and imported as its own plugin via the Plugin Manager as usual:
Spoiler: click to view plugin code
JavaScript:
//=============================================================================
// SimplestMainMenu.js
//=============================================================================
/*:
* @target MZ
* @plugindesc v0.0.1 Simplest Main Menu
* @author MechPen
* @help SimplestMainMenu.js
*
* Removes everything except for the command window.
* You can remove Items, Skill, etc from the System 2 tab in the database.
*
*
*/
(() => {
//
const pluginName = "SimplestMainMenu";
Scene_Menu.prototype.start = function() {
Scene_MenuBase.prototype.start.call(this);
this._statusWindow.hide();
this._goldWindow.hide();
};
})();
// patch by caethyril - resize/reposition command window
(alias => {
Scene_Menu.prototype.commandWindowRect = function() {
const rect = alias.apply(this, arguments); // calculate as normal
rect.height = this.calcWindowHeight(4, true); // height = 4 commands
rect.x = (Graphics.boxWidth - rect.width) / 2; // centre x
rect.y = (Graphics.boxHeight - rect.height) / 2; // centre y
return rect;
};
})(Scene_Menu.prototype.commandWindowRect);
// end of file
- You may be seeing a conflict with another plugin. You can try turning off all other plugins, save your project to apply Plugin Manager changes, then test. If that fixes it, you can turn some plugins back on, save, test, and repeat to try to identify which plugin(s) may be conflicting. Also, plugins can often be configured: remember to check for plugin parameters, plugin commands, note-/comment-tags, script calls, etc.
If necessary, you can then
make a new thread in
Plugin Support or
Plugin Requests, e.g. asking for a version of this plugin that is compatible with the ones you're using, or a way to get this kind of result with the plugins you are already using.
This thread was solved over 2 years ago, so:
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.
👋