MV (Solved) Yanfly Menu Manager plugin help | Bottom menu

Edit: I've un-squashed the text, and made it look like it's in the center (it isn't aligned to the center, it just looks like it), so now all I need is help finding a way to move the menu to the bottom of the screen, or help finding a plugin to do so.

I'm brand new to RPG Maker MV and the forums, so hopefully I'm doing this right, let me know if I posted this wrong or something!

I'm using Yanfly's Main Menu Manager plugin.

I'm wanting the in-game menu to appear horizontally in the center of the screen, since I'm not using the actor or gold windows. The only window alignment options are to the left or right side, so I was wondering if there's something I can do or another plugin I can use to make it centered.
I've managed to make the buttons appear horizontally (1 row, 4 columns, so it shows 4 buttons left to right) but the text is smashed like this:
Screenshot 2025-01-20 200300.png

Is there a parameter I can change to make the text readable?

So in summary, I need help making the menu appear in the center of the screen or finding a plugin that does that if it's not possible with Yanfly's, and I need help un-squashing the text when it's made horizontal.
Thank you!
Bumping this because I still haven't figured it out :/
RPG Maker MV is HTML and JS based game engine, You can simply use HTML to do custom interface... It's a lot easier and also allows You to use CSS animations and other features...

I'm using it quite simple:
JavaScript:
    qSetMenu(_ID=0,_Pause=false){
        if(_Pause){
            SceneManager.stop();
        }
        this.qCoreDiv.innerHTML = qInterfaceList[_ID];
    }
... Tho You would need to add extra Div to Your index.html
JavaScript:
qCoreDiv             : document.getElementById('qlgCore'),
The "stop()" can be then resumed with the ofc. "resume()" function as:
JavaScript:
SceneManager.resume();
And You can simply use HTML code... for now I'm lazy so I just keep them as variables in the JS code xDD
JavaScript:
const qInterfaceList = [
    `
<div class="qMainMenu_Box">
    <div>
        <div class="qMainMenu_LogoImg">
            <img src="qData/_Media/MiuLogo.png" style="height:8vw;">
        </div>
        <div class="qMainMenu_LogoTxt">

Show me example of how You want Your menu to look like,
Ill give You prepared plugin just for You so You can call menu from anywhere You want...

It would be then as simple as that:
1737691425300.png


//Edit:
1737692683389.png

You want to:
1) Create new file ( anywhere in the Game Folder )
2) Link the CSS to Your Index ( find and open the "index.html" file next to Your RPG Maker MV file )
3) Add the line:
Code:
<link rel="stylesheet" type="text/css" href="CSS.css">
in place of "CSS.css" You want to give actual name of Your CSS File ( it's up to You how You name it )
I made for You a small CSS setup: ( You can ask ChatGPT to modify it for You if You don't know CSS )
Spoiler: CSS
CSS:
#qMenuDiv{
    position:fixed;
    z-index:999;
}

.qOptBox{
  position:fixed;
  top:70vh;
  left:50%;
  transform: translateX(-50%);
}

.qOptBt{
  position:relative;
  display:inline-block;
  text-align:center;
  line-height: 4vh;
  width:8vw;
  height:4vh;
  color:white;
  border:2px solid white;
  border-radius:8px;
  transition:.4s cubic-bezier(.4,.6,.35,1.65);
}

.qOptBt:hover{
  transform: translateY(-.9vh);
}
Then You also need to add extra container to Your index HTML file ( place where Your interface will be ) example:
HTML:
<div id="qMenuDiv"></div>
1737692763960.png


Then You need to add this class anywhere You want ( for example make Your own plugin )
Spoiler: JavaScript
JavaScript:
class qlMenu {
  constructor() {
    Object.assign(this, {
      qMenuDiv: document.getElementById('qMenuDiv'),
    });
  }

  qShow() {
    SceneManager.stop();
    this.qMenuDiv.innerHTML = qMenuHTML;
  }

  qHide() {
    SceneManager.resume();
    this.qMenuDiv.innerHTML = "";
  }
}

var qMenu = new qlMenu();

const qMenuHTML = `
<div class="qOptBox">
  <div class="qOptBt" onclick="qMenu.qHide();">New Game</div>
  <div class="qOptBt">Options</div>
  <div class="qOptBt">Gallery</div>
  <div class="qOptBt">Exit</div>
</div>
`;

You can then call the menu as:
1737692842396.png


Menu can be called from anywhere, Event or other script,
if You want to make menu appear instead of main menu that is default by RPG Maker simply go into rpg_scenes.js and modify a bit one function:
JavaScript:
Scene_Title.prototype.start = function() {
    // Scene_Base.prototype.start.call(this);
    SceneManager.clearStack();
    DataManager.setupNewGame();
    SceneManager.goto(Scene_Map);}; // just start the game, ignore main menu
This way game will instantly start the game ( without showing the default Main Menu )
then You can also call the Menu to appear ( as the qMenu.qShow() ) feel free to rename everything as You like.

//Edit2:
I forgot to say that if You want buttons to do anything, You can explicitly do that in the onclick attribute of HTML element just like I did for the new game to close the menu:
<div class="qOptBt" onclick="qMenu.qHide();">New Game</div>

if You want button to do something specific, simply do:
onclick=" what to happen "
Browser will take care of the rest 😛
You can ofc. open scenes and call for more interface elements...
You can also simulate button presses but well...

if You provide more informations of what You need I may be able to build that for You 😛
Are you sure you change command width correctly?
Looks like they are just small.
They should be as wide as your screen.
Are you sure you change command width correctly?
Looks like they are just small.
They should be as wide as your screen.
From what I've seen, I'd triple check any code that guy puts out.
don't mess with HTML as it can mess with more things and could be
coded in JS as well without touching the HTML and not really related
to your question as well.

as there is a command Window Width, default is 240.
set it too 600 and the width is wider to the text is more readable.
1737757872604.png

I don't know how I could've missed this, thank you! I also found that I can make it seem like it's in the center by setting the command width parameter to exactly 1005, so if I can't ever find another plugin to move it around how I want (I'm wanting to move it to the bottom of the screen and I plan to add a picture above it to cover the whole screen, sort of like In Stars and Time's menu but reversed) I'll just have to do it this way. For now though, I'm happy with it! Thanks for pointing out what I missed, haha
if you want to move it to the bottom, you might need to open the plugin.
to adjust the Y there.

if the width is fixed, you could try (if it has an eval) use Graphics._screenWidth
or _boxWidth to take the resolution width 🙂

I need to find the correct call for those, but you can move it down if you want.
adding a background image is also possible, but you can add that inside the
plugin too (if you need help with it).
if the width is fixed, you could try (if it has an eval) use Graphics._screenWidth
or _boxWidth to take the resolution width 🙂
I tried this and it didn't work (the menu just wouldn't appear) but it's fine since an exact number doesn't seem to cause any problems.
if you want to move it to the bottom, you might need to open the plugin.
to adjust the Y there.
I know very little about javascript and don't know how I would do this, is it very complicated?
There is 2 options for you to try, but the easiest way is on line
4699 where you read this line:
JavaScript:
this._commandWindow = new Window_MenuCommand(0, 0);
Use the 2nd 0 for Y position, and while it could be evaled, formula's could work.

but set the height on the 2nd digit and your good.

alternative on line 4661 you read:
JavaScript:
Window_MenuCommand.prototype.windowWidth = function() {
    return eval(Yanfly.Param.MMMCmdWidth);
};
// press enter below this one and make a function
Window_MenuCommand.prototype.windowHeight = function() {
    return 600;
};

so you have both of those and change 600 to whatever you needed there.

if you choose the 2nd approach, DO NOT change the 2nd 0 and leave it default.
There is 2 options for you to try, but the easiest way is on line
4699 where you read this line:
JavaScript:
this._commandWindow = new Window_MenuCommand(0, 0);
Use the 2nd 0 for Y position, and while it could be evaled, formula's could work.

but set the height on the 2nd digit and your good.
Tried this one and it works perfectly for what I need, thanks for all the help! I'll make it look nice later but for now I'm just making everything work properly, and this was all I needed for the menu to be finished. Thanks again!
1738005128417.png
This thread is closed due to being marked as solved. Report the next one so we can find it! If you need this one reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/solved-yanfly-menu-manager-plugin-help-bottom-menu.174848/