rivelle

Villager
Member
Joined
Jan 16, 2023
Messages
26
Reaction score
2
First Language
English
Primarily Uses
RMMZ
Is there a way to change their colors?
I know it's not in the parameters, but I was hoping someone knows if I can code them in somehow?

I'm talking about this plugin:
 

Attachments

  • PrettySleekGauges.js
    36.3 KB · Views: 0

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
8,891
Reaction score
6,695
First Language
English
Primarily Uses
RMMV
Just a couple of notes:
1 - If you have a question about a specific plugin, it always makes sense to post in the thread for that plugin. That's where you're going to possibly contact the author(s) and any users who are following the thread because they use the plugin.

2 - You should generally link to the thread or other download site rather than repost the plugin in your own thread. Many authors have rules in their terms of use that prohibit others distributing their work.

If you open the plugin in a text editor, the colors used are defined in the drawStaticGauge and drawAnimatedGauge functions. If you search for it, you'll find for example line 487:
Code:
this.drawStaticGauge(x, y, width, rate, this.textColor(0), this.textColor(8), "exp");

You can see the 5th and 6th arguments are the start and end colors the gradient is made from. If you use the textColor function like that, it's referencing the colors in your Window.png file.

All of the different gauges are right around there, you can scroll up a screen and see drawing HP, MP, etc.
 

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,034
Reaction score
16,843
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Support. Thank you.



I also confirm points 1 and 2 in the answer above.
 

Latest Threads

Latest Posts

Latest Profile Posts

Hamburger!? Yeeah.
I love it when the approval queue is 80% spammers. Makes it so fast to power through!
I found some inspiration and have started work on a Point and Click style exploration game in a dead mall. I am hopefully going to push MZ in some unexpected directions. I always love seeing the engine do things that folks might not expect. Its good to have found some direction. Thanks for the support a few weeks back when the writers blog was hitting heavy.
Don't you want your heroes or monsters to lose some of their MAXHP or MAXMP? Don't you?
Really, why wouldn't you? :p
Yeah, it's gonna get worse after every hit they take, but so what?
Aren't they courageous fighters? Or stupidly brute mobsters?

Forum statistics

Threads
131,731
Messages
1,222,709
Members
173,477
Latest member
Livpure
Top