Willibab

The Lord of Whackery
Veteran
Joined
Jun 22, 2017
Messages
540
Reaction score
1,363
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

Happy treason day, Colonial friends <3

I am officially amused. One of the NPCs in my project is basically meant as the guy you check in with to point you where you should go next, including if you’ve been away for a bit and have forgotten.

I can conclusively say he does his job nicely. I was out of town over the weekend. I had forgotten what I was working on, so I checked what I had last done with him for a reminder. ^.^
While talking about anime with a friend got the idea of doing this. :kaopride:
4m6nhlF.jpg

Character: Mirajane Strauss from Fairy Tail.
Dog saliva is an antiseptic.
NghNgE9.gif

Forum statistics

Threads
123,333
Messages
1,155,836
Members
161,755
Latest member
shirouinazuki
Top