MZ (VisuStella MZ Items and Equip Core) Compressed Icons

Hello friends. I'm having some difficulties getting this plug-in to NOT compress parameter icons during this scene (Shop Status Window).
EX1.png


This appears to be a default state for this window when this plugin is being used. I am able to replicate with just the plugin & Engine Core on a new project. This is also shown to be normal behaviour according to Vizustellas own example pictures of the plugin:
EX3.png


I have went through all the settings and options in this plugin, and nothing mentions the size of these icons.

I even went as far as opening the "Shop Status Window"' parameters in the plugin and extracting the "JS😀raw Equip Data" text string to a word document and editing entries there manually, then pasting them back. I was able to change quite literally EVERYTHING in the window where these parameter icons are, EXCEPT the damn icon size/scaling. I could get the boxes in-behind to adjust, the position of the icons/parameters, the text size, even the spacing between them, but nothing would change the size of the icons.
EX2.png

There does not appear to be a line written in there that specifically addresses the icons themselves, only various lines that tell it to draw the parameters and how to adjust them. I had even tried adjust the box heights as well as the parameter heights, but still no luck.


I did read in the version history of this plugin:
Version 1.11: November 8, 2020
* Bug Fix!
** Font size ratio for the shop status window now scales to a hard coded
value to prevent smaller font sizes from expanding icon sizes.
However, I have no idea where I would find this value - sounds like if it was tinkered with it may achieve what I want, maybe.

I'm at a loss for how to tweak this. The look of the compressed Icons isn't great, and I have ample room to allow for full size icons. I would've thought if there was a line telling the plugin to scale/compress the icons that I could find it, but no such luck yet. Anyone have any suggestions I could try?

Plugin Page: http://www.yanfly.moe/wiki/Items_and_Equips_Core_VisuStella_MZ

Plugin Source: https://visustella.itch.io/visumz-sample (Sample Game contains the Plugin)

Thanks in advance for any help.
What is your version of the plugin, then?
What is your version of the plugin, then?
Using latest versions. If there's a way to get a legacy version of the plugin I am not aware of it. I'd be willing to give it a try if I could get it.

1.41 for Item Core
1.74 for Engine Core
UPDATED: to function closer to original
Spoiler: Original
1679101807218.png
Spoiler: Edit
1679101309439.png

Spoiler: Replace Code
VisuMZ_1_ItemsEquipsCore > Shop Status Window > JS: Draw Equip Data >
Code:
// Set Variables
const lineHeight = this.lineHeight();
const paramheight = 36;
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 Edit by Naoso
const params = this.actorParams();
const params2 = []
const icons = []
const color = parseInt(VisuMZ.CoreEngine.Settings.Color.ColorSystem);
const backY = y;
y = height - (params.length * paramheight) - 4;
let paramX = x;
let paramWidth = 0;
let tableY = y;
for (const paramId of $dataSystem.terms.params) {
    params2.push(paramId);
}
for (const paramId of params) {
    icons.push(VisuMZ.GetParamIcon(paramId));
}
for (const paramId of icons) {
    this.drawIcon(paramId, x + 4, y + 4)
    y += paramheight;
}
y = tableY;
for (const paramId of params2) {
    paramWidth = Math.max(this.drawTextEx(`\\C[${color}]` + paramId, x + 40, y, width) * 1.4, 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;
}
UPDATED: to function closer to original
Spoiler: Original
Spoiler: Edit

Spoiler: Replace Code
VisuMZ_1_ItemsEquipsCore > Shop Status Window > JS: Draw Equip Data >
Code:
// Set Variables
const lineHeight = this.lineHeight();
const paramheight = 36;
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 Edit by Naoso
const params = this.actorParams();
const params2 = []
const icons = []
const color = parseInt(VisuMZ.CoreEngine.Settings.Color.ColorSystem);
const backY = y;
y = height - (params.length * paramheight) - 4;
let paramX = x;
let paramWidth = 0;
let tableY = y;
for (const paramId of $dataSystem.terms.params) {
    params2.push(paramId);
}
for (const paramId of params) {
    icons.push(VisuMZ.GetParamIcon(paramId));
}
for (const paramId of icons) {
    this.drawIcon(paramId, x + 4, y + 4)
    y += paramheight;
}
y = tableY;
for (const paramId of params2) {
    paramWidth = Math.max(this.drawTextEx(`\\C[${color}]` + paramId, x + 40, y, width) * 1.4, 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;
}
Awesome - Thank you so much! 😀

I got both copies of what you posted, and combining them I was able to get pretty much exactly what I wanted. Only issue I'm having now is that text is overlapping parameter changes, since there doesn't seem to be a stop for the parameter text itself, or a way to adjust the text size of the parameter names ( Adjusting parameter text size through plugin only seems to adjust the parameter changes, not the names themselves )

EX1.png

Tried messing around with it, but I can't seem to get it to stop drawing parameter names past a specific point or resize them appropriately.

Here is the current code I'm working with right now after your help:

Spoiler: New Code
// Set Variables
const lineHeight = this.lineHeight();
const paramheight = 33;
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 - 1 + this.itemPadding(), y, width + 2 - 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 Edit by Naoso
const params = this.actorParams();
const params2 = []
const icons = []
const color = parseInt(VisuMZ.CoreEngine.Settings.Color.ColorSystem);
const backY = y;
y = height - (params.length * paramheight) - 4;
let paramX = x;
let paramWidth = 0;
let tableY = y;
for (const paramId of $dataSystem.terms.params) {
params2.push(paramId);
}
for (const paramId of params) {
icons.push(VisuMZ.GetParamIcon(paramId));
}
for (const paramId of icons) {
this.drawIcon(paramId, x, y)
y += paramheight;
}
y = tableY;
for (const paramId of params2) {
this.drawTextEx(paramId, x + 33, y, width);
paramWidth = 120;
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) / 1);
this.drawActorParamDifference(actor, paramId, actorX, diffY, actorWidth);
actorY += paramheight;
}
}

// Draw Back Rectangles
this.drawItemDarkRect(paramWidth);
for (let i = 0; i < actorMax; i++) {
const actorX = paramX + paramWidth + (i * actorWidth);
this.drawItemDarkRect(actorWidth, tableY);
}
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;
}

Do you happen to know what can be added to either allow a text resize or preferably, a limit to how far the text can go before shrinking? I saw in your updated version that you'd changed it to use internal parameter names (ATK instead of Attack), but I would prefer the un-abbreviated names if possible.

Thank you again for your help, I'm thrilled that you've been able to get me this far!
Just use the currently posted code(copy paste the entire thing).. i originally had it set for you to adjust the spacing manually, depending on your personal layout. I then figured to have it auto adjust as the original version had done.. the only issue was the first time i set that up, the widths came out less than the original draw function, but in the end i just had it increase width by 40%

the version you are using can be manually adjusted by changing
Code:
paramWidth = 120
to something larger

You can also adjust the Shop Window itself
VisuMZ_1_ItemsEquipCore > Shop Status Window > Window Width
I must've mixed up bits of the code from both when I tried them. The first version only gave me the abbreviated ones but otherwise seemed to work right. When I tried your updated version I got this initially:
EX1.png

Wasn't sure why, so I started messing around, and must've missed the small spot where "\\C[${color}]" was written. Just changed 'color' to a value of a color and boom, instant results:
EX2.png


For some reason I had initially thought there was a bigger issue so I started copy/pasting between the two LOL.

I had tried changing "paramWidth = 120" to different values as well, but it just changed the parameter value size, not the text size - but now that I'm using your newer code that I didn't mangle-up it works fine.

After some tweaking with spacing, I have this where I want it. The look of the compressed icons was really bugging the hell out of me and It's so much nicer now!
EX3.png


Thank you SO much for both your patience and help!!!

Let me know if there's anything I can do in return!

Original thread: https://forums.rpgmakerweb.com/threads/visustella-mz-items-and-equip-core-compressed-icons.155882/