Changing the color of specific text in Battle

I'm looking to figure out how to make Specifically this health text (LF: ) and number black, so it shows up better against this background:
1641526519762.png

Is there something I can do to make it show up like that, while not changing the system text color, or battle text color as a whole?
Still hoping for an answer. If it helps, here's my code:

Ruby:
#--------------------------------------------------------------------------
  # * Draw Gauge Area (without TP)
  #--------------------------------------------------------------------------
  def draw_gauge_area_without_tp(rect, actor,)
    draw_actor_hp(actor, rect.x + 125, rect.y, 100)
#    draw_actor_mp(actor, rect.x + 144,  rect.y, 76)
  end
  #--------------------------------------------------------------------------
  # * Change Height of Health Bar to go over text
  #--------------------------------------------------------------------------
    def draw_gauge(x, y, width, rate, color1, color2)
    fill_w = (width * rate).to_i
    gauge_y = y + line_height - 22
    contents.fill_rect(x, gauge_y, width, 10, gauge_back_color)
    contents.gradient_fill_rect(x, gauge_y, fill_w, 20, color1, color2)
  end

The "Draw Gauge Area" Draws the text and the health bar, and the "Change Height of Health Bar" is a script to make the bar surround the text. as seen in the image above. I want to know how to turn the blue "LV:" and the "20/20" To be black, so it shows up better against the colored background.
Moved to: RGSSx Script Support

[bump]@Jon_Doe[/bump]


This one is in the draw_actor_hp function:

Code:
  #--------------------------------------------------------------------------
  # * Draw HP
  #--------------------------------------------------------------------------
  def draw_actor_hp(actor, x, y, width = 124)
    draw_gauge(x, y, width, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::hp_a)
    draw_current_and_max_values(x, y, width, actor.hp, actor.mhp,
      hp_color(actor), normal_color)
  end


I imagine system_color is the blue, and normal_color is the white. So it'll be just a matter of changing those to use the correct color.

text_color(15) I think is what will get you black. It doesn't seem to be predefined, but you could also do that if you wanted:

Code:
class Window_Base < Window
  def battle_text_color;     text_color(15);    end;

  def draw_actor_hp(actor, x, y, width = 124)
    draw_gauge(x, y, width, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
    change_color(battle_text_color)
    draw_text(x, y, 30, line_height, Vocab::hp_a)
    draw_current_and_max_values(x, y, width, actor.hp, actor.mhp,
      hp_color(actor), battle_text_color)
  end
end

Again, this is a Window_Base function, so changing it there will make ALL instances of actor HP use those colors. If you don't want that, then you'll have to add the draw_actor_hp function within whatever battle class you want to affect (Window_Battle_Status?)

1641618193816.png


1641618231991.png

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-color-of-specific-text-in-battle.143692/