Hello, this plugin from @caethyril and @MechPen is beautiful. How to modify it to be a horizontal menu instead?
forums.rpgmakerweb.com
Added the following code but don't know how to edit width.
Sorry, found solution immediately after post...
MZ - A simple main menu for RMMZ do exist?
Hello, First, English is not my main language... sorry for any mistakes. I don't know if I'm in the right place... but I know there's a plugin to have a simple main menu (or was it simple item menu?) for the RMMV... I'm wondering if that was also possible for RMMZ... because for the game I...
forums.rpgmakerweb.com
Added the following code but don't know how to edit width.
JavaScript:
Window_MenuCommand.prototype.maxCols = function () {
return 7;
}
Window_MenuCommand.prototype.numVisibleRows = function() {
return 1;
};
Window_MenuStatus.prototype.numVisibleRows = function() {
return 1;
};
Sorry, found solution immediately after post...
JavaScript:
(alias => {
Scene_Menu.prototype.commandWindowRect = function() {
const rect = alias.apply(this, arguments); // calculate as normal
rect.width = 900; // Set the width to your desired value
rect.height = this.calcWindowHeight(1, true); // Adjust the number of commands shown at once if needed
rect.x = (Graphics.boxWidth - rect.width) / 2; // Center the window horizontally
rect.y = (Graphics.boxHeight - rect.height) / 2; // Center the window vertically
return rect;
};
})(Scene_Menu.prototype.commandWindowRect);