MZ Weapon/Armor Type Name in JS: Draw Equip Data, Item Equip VS

Good morning all,

Im making some edits to the JS: Draw Equip Data for the Shop Status Window:

1689518037402.png


In Particular I am trying to update what is displayed as Equipment type (in this case "Grimoire")

1689518074072.png


What I would like to do instead of Drawing the Equipment Type, I want to draw the Items Weapon or Armor Type.



I changed this section manually based on note tag before I realized Weapon and Armor Type would be better:

// 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._item.meta.shld || this._item.meta.offHWeapon) { if (this.drawText("Armoire", x, y, hw)) y += 0; } else { if (this.drawItemEquipType(x, y, hw)) y += 0; } if (this.drawItemQuantity(hx, y, hw)) y += lineHeight;


But the rectangle goes away and the font uses the default size and colors instead of matching:

1689518282153.png





Anyone know of a script/function that can draw Weapon Types and Armor Types while also maintaining VisuStella's font and color conventions for the Types and the Dark Rectangle?
$dataSystem.armorTypes[this._item.atypeId] returns the string for the armor type the item is.
$dataSystem.weaponTypes[this._item.wtypeId] returns the string for the weapon type the item is.

The string comes directly from the system tab on the database. You can use some if statements to see what etype the item is, and then pull the correct string using the function you're already using.
The string comes directly from the system tab on the database. You can use some if statements to see what etype the item is, and then pull the correct string using the function you're already using.
The problem is since I'm using a Dual Wield set up, Both the Grimoire and Armoires are weapons, and thus fall to the same Equipment type in the database. Its simple enough to draw out the Weapon and Armor types of the focused item. The problem is moreso in the formatting not matching

Original thread: https://forums.rpgmakerweb.com/threads/weapon-armor-type-name-in-js-draw-equip-data-item-equip-vs.159374/