RMMV YEP_StatusMenuCore: Merging Pages

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,478
Reaction score
1,075
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 Posts

Latest Profile Posts

I was at another orientation yesterday and I realized I'll be working with an old friend! We met at the local water park a few years back and it was so nice to see her again! We had a chat, and next week when I officially start, I'll see if maybe we can trade our Zoom IDs so we can talk!
I made some sideview closets for MV!
You can find them in my MV resource thread.
People1.png & SF_People1.png added!!!!

Adventurer:
"Why your body looks like a bird?"

Stranger:
"Because I'm harpy"

Adventurer:
"Clap along if you feel like a room without a roof"

*Both dancing to Pharrell Williams song*

Forum statistics

Threads
105,509
Messages
1,014,311
Members
137,191
Latest member
SLVH
Top