Text overlap Yanfly Skill core/message core RPG MV

Hey all,

I'm having an issue with a skill that reduces hp if you use it by 10% and it shows up when you select it but the -10% is over the skill name and I want it to be after the MP and TP cost if that is possible. I've attacked a picture for reference.

Cheers!
I assume you are using YEP_SkillCore with <HP Cost:x%> notetag.

There is an issue with room here. Impossible to pack so many information in this tiny window.
An option is to reduce the number of column in the window from 2 to 1. As a consequence, all the skills will be listed by row on one column. It will create much more room and very long names will be able to be displayed without overlaping with cost. Use this code below to do it.
You can either edit the corresponding function in rpg_windows.js or create a plugin with the code inside.
Can't predict any compatibility issues with other plugins (at least, it is compatible with the set of yanfly plugins I'm using).

Code:
Window_SkillList.prototype.maxCols = function() {
    return 1;
};

I will check for ordering the different cost as you want to.

EDIT : just noticed that YEP_SkillCore allow you to choose the number of column in its plugins parameters. If you use YEP_SkillCore then you can customize it without modifying any codes anywhere or in adding plugins.
where in the plugin parameters? I only have "cost padding" and "command alignment" and these just make the MP TP amounts go off screen when I edit them.
where in the plugin parameters? I only have "cost padding" and "command alignment" and these just make the MP TP amounts go off screen when I edit them.

I'm using YEP_SkillCore v1.13. Check your version to make sure we are talking about the same plugin advancement.

in ---General----
Cost Padding (default : 4)
Command Alignement (default: center)
Window Columns (default: 2)

In the YEP_SkillCore description, its seems that you need the version 1.02 or above :
* Version 1.02:
* - Added 'Window Columns' parameter to let users adjust the number of columns
* used for the skill window.
For ordering the skill cost in the skill window, there isn't any option in plugins parameters.

the function that draw those information in the plugins is the following :

Code:
Window_SkillList.prototype.drawSkillCost = function(skill, wx, wy, width) {
    var dw = width;
    dw = this.drawTpCost(skill, wx, wy, dw);
    dw = this.drawMpCost(skill, wx, wy, dw);
    dw = this.drawHpCost(skill, wx, wy, dw);
    dw = this.drawCustomDisplayCost(skill, wx, wy, dw);
    dw = this.drawOtherCost(skill, wx, wy, dw);
    return dw;
};

it build the skill cost info from right to left as follow : TP - MP - HP (- Custom - Other)
if you want to build it : HP - TP - MP (- Custom - Other)

then you might modify this function as follow :

Code:
Window_SkillList.prototype.drawSkillCost = function(skill, wx, wy, width) {
    var dw = width;
    dw = this.drawHpCost(skill, wx, wy, dw);
    dw = this.drawTpCost(skill, wx, wy, dw);
    dw = this.drawMpCost(skill, wx, wy, dw);
    dw = this.drawCustomDisplayCost(skill, wx, wy, dw);
    dw = this.drawOtherCost(skill, wx, wy, dw);
    return dw;
};

However, note that all of your skills will show the skill cost according to this new format.
Thank you for the reordering of skills and I did have an older version of the Skill core but I still get the same problem when I change window columns to 3
you must change it to 1 in order to make room.

Original thread: https://forums.rpgmakerweb.com/threads/text-overlap-yanfly-skill-core-message-core-rpg-mv.120624/