MZ Main Menu Edit (using VisuStella Main Menu Manager)

Hello All,

I am trying to fix some Main Menu issues that result in my current screen resolution. My javascript skills are not up to the task at all. My game resolution is 640x360. I am using VisuStella's Main Menu Manager so I am hoping I can get some write of the JS: Portrait option to redraw some of this. Here is what the current main menu screen and below it is what I need to edit.

mainmenueditrequest.png


1) I want to set the Actors' Names to the same system color as Nameboxes, in this case system color 6.
2) I need the LV and LV # to come back together. It's clearly not centering based on the screen resolution and it's got enough space between them that you can drive a truck through.
3) I removed the draw gauge function, and need to add back in code to draw the HP & MP, but I want it to be like 2k3 where it just shows current HP / Max HP & current MP / Max MP in text.

I think it's just a few lines of code so I am hoping someone will help me out, but if it turns out to be bigger than that I might need to consider a request in the classified section.
it can be easier, but visustella's code is obfuscated which makes it's
hard to know what functions they used and how they coded it.

you can best ask probably in teh visustella discord to able to make
the changes or make a param for it.

I've moved this thread to Plugin Support. Thank you.

As you said, this is all in the the relevant plugin parameter. After a quick look through an old version of the plugin's parameters, here are some guesses (untested):
  1. Find this part:
    JavaScript:
    // Draw Actor Name
    this.drawText(actor.name(), sx, sy, sw, 'center');
    Add some color-change calls, e.g.
    JavaScript:
    // Draw Actor Name
    this.processColorChange(6);
    this.drawText(actor.name(), sx, sy, sw, 'center');
    this.resetTextColor();

  2. Find this part:
    JavaScript:
    // Draw Actor Level
    sx = rect.x + Math.round((rect.width - 128) / 2);
    sy += lineHeight;
    this.drawActorLevel(actor, sx, sy);
    You can reduce the 128 value to fit your narrower rectangles, or rewrite the sx formula from scratch. rect represents the actor rectangle being drawn: rect.x is the position of its left edge, rect.width is its width.

  3. Find this part:
    JavaScript:
    // Draw Gauges
    sx = rect.x + Math.round((rect.width - 128) / 2);
    sy += lineHeight;
    Edit that to something like this, maybe:
    JavaScript:
    // Draw Gauges
    sx = rect.x;
    sy += lineHeight;
    this.changeTextColor(ColorManager.hpColor(actor));
    this.drawText(TextManager.hpA + " " + actor.hp + " / " + actor.mhp, sx, sy, sw, 'left');
    this.resetTextColor();
    sy += lineHeight;
    this.drawText(TextManager.mpA + " " + actor.mp + " / " + actor.mmp, sx, sy, sw, 'left');
    It may be neater to draw the / in the middle, then the values/labels as separate drawText calls.
That worked, thanks! I rewrote the draw actor level, and it works good. Unfortunately I didn't have enough space at the font size to keep HP/MP and their values on the same line, but I made due.

1657330807560.png
Just out of curiosity, why are you using such a small game resolution?
Just out of curiosity, why are you using such a small game resolution?
Personal choice. Plus I am using Time Fantasy in the native 16x16 tiles and 1x pixels to avoid mixels and such. If I used a bigger one then everything would be crazy small in comparison, or have a ridiculous amount of deadspace.

Plus the zoom functions/plugins in RMMZ aren't up to the task of staying zoomed in all the time. When I would use a zoom function call depending on the characters location it would lock the camera, and no longer follow the character. This broke any camera control plugins too and I couldn't get the camera back to the character without being zoomed out.
Personal choice. Plus I am using Time Fantasy in the native 16x16 tiles and 1x pixels to avoid mixels and such. If I used a bigger one then everything would be crazy small in comparison, or have a ridiculous amount of deadspace.
That makes sense.

Plus the zoom functions/plugins in RMMZ aren't up to the task of staying zoomed in all the time. When I would use a zoom function call depending on the characters location it would lock the camera, and no longer follow the character. This broke any camera control plugins too and I couldn't get the camera back to the character without being zoomed out.
I know you don't really need it at this point, but you might try this one (the version on post #5) out sometime. It seems to stay zoomed in just fine, and I fixed the camera issues that the original version was having, so I believe it would be a good tool for people who are using smaller tile sizes. You don't need to manually use a zoom command. You can just set the default zoom in the plugin options, and it'll be zoomed in to that ratio at all times (unless you specify otherwise via a map note tag or something).

However, I can't say that I've ever used it in conjunction with a camera control plugin, nor did I ever consider the matter, so I don't really know how that would work out.

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/main-menu-edit-using-visustella-main-menu-manager.149294/