RMMV YEP_StatusMenuCore: Merging Pages

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,569
Reaction score
1,156
First Language
English
Primarily Uses
RMMV
So I've been fiddling w/ Yanfly's Status Menu Core plugin and decided to combine the attributes and elements pages since I realized they'd fit perfectly together for my project. However, I ran into a small issue where the % values of the elements (column 1) are hugging the right side and taking up the same space where column 3's % values are supposed to go.
1603595529377.png
Blunt, Slash, Pierce, Fire, Frost, Shock, Radian, & Necrotic should have 90%, 75%, 85%, 100%, 100%, 100%, 100%, & 100% respectively. As you can see, the "100.0%" on the bottom right belongs to Radian & Necrotic on the bottom left. Those numbers are supposed to go there, but instead, they are on the far right and covering up the values for column 3's data. This is what I did to get the result above:
JavaScript:
Window_StatusInfo.prototype.drawAttributes = function() {
    this.drawAttributesColumnRects();
    this.drawAttributesInfo();
    this.drawElementInfo();
};

Window_StatusInfo.prototype.attributesArray = function() {
    var array = [
      Yanfly.Param.StatusEleCol1,
      Yanfly.Param.StatusAttriCol1,
      Yanfly.Param.StatusAttriCol2,
      Yanfly.Param.StatusAttriCol3,
      Yanfly.Param.StatusAttriCol4
    ];
    return array;
};
Is there a way I can fool it into thinking there are 3 columns for "elements"? I tried adding "0" to columns 2 & 3 for the elements page, but while the name is blank, the % values still appear and cover up the attribute values in columns 2 & 3...

Edit: I'm thinking I need to edit something in here...
JavaScript:
Window_StatusInfo.prototype.drawElementColumnRects = function() {
    var maxCols = this.getMaxArrayCols(this.elementArray());
    var maxRows = this.getMaxArrayRows(this.elementArray());
    if (maxCols <= 0) return;
    var dx = this.getArrayX();
    var dy = this.getArrayY();
    var dw = this.getArrayDW(maxCols);
    for (var i = 0; i < maxCols; ++i) {
      for (var j = 0; j < maxRows; ++j) {
        this.drawDarkRect(dx, dy, dw, this.lineHeight());
        dy += this.lineHeight();
      }
      dx += dw;
      dx += (maxCols > 1) ? this.standardPadding() : 0;
      dy = 0;
    }
};

Window_StatusInfo.prototype.drawElementInfo = function() {
    var maxCols = this.getMaxArrayCols(this.elementArray());
    var maxRows = this.getMaxArrayRows(this.elementArray());
    if (maxCols <= 0) return;
    var infoArray = this.elementArray();
    var dx = this.getArrayX();
    var dy = this.getArrayY();
    var dw = this.getArrayDW(maxCols);
    for (var i = 0; i < maxCols; ++i) {
      for (var j = 0; j < infoArray[i].length; ++j) {
        var eleId = infoArray[i][j];
        this.drawElementData(eleId, dx, dy, dw)
        dy += this.lineHeight();
      }
      dx += dw;
      dx += (maxCols > 1) ? this.standardPadding() : 0;
      dy = 0;
    }
};
Edit2: Ok, I fixed the Elements % placement, but now there's an extra instance of "0.0%" for each Attributes' % values (columns 2 & 3), which overlaps w/ their true % values. Screenshot:
1603598936757.png

Edit3: Omg yes! I totally fixed it!! Check it out. ^.^
1603599461964.png

Now I just need to figure out how to add Block Chance, Weapon Unleash Chance, Armor Penetration, & Spell Penetration to the Attributes in columns 2 & 3 (exactly 4 entries remaining).
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

grief... lol... I keep seeing request for MZ versions of MV plugins. this is why I haven't moved over and just MZ for my MV project.
Egg-sitting minigame is coming along nicely. Are you a bad enough dino to keep all these raptor eggs warm?

I forgot to post the animated version of the previous map I was working on. I'm still arguing with myself on if I like the stark blue ground better than the undergrowth ground used on the waterfall map. Hmm...
now that fmod is free for indie(<200k revenue), it would be interesting to see someone add fmod support for rpg maker
Can't say I can't promise progress on a project just yet. But I can say I had fun databasing tonight. :)

Forum statistics

Threads
105,800
Messages
1,016,564
Members
137,495
Latest member
Captain_ZZ
Top