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.
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:
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...
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:
Edit3: Omg yes! I totally fixed it!! Check it out. ^.^
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).
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;
};
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:
Edit3: Omg yes! I totally fixed it!! Check it out. ^.^
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).