MZ Changing a color in Hakuen’s battle results

Hi everyone, I’ve recently started using a few of Hakuen’s plugins, and really like them! They’ve been easy to use, and for the first time I’ve been diving into the js files, trying to make little adjustments.

I altered the ‘actor level up’ window, so that it doesn’t show the class. And I also added the words ‘level up!!!’ under the character name. (He normally has a separate window for this, but I wanted to consolidate into one.)

My question is, is there any simple way to change the font color where it says ‘level up!!!’? I’d like it to be the same color as ‘actorClass’, or maybe I can identify it by window number or color code.

(All the original lines of code that I didn’t use I’ve added //. The only line I added is the drawText for level up.)

lvl1.png

lvl2.png


I am very VERY new to js and messing with code, so open to any suggestions.

Thanks for any help!
In MZ maybe you can do something like this :

Code:
this.changeTextColor(ColorManager.textColor(N));
this.drawText("Level Up!!!", 195, 80);
this.resetTextColor();

With N being the Nth color of the windowskin.
You can even replace ColorManager.textColor(N) by a string containing a css RGB color such as "#ffffff" for white.

(see rmmz_managers.js, look for ColorManager)
In MZ maybe you can do something like this :

Code:
this.changeTextColor(ColorManager.textColor(N));
this.drawText("Level Up!!!", 195, 80);
this.resetTextColor();

With N being the Nth color of the windowskin.
You can even replace ColorManager.textColor(N) by a string containing a css RGB color such as "#ffffff" for white.

(see rmmz_managers.js, look for ColorManager)

This was absolutely perfect. And very informative. Thank you!!!

Original thread: https://forums.rpgmakerweb.com/threads/changing-a-color-in-hakuens-battle-results.176016/