Willibab

The Lord of Whackery
Veteran
Joined
Jun 22, 2017
Messages
535
Reaction score
1,356
First Language
Norwegian
Primarily Uses
RMMZ
I'm looking for help to make a plugin to change the font size of the param text and numbers.

dfs.PNG

It is a change that I think Visustella SkillStates did.
The Visustella MainMenuCore did the same in the main menu.

I managed to change it in the main menu due to JS code being available.
tasda.png
(This looked identical to the one in the skill window before.)

But cant find any for skill window.

Here is the code for the main menu and the changes I made. (If that helps?)

// 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();
this.drawParamText(px, py, pw, param, false); (Changing this to false made the param text regular size.)
this.resetTextColor();
this.contents.fontSize = 20; (This changes the size of the param numbers.)
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 tried to make my own but I just lack the basic knowledge tbh xD Im more of a ''edit what is already made'' kind of guy :p
 
Last edited:

Latest Threads

Latest Profile Posts

The main game of my trilo/saga 50%OFF on Steam..... its now or never more
I swap between Ace and MZ so I can stay fresh but - what do you mean you can use subfolders in the plugin's folder for easier organization!?
Did some new music again, praise be. To the next song!
Watch Studio Blue play Numina by starlit in our latest RPG Maker Games Critique stream starting NOW!

Forum statistics

Threads
123,140
Messages
1,154,266
Members
161,475
Latest member
guihguih27
Top