Changing colours of increasing/decreasing Parameters

How to change color of the NEW value of the parameter in the Equip menu? The one that shows if the weapon/armor/etc that you are going to equip has positive or negative effect to the current value.

color.png


As you can see, if the new value is negative the color it uses is imho not clear enough and I want to change that.

I'm using Yanfly's Equip Engine https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/ace-equip-engine/

It has def draw_new_param but I just can't figure it out since I'm not a scripter.

Spoiler
Code:
  def draw_new_param(dx, dy, param_id)    contents.font.size = YEA::EQUIP::STATUS_FONT_SIZE    new_value = @temp_actor.param(param_id)    change_color(param_change_color(new_value - @actor.param(param_id)))    draw_text(0, dy, contents.width-4, line_height, new_value.group, 2)    reset_font_settings  end 
Just going of that code I would suggest looking in the param_change_color code.

Alternatively you could alter the colour in the system folders graphics thing.
Just going of that code I would suggest looking in the param_change_color code.

Alternatively you could alter the colour in the system folders graphics thing.
I figured out that much but I think I'm just too tired to figure it out 😀 And changing the graphics color is not an option since I have lots of other scripts that would be affected by that.
As another idea, you could remove the change_color command all together and create 2 new icons to show positive and negative growth of stats.

then add

if new_value > @actor.param(param_id)

   draw_icon( # id of positive icon 

if new_value < @actor.param(param_id)

   draw_icon( # id of negative icon

 

with the icon id's and the x/y to appear directly besides the new value.
Can't get my head around that parameter colour. I just can't do it and I don't find anything related to param_change_color in google. Also adding that draw_icon with the changing color would be cool but can I do that? Nope. 

Tried with different values etc. It shows nothing. Draw icon wants 3 values. Could someone walk me through these, I hate when I don't understand something!

Code:
  if new_value > @actor.param(param_id)     draw_icon(200, 200, 957)  end  if new_value < @actor.param(param_id)     draw_icon(x , y, 958)  end
Looking at that code I would go with -

draw_icon(dx-15, dy, 957)

First argument is x coord, second is Y and third is the ID of the icon.

Statt at about dx-15 then increase or decrease based on your preference. I'm on my phone right now so I can check to see what that actually looks like.
Changing the colour of the text does not require a script; you can do it in an image editor. In the windowskin (file named "Window" in Graphics\System\), there is a palette of 32 colours in the lower righthand corner. The power up colour is the first colour in the fourth row, and the power down colour is the second colour in the fourth row. All you have to do is change those two squares to the colour that you want.
Changing the colour of the text does not require a script; you can do it in an image editor. In the windowskin (file named "Window" in Graphics\System\), there is a palette of 32 colours in the lower righthand corner. The power up colour is the first colour in the fourth row, and the power down colour is the second colour in the fourth row. All you have to do is change those two squares to the colour that you want.
True but that would broke my other scripts that rely on those same colours.
Sorry. I expected that if the colour was unclear against that windowskin for one script it would be unclear for any other too, but I guess I was wrong. Insert the following code into a new slot in the Script Editor above Materials and below Main:

class Window_EquipStatus  def power_up_color;    text_color(24);  end;    # Equipment power up  def power_down_color;  text_color(25);  end;    # Equipment power downendChange the 24 and 25 to the index of whichever colour in the windowskin palette that you want to use. The indices start at 0 in the top left-hand corner and progress through the first row, then the second, etc... In other words:

0   1   2   3   4   5   6   7

8   9   10 11 12 13 14 15

16 17 18 19 20 21 22 23

24 25 26 27 28 29 30 31
Awesome answer
Super awesomeness. So simple snippet yet so incredibly usefull! Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/changing-colours-of-increasing-decreasing-parameters.35289/