I am using the AltMenuScreen plugin that's built into RMMZ. I'm fine with it except that I want the name of the character's state to be shown with its icon. It bothers me that I cannot see the name of the state that is affecting the character. I believe I have isolated the drawing of the icon to this function:
So my question is how do I call the actor's state name and place it next to, or underneath, that icon?
Code:
Window_MenuStatus.prototype.drawItemStatus = function(index) {
const actor = this.actor(index);
const rect = this.itemRectWithPadding(index);
const x = rect.x;
const y = rect.y;
const width = rect.width;
const bottom = y + rect.height;
const lineHeight = this.lineHeight();
this.drawActorName(actor, x, y + lineHeight * 0, width);
this.drawActorLevel(actor, x, y + lineHeight * 1, width);
this.drawActorClass(actor, x, bottom - lineHeight * 4, width);
this.placeBasicGauges(actor, x, bottom - lineHeight * 3, width);
this.drawActorIcons(actor, x, bottom - lineHeight * 1, width);
};
So my question is how do I call the actor's state name and place it next to, or underneath, that icon?