MZ Difficulty with Icon compression with Visustella Core+Main Menu

Greetings everyone, I have been messing around with some visustella plugins and trying to make as many adjustments/changes as humanly possible, but I am having difficulty changing the icons back to their original size in the menu screen

So I believe the part responsible for this is from VisuMZ_1_MainMenuCore>List Style Settings> JS-Solo

This is my current code, I tried making modifications to the part saying "// Following Requires VisuStella MZ's Core Engine" but I didn't have any results, it is possible that most of the stuff I tried to copy paste/change didn't do much

I included the second image to showcase the original icon size that is being displayed properly in the equipment section!
1724377032589.png
1724377066510.png


Code:
// Declare Constants

const actor = arguments[0];

const rect = arguments[1];

const x = 64

const fontSize = x;

const padding = this.itemPadding();

const maxExp= 999999

// Make Constants

const lineHeight = this.lineHeight();

const gaugeLineHeight = this.gaugeLineHeight();



// Draw Actor Graphic

let sx = rect.x -400;

let sy = rect.y ;

let sw = rect.width;

let sh = rect.height;



// Portrait

if (actor.getMenuImage() !== '') {

    this.drawItemActorMenuImage(actor, rect.x -600, rect.y, rect.width, rect.height);



// Everything Else

} else {

    const gx = Math.max(0, rect.x + Math.floor(((rect.width   )  - ImageManager.faceWidth ) / 2  -300));

    const gy = Math.max(0, rect.y + rect.height - Math.ceil(lineHeight * 19) - ImageManager.faceHeight );

    this.drawActorGraphic(actor, gx, gy, ImageManager.faceWidth , ImageManager.faceHeight );

}





// Draw Actor Name

sw = Math.round(rect.width / 2 +600 );

sy = Math.round(rect.width / 7);

this.drawText(actor.name(), sx , sy, sw, 'center');



// Draw Actor Level

sx = Math.max(0, rect.x + Math.floor(((rect.width / 2) - 128) / 2));

sy += lineHeight;

this.drawActorLevel(actor, sx -300, sy);



// Draw Actor Class

const className = actor.currentClass().name;

sx = rect.x + Math.round(((rect.width / 2 ) - this.textSizeEx(className).width) / 2);

sy += lineHeight +8 ;

this.drawTextEx(className, sx -100, sy, sw);



// Draw Actor Icons

sx = rect.x + Math.round(((rect.width / 2) - 128) / 2);

sy += lineHeight +5;

this.drawActorIcons(actor, sx +70, sy -70 );



// Prepare Stat Coordinates

sx = rect.x + Math.floor(rect.width / 3 -300);

sw = rect.width / 5;

sh = rect.height;

const sx3 = sx;

const cw = rect.width - sx3 ;



// Declare Constants

let paramWidth = 0;



// Prepare Total Content Height to vertically center the content.

let totalHeight = gaugeLineHeight * ($dataSystem.optDisplayTp ? 3 : 3);

if (Imported.VisuMZ_0_CoreEngine && cw >= 300) {

    const params = VisuMZ.CoreEngine.Settings.Param.DisplayedParams ;

    totalHeight += lineHeight ;

    totalHeight += Math.ceil(params.length / 2) * gaugeLineHeight +5;

}

const equips = actor.equips();

totalHeight += lineHeight;

totalHeight += equips.length * lineHeight;

sy = Math.max(rect.y, rect.y + Math.floor((rect.height - totalHeight) / 2));



// Place Gauges

this.contents.fontSize += 16;

this.placeGauge(actor, "hp", sx, sy);

sy += 8+ gaugeLineHeight;

if ($dataSystem.optDisplayTp) {

    sy += 8+ gaugeLineHeight;

    this.placeGauge(actor, "tp", sx, sy);

    sy += 8+ gaugeLineHeight;

}

let ny = sy ;



// Following Requires VisuStella MZ's Core Engine

// Draw Additional Parameter Data if Enough Room


if (Imported.VisuMZ_0_CoreEngine && cw >= 300) {



const params = VisuMZ.CoreEngine.Settings.Param.DisplayedParams;

this.resetFontSettings();

 this.fontSize += 16;

sy += lineHeight +15;

    const pw = Math.floor(cw / 2) -400;

    let px = sx3 ;

    let counter = 0;

    for (const param of params) {

param.fontsize +=16

        this.drawParamText(px, sy, pw, param, true);

param.fontsize +=16

        const paramValue = actor.paramValueByName(param, true);



        this.contents.drawText(paramValue, px, sy, pw, gaugeLineHeight, 'right');

        counter++;

        if (counter % 2 === 0) {

this.fontSize += 16;

this.contents.fontSize += 24;

            px = sx3;

            sy += 24 + gaugeLineHeight;

        } else {

            px += pw + 28;

        }

    }

    ny += lineHeight +5;

    ny += Math.ceil(params.length / 1) * gaugeLineHeight;

}





// Draw Actor Equipment

this.resetFontSettings();

this.fontSize += 8;

sx = rect.x + Math.floor(rect.width / 2 -400);

sy = ny + lineHeight;

sw = rect.width / 2;

for (const equip of equips) {

    if (equip) {

        this.drawItemName(equip, sx, sy, sw);

        sy +=lineHeight;

        if (sy + lineHeight > rect.y + rect.height) return;

    }

}
Hi there!
I can't help you, but it will help other people help you if you format the post properly. Use the "code" input to copy and paste code, so it is better for reading
I have the same question - googled around and your post came up! - so I'm joining in, hopefully there's a solution.

My parameter icons in the "Solo" menu are squished to like 24x24 and look funny. The parameter text used to be too small too - I had to increase the Global font size to increase them, but they're still small in comparison. Something's making the text and icons smaller than they should be.

1724421486307.png


I had chatgpt rearrange everything for me, so that the columns aligned, so my code looks a bit nuts.

JavaScript:
// Declare Constants
const actor = arguments[0];
const rect = arguments[1];

// Make Constants
const lineHeight = this.lineHeight();
const gaugeLineHeight = this.gaugeLineHeight();

// Draw Actor Graphic
let sx = rect.x;
let sy = rect.y;
let sw = rect.width;
let sh = rect.height;

// Portrait
if (actor.getMenuImage() !== '') {
    this.drawItemActorMenuImage(actor, rect.x, rect.y, rect.width, rect.height);

// Everything Else
} else {
    const gx = Math.max(0, rect.x + Math.floor(((rect.width / 2) - ImageManager.faceWidth) / 2));
    const gy = Math.max(0, rect.y + rect.height - Math.ceil(lineHeight * 4.5) - ImageManager.faceHeight);
    this.drawActorGraphic(actor, gx, gy, ImageManager.faceWidth, ImageManager.faceHeight);
}

// Draw Dark Rectangle
sh = Math.ceil(lineHeight * 4.5);
sy = rect.y + rect.height - sh;
//this.contents.fillRect(sx+1, sy+lineHeight/2, sw-2, sh-1-lineHeight/2, ColorManager.dimColor1());
//this.contents.gradientFillRect(sx+1, sy-lineHeight/2, sw-2, lineHeight, ColorManager.dimColor2(), ColorManager.dimColor1(), true);


// Draw Actor Name
// This will now draw the name more to the right, at the start of the second column
sw = Math.round(rect.width / 2);
sx = rect.x + Math.floor(rect.width / 2) - (sw/2) + 100; // Adjust this to move the name to the right
sy = rect.y;
this.drawText(actor.name(), sx, sy, sw, 'left');

// Draw Actor Level
// This will draw the level below the name, aligned with the name
this.drawActorLevel(actor, sx, sy + this.lineHeight());

// Draw Actor Class
// This will draw the class below the level, aligned with the name and level
const className = actor.currentClass().name;
//this.drawTextEx(className, sx, sy + this.lineHeight() * 2, sw);

// Draw Actor Icons
sx = rect.x + Math.round(((rect.width / 2) - 128) / 2);
sy += lineHeight;
this.drawActorIcons(actor, sx, sy);

// Prepare Stat Coordinates
sx = rect.x + Math.floor(rect.width / 2);
sw = rect.width / 2;
sh = rect.height;
const sx3 = sx;
const cw = rect.width - sx3 - 2;

// Prepare Total Content Height to vertically center the content.
let totalHeight = gaugeLineHeight * ($dataSystem.optDisplayTp ? 3 : 2);
if (Imported.VisuMZ_0_CoreEngine && cw >= 300) {
    const params = VisuMZ.CoreEngine.Settings.Param.DisplayedParams;
    totalHeight += lineHeight;
    totalHeight += Math.ceil(params.length / 2) * gaugeLineHeight;
}
const equips = actor.equips();
totalHeight += lineHeight;
totalHeight += equips.length * lineHeight;
sy = Math.max(rect.y, rect.y + Math.floor((rect.height - totalHeight) / 2));

// Prepare Stat Coordinates for Gauges
// This moves the gauges to the right above the second column of parameters
sx = rect.x + Math.floor(rect.width / 2) + 140; // Adjust 300 to suit the exact positioning
sw = Math.round(rect.width / 4); // Adjust the width of the gauges if necessary
sy = rect.y + 10; // This sets the vertical start position of the gauges

// Draw Gauges
// The gauges will now start from the top right corner above Defense
this.placeGauge(actor, "hp", sx, sy);
sy += gaugeLineHeight + 10;
this.placeGauge(actor, "mp", sx, sy);
if ($dataSystem.optDisplayTp) {
    sy += gaugeLineHeight;
    this.placeGauge(actor, "tp", sx, sy);
}
let ny = sy;

// Following Requires VisuStella MZ's Core Engine
// Draw Additional Parameter Data if Enough Room
if (Imported.VisuMZ_0_CoreEngine && cw >= 300) {
    const params = VisuMZ.CoreEngine.Settings.Param.DisplayedParams;
    sy += lineHeight + 10;
    const paramPadding = 50; // Space between parameter name and value
    const rightColumnXOffset = 225; // X offset for the right column
    const paramPairWidth = 200; // Width for each parameter name-value pair
    const rowPadding = 10; // Additional padding between rows
    let px = sx3 - 100; // Initial x-position for left columns
    let counter = 0;
    for (const param of params) {
        this.resetFontSettings();

        // Determine if this is the left or right column
        if (counter % 2 !== 0) {
            px = sx3 - 100 + rightColumnXOffset; // Move to the right column position
        }

        // Draw parameter name using Visustella's method
        this.drawParamText(px, sy, paramPairWidth - paramPadding, param, true);

        this.resetTextColor();

        // Set the desired font size for parameter values
        this.contents.fontSize = 28;
        const paramValue = actor.paramValueByName(param, true);
        this.drawText(paramValue, px + paramPairWidth - paramPadding, sy, paramPadding, 'right'); // Draw the value next to the name

        counter++;
        if (counter % 2 === 0) {
            px = sx3 - 100; // Reset x-position for the next line (left column)
            sy += gaugeLineHeight + rowPadding; // Add extra padding between rows
        }
    }
    ny += lineHeight;
    ny += Math.ceil(params.length / 2) * (gaugeLineHeight + rowPadding); // Adjust total height accordingly
}

// Draw Actor Equipment
// this.resetFontSettings();
// sx = rect.x + Math.floor(rect.width / 2);
// sy = ny + lineHeight;
// sw = rect.width / 2;
// for (const equip of equips) {
//     if (equip) {
//         this.drawItemName(equip, sx, sy, sw);
//         sy += lineHeight;
//         if (sy + lineHeight > rect.y + rect.height) return;
//     }
//}
I found a solution

Code:
this.drawParamText(px, sy, pw, param, false);

        const paramValue = actor.paramValueByName(param, false);


So I changed these two lines, both from true to false and it worked

I think you do this for your code, it might fix it?

Code:
// Declare Constantsconst actor = arguments[0];
const rect = arguments[1];

// Make Constants
const lineHeight = this.lineHeight();
const gaugeLineHeight = this.gaugeLineHeight();

// Draw Actor Graphic
let sx = rect.x;
let sy = rect.y;
let sw = rect.width;
let sh = rect.height;

// Portrait
if (actor.getMenuImage() !== '') {
this.drawItemActorMenuImage(actor, rect.x, rect.y, rect.width, rect.height);

// Everything Else
} else {
const gx = Math.max(0, rect.x + Math.floor(((rect.width / 2) - ImageManager.faceWidth) / 2));
const gy = Math.max(0, rect.y + rect.height - Math.ceil(lineHeight * 4.5) - ImageManager.faceHeight);
this.drawActorGraphic(actor, gx, gy, ImageManager.faceWidth, ImageManager.faceHeight);
}

// Draw Dark Rectangle
sh = Math.ceil(lineHeight * 4.5);
sy = rect.y + rect.height - sh;
//this.contents.fillRect(sx+1, sy+lineHeight/2, sw-2, sh-1-lineHeight/2, ColorManager.dimColor1());
//this.contents.gradientFillRect(sx+1, sy-lineHeight/2, sw-2, lineHeight, ColorManager.dimColor2(), ColorManager.dimColor1(), true);


// Draw Actor Name
// This will now draw the name more to the right, at the start of the second column
sw = Math.round(rect.width / 2);
sx = rect.x + Math.floor(rect.width / 2) - (sw/2) + 100; // Adjust this to move the name to the right
sy = rect.y;
this.drawText(actor.name(), sx, sy, sw, 'left');

// Draw Actor Level
// This will draw the level below the name, aligned with the name
this.drawActorLevel(actor, sx, sy + this.lineHeight());

// Draw Actor Class
// This will draw the class below the level, aligned with the name and level
const className = actor.currentClass().name;
//this.drawTextEx(className, sx, sy + this.lineHeight() * 2, sw);

// Draw Actor Icons
sx = rect.x + Math.round(((rect.width / 2) - 128) / 2);
sy += lineHeight;
this.drawActorIcons(actor, sx, sy);

// Prepare Stat Coordinates
sx = rect.x + Math.floor(rect.width / 2);
sw = rect.width / 2;
sh = rect.height;
const sx3 = sx;
const cw = rect.width - sx3 - 2;

// Prepare Total Content Height to vertically center the content.
let totalHeight = gaugeLineHeight * ($dataSystem.optDisplayTp ? 3 : 2);
if (Imported.VisuMZ_0_CoreEngine && cw >= 300) {
const params = VisuMZ.CoreEngine.Settings.Param.DisplayedParams;
totalHeight += lineHeight;
totalHeight += Math.ceil(params.length / 2) * gaugeLineHeight;
}
const equips = actor.equips();
totalHeight += lineHeight;
totalHeight += equips.length * lineHeight;
sy = Math.max(rect.y, rect.y + Math.floor((rect.height - totalHeight) / 2));

// Prepare Stat Coordinates for Gauges
// This moves the gauges to the right above the second column of parameters
sx = rect.x + Math.floor(rect.width / 2) + 140; // Adjust 300 to suit the exact positioning
sw = Math.round(rect.width / 4); // Adjust the width of the gauges if necessary
sy = rect.y + 10; // This sets the vertical start position of the gauges

// Draw Gauges
// The gauges will now start from the top right corner above Defense
this.placeGauge(actor, "hp", sx, sy);
sy += gaugeLineHeight + 10;
this.placeGauge(actor, "mp", sx, sy);
if ($dataSystem.optDisplayTp) {
sy += gaugeLineHeight;
this.placeGauge(actor, "tp", sx, sy);
}
let ny = sy;

// Following Requires VisuStella MZ's Core Engine
// Draw Additional Parameter Data if Enough Room
if (Imported.VisuMZ_0_CoreEngine && cw >= 300) {
const params = VisuMZ.CoreEngine.Settings.Param.DisplayedParams;
sy += lineHeight + 10;
const paramPadding = 50; // Space between parameter name and value
const rightColumnXOffset = 225; // X offset for the right column
const paramPairWidth = 200; // Width for each parameter name-value pair
const rowPadding = 10; // Additional padding between rows
let px = sx3 - 100; // Initial x-position for left columns
let counter = 0;
for (const param of params) {
this.resetFontSettings();

// Determine if this is the left or right column
if (counter % 2 !== 0) {
px = sx3 - 100 + rightColumnXOffset; // Move to the right column position
}

// Draw parameter name using Visustella's method
this.drawParamText(px, sy, paramPairWidth - paramPadding, param, true);

this.resetTextColor();

// Set the desired font size for parameter values
this.contents.fontSize = 28;
const paramValue = actor.paramValueByName(param, false);
this.drawText(paramValue, px + paramPairWidth - paramPadding, sy, paramPadding, 'right'); // Draw the value next to the name

counter++;
if (counter % 2 === 0) {
px = sx3 - 100; // Reset x-position for the next line (left column)
sy += gaugeLineHeight + rowPadding; // Add extra padding between rows
}
}
ny += lineHeight;
ny += Math.ceil(params.length / 2) * (gaugeLineHeight + rowPadding); // Adjust total height accordingly
}

// Draw Actor Equipment
// this.resetFontSettings();
// sx = rect.x + Math.floor(rect.width / 2);
// sy = ny + lineHeight;
// sw = rect.width / 2;
// for (const equip of equips) {
//     if (equip) {
//         this.drawItemName(equip, sx, sy, sw);
//         sy += lineHeight;
//         if (sy + lineHeight > rect.y + rect.height) return;
//     }
//}
@SteelSoldier you rock! That worked! Who knew it'd be so simple. Thank you!!

Original thread: https://forums.rpgmakerweb.com/threads/difficulty-with-icon-compression-with-visustella-core-main-menu.171339/