Changing Text Colors

AuraTheDoof

Villager
Member
Joined
Feb 22, 2020
Messages
7
Reaction score
1
First Language
English
Primarily Uses
RMMV
Is there any way to change the default colors for terms like LV, HP, and the parametres?
1582471644268.png
 

belatucadrus

Veteran
Veteran
Joined
Mar 6, 2017
Messages
78
Reaction score
13
First Language
french
Primarily Uses
RMMV
After further investigation, I noticed this function in the file rpg_windows.js (located in the "plugins" folder of the project) :

Code:
Window_Base.prototype.systemColor = function() {
    return this.textColor(16);
};
It seems that changing the value of the text color will change the color of the LV, HP, MP, TP, but also the gold, the parameters like "ATK, DEF, MDEF...". In short, all the text that has been labeled "system colored" will change.

If you want to only change the color of the parameters, I suggest you to take a look at rpg_windows.js and change them manually.

for example

Code:
Window_Base.prototype.drawActorHp = function(actor, x, y, width) {
    width = width || 186;
    var color1 = this.hpGaugeColor1();
    var color2 = this.hpGaugeColor2();
    this.drawGauge(x, y, width, actor.hpRate(), color1, color2);
    this.changeTextColor(this.systemColor());
    this.drawText(TextManager.hpA, x, y, 44);
    this.drawCurrentAndMax(actor.hp, actor.mhp, x, y, width,
                           this.hpColor(actor), this.normalColor());
};
You can see wherethe text color is applied and it's not hard to figure out how to edit the line ^^
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

This is on the Amazon page for the FF7 Remake: 'If you get the game early, please think of others and don't spoil it for them. Please don't post videos or screenshots of the game until it is officially on sale on April 10.'
Gave my avatar an update, stay safe, people!
I'm currently available for hire for scripting (and perhaps other things).
Also, don't worry, the Advanced Minimap plugin is a work in progress.
Hallelujah! Work is getting stricter on humans in the store.
Day 3 of mapping... at least the whole game its just one location :3 (Still taking forever...)

Forum statistics

Threads
95,622
Messages
930,499
Members
125,929
Latest member
RitBro
Top