Code:
class Window_Base < Window
  def draw_current_and_max_values(x, y, width, current, max, color1, color2)
    change_color(color1)
    if width < 96
      draw_text(x, y, 42, line_height, current, 2)
    else
      draw_text(x, y, 42, line_height, current, 2)
      change_color(color2)
      draw_text(x + 42, y, 12, line_height, "/", 2)
      draw_text(x + 54, y, 42, line_height, max, 2)
    end
  end
  def draw_actor_tp(actor, x, y, width = 124)
    draw_gauge(x, y, width, actor.tp_rate, tp_gauge_color1, tp_gauge_color2)
    change_color(system_color)
    tx = text_size(Vocab::tp_a).width + 2
    draw_text(x, y, width, line_height, Vocab::tp_a, 2)
    change_color(tp_color(actor))
    draw_text(x, y, width - tx, line_height, actor.tp.to_i, 2)
  end
  #--------------------------------------------------------------------------
  # * 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)
    tx = text_size(Vocab::hp_a).width + 2
    draw_text(x, y, width, line_height, Vocab::hp_a, 2)
    draw_current_and_max_values(x+8, y, width, actor.hp, actor.mhp,
      hp_color(actor), normal_color)
  end
  #--------------------------------------------------------------------------
  # * Draw MP
  #--------------------------------------------------------------------------
  def draw_actor_mp(actor, x, y, width = 124)
    draw_gauge(x, y, width, actor.mp_rate, mp_gauge_color1, mp_gauge_color2)
    change_color(system_color)
    tx = text_size(Vocab::mp_a).width + 2
    draw_text(x, y, width, line_height, Vocab::mp_a, 2)
    draw_current_and_max_values(x, y, width, actor.mp, actor.mmp,
      mp_color(actor), normal_color)
  end
end