Long names and classes

Hello again!

I'v been having this one problem for a long time now. My characters tend to have long names (like first and last). So long that the last part of the name always collide with the class name making it impossible to read that one last part. As if the letters is mushed together.

Is there a plugin or anything I could do to fix that problem?
I think there is indeed something you can do, unfortunately, I don't remember the solution. Give it some time someone will come up with the solution.
anything I could do to fix that problem?

@Eni First things that come to mind: Have you adopted a font for your project yet? I have two projects that filled up text boxes quickly with the default font, but left tons of room when I switched to my desired project fonts. Have you given thought to using shorter names or nicknames? Have you looked into plugins that modify the look/layout of the menus? You can probably find an alternate arrangement to fix the issue this way as well. Sorry I haven't got anything more specific right this moment, but hope I got you thinking about some viable options at least.
Can you edit the default plugins in RMMV? You could try find the command that draws the actor class (usually in Ace it'd be draw_text or simply draw_actor_class) and change it's X positioning, but I'm not sure.
You can overridethe method
Window_Base.prototype.drawActorSimpleStatus. The method is originally:
Code:
Window_Base.prototype.drawActorSimpleStatus = function(actor, x, y, width) {
    var lineHeight = this.lineHeight();
    var x2 = x + 180;
    var width2 = Math.min(200, width - 180 - this.textPadding());
    this.drawActorName(actor, x, y);
    this.drawActorLevel(actor, x, y + lineHeight * 1);
    this.drawActorIcons(actor, x, y + lineHeight * 2);
    this.drawActorClass(actor, x2, y);
    this.drawActorHp(actor, x2, y + lineHeight * 1, width2);
    this.drawActorMp(actor, x2, y + lineHeight * 2, width2);
};
In order to move the Actor class to the right to compensate for longer actor names, you need to change the line that reads:
Code:
this.drawActorClass(actor, x2, y);
By changing x2 to x2 + 100, you will move the class name to right by 100 pixels. You can copy the code BELOW and add it to a file called drawActorSimpleStatus.js in your plugins folder to enable it. You can change the "100" to fit your needs.

Spoiler: Plugin Code
Code:
(function() {
    Window_Base.prototype.drawActorSimpleStatus = function(actor, x, y, width) {
        var lineHeight = this.lineHeight();
        var x2 = x + 180;
        var width2 = Math.min(200, width - 180 - this.textPadding());
        this.drawActorName(actor, x, y);
        this.drawActorLevel(actor, x, y + lineHeight * 1);
        this.drawActorIcons(actor, x, y + lineHeight * 2);
        this.drawActorClass(actor, x2 + 100, y);
        this.drawActorHp(actor, x2, y + lineHeight * 1, width2);
        this.drawActorMp(actor, x2, y + lineHeight * 2, width2);
    };
})();
I can't find a js file with that name so I guess I should create my own? I kind of worked but pushed the class name to oblivion xD But thx I will try fiddle with it and see what it will bring xD But if I'm missunderstanding something let me know so that I can hunt down that plugin file.
I can't find a js file with that name so I guess I should create my own?

That is correct. My solution is to build a brand new plugin that you will name drawActorSimpleStatus.js (or whatever else you want to name the file, so long as you keep the .js extension). The file that you create will need to be placed in your projects plugins directory like any other plugin. In the plugin file that you create, copy and paste the spoiler code from my previous post. Then, just mess with the "100" that I pointed out to change the location of the class name.

Don't forget to install the plugin properly and activate it from within RMMV.
Yeah, that is what I did and it worked, thx. I found some alt menu:s that works too when they change the place of the class and shows it under the name but I find those wierd looking for my game xD


Edit: You may close this thread!

Original thread: https://forums.rpgmakerweb.com/threads/long-names-and-classes.109469/