I am using Yanfly_PartySystem Plugin. And I am using a BeastBook Plugin. The BeastBook Plugin lists the skills in a very pleasant way. So my Idea is to replace the Yanfly_Party System Equipment description with the BeastBook skill-list.
following picture is the desired output (actually just the 7 skillicons and names).
following picture shows where the skill-list is supposed to be:
This is probably most of the code that needs to be modified. However I tried modifying it and I can't even seem to get any output.
Any help is appreciated! 🙂
following picture is the desired output (actually just the 7 skillicons and names).
following picture shows where the skill-list is supposed to be:
Code:
Window_PartyDetail.prototype.getActorEquips = function() {
var equips = [];
for (var i = 0; i < this._actor.equips().length; ++i) {
var equip = this._actor.equips()[i];
if (equip) equips.push(equip);
}
return equips;
};
Window_PartyDetail.prototype.drawActorEquipsList = function(equips) {
this._lastSlot = false;
var max = this._linesAvailable;
var ww = this.contents.width / 2;
var wh = this.lineHeight();
var wy = this.lineHeight() * 4;
var wx = ww + 6;
ww -= 12;
if (this._linesAvailable >= 7) {
max -= 1;
wy += this.lineHeight();
}
if (this._linesAvailable === 4) {
max -= 1;
wy += this.lineHeight();
}
for (var i = 0; i < equips.length; ++i) {
var equip = equips[i];
if (!equip) break;
if (i >= max - 1 && i < equips.length - 1) this._lastSlot = true;
if (this._lastSlot) {
var iconIndex = equip.iconIndex;
this.drawIcon(iconIndex, wx + 2, wy + 2);
wx += Window_Base._iconWidth;
continue;
} else if (this._lastSlot && i === equips.length - 1) {
var iconIndex = equip.iconIndex;
this.drawIcon(iconIndex, wx + 2, wy + 2);
wx += Window_Base._iconWidth;
} else {
this.drawItemName(equip, wx, wy, ww);
}
wy += this.lineHeight();
}
This is probably most of the code that needs to be modified. However I tried modifying it and I can't even seem to get any output.
Any help is appreciated! 🙂