- Joined
- Jun 22, 2017
- Messages
- 634
- Reaction score
- 1,610
- First Language
- Norwegian
- Primarily Uses
- RMMZ
So using Visustella Main Core, I can choose which parameters to display.
Im very satisfied with how it looks in my status screen

But if I have this many then it looks like this in main menu

This code governs how the parameters is shown on the main menu if there is space for it. My goal is for only 6 to be shown.
I added the
const maxItems = this.maxItems()
return 6;
In hopes that it would limit the parameters shown in main menu to a max of 6 but it only removed them all xD Is something similar possible?
I can remove how many of the stats are shown, but then my status screen will be pretty empty. So it feels like I have to choose which screen will look good D:
Im very satisfied with how it looks in my status screen

But if I have this many then it looks like this in main menu

This code governs how the parameters is shown on the main menu if there is space for it. My goal is for only 6 to be shown.
Code:
// Following Requires VisuStella MZ's Core Engine
// Draw Additional Parameter Data if Enough Room
sx3 = sx2 + 300;
sw = rect.width - sx3 - 2;
if (Imported.VisuMZ_0_CoreEngine && sw >= 300) {
const params = VisuMZ.CoreEngine.Settings.Param.DisplayedParams;
const pw = Math.floor(sw / 2) - 24;
let px = sx3;
let py = rect.y + Math.floor((rect.height - (Math.ceil(params.length / 2) * gaugeLineHeight)) / 2 - 12);
let counter = 0;
for (const param of params) {
this.resetFontSettings();
const maxItems = this.maxItems()
return 6;
this.drawParamText(px, py, pw, param, false);
this.resetTextColor();
this.contents.fontSize = 20;
const paramValue = actor.paramValueByName(param, true);
this.contents.drawText(paramValue, px +64, py +2, pw, gaugeLineHeight, 'center');
counter++;
if (counter % 2 === 0) {
px = sx3;
py += gaugeLineHeight + 4;
} else {
px += pw + 24;
}
}
}
I added the
const maxItems = this.maxItems()
return 6;
In hopes that it would limit the parameters shown in main menu to a max of 6 but it only removed them all xD Is something similar possible?
I can remove how many of the stats are shown, but then my status screen will be pretty empty. So it feels like I have to choose which screen will look good D: