Window:
// Declare Variables
const lineHeight = this.lineHeight();
const padding = this.itemPadding();
const x1 = padding;
const x2 = this.innerWidth - 128 - padding;
// Draw Menu Image
this.drawItemActorMenuImage(this._actor, 0, 0, this.innerWidth, this.innerHeight);
// Draw Data
this.drawActorName(this._actor, x1, lineHeight * 0);
this.drawActorClass(this._actor, x1, lineHeight * 1);
this.drawActorIcons(this._actor, x1, lineHeight * 2);
this.drawActorLevel(this._actor, x2, lineHeight * 0);
this.placeBasicGauges(this._actor, x2, lineHeight * 1);
Draw Equip Data
// Set Variables
const lineHeight = this.lineHeight();
const paramheight = this.gaugeLineHeight() + 8;
let x = 0;
let y = 0;
let width = this.innerWidth;
let height = this.innerHeight;
let hw = Math.floor(width / 2);
let hx = x + width - hw;
// Draw Item Name, Type, and Quantity
this.drawItemName(this._item, x + this.itemPadding(), y, width - this.itemPadding() * 2);
this.drawItemDarkRect(x, y, width);
y += lineHeight;
if (this.drawItemEquipType(x, y, hw)) y += 0;
if (this.drawItemQuantity(hx, y, hw)) y += lineHeight;
// Draw Parameter Names
const params = this.actorParams();
const backY = y;
y = height - (params.length * paramheight) - 4;
let paramX = x;
let paramWidth = 0;
let tableY = y;
for (const paramId of params) {
paramWidth = Math.max(this.drawParamName(paramId, x + 4, y + 4, width), paramWidth);
y += paramheight;
}
// Draw Actor Data
const actorMax = $gameParty.maxBattleMembers();
const actorWidth = Math.floor((width - paramWidth) / actorMax);
paramWidth = width - (actorWidth * actorMax);
for (const actor of $gameParty.battleMembers()) {
const index = $gameParty.battleMembers().indexOf(actor);
const actorX = paramX + paramWidth + (index * actorWidth);
this.changePaintOpacity(actor.canEquip(this._item));
this.drawActorCharacter(actor, actorX + (actorWidth / 2), tableY);
let actorY = tableY;
// Draw Parameter Changes
for (const paramId of params) {
const diffY = actorY - ((lineHeight - paramheight) / 2);
this.drawActorParamDifference(actor, paramId, actorX, diffY, actorWidth);
actorY += paramheight;
}
}
// Draw Back Rectangles
this.drawItemDarkRect(paramX, backY, paramWidth, tableY - backY);
for (let i = 0; i < actorMax; i++) {
const actorX = paramX + paramWidth + (i * actorWidth);
this.drawItemDarkRect(actorX, backY, actorWidth, tableY - backY);
}
for (const paramId of params) {
this.drawItemDarkRect(paramX, tableY, paramWidth, paramheight);
for (let i = 0; i < actorMax; i++) {
const actorX = paramX + paramWidth + (i * actorWidth);
this.drawItemDarkRect(actorX, tableY, actorWidth, paramheight);
}
tableY += paramheight;
}