Problem with HP display and gauge size

CuddleFox

Furry
Veteran
Joined
Feb 18, 2017
Messages
116
Reaction score
40
First Language
French
Primarily Uses
RMVXA
Hi. It's me again.

Something's bothering me about VX Ace. When the text is too wide for the window in which it is located, it is overwritten on the width. In my game, characters can have more than 9999 HP, and the number becomes unreadable. I would like to know if there is a way to remove the term "HP", to gain additional space? Or remove the term "MP" and reduce the size of the MP gauge to enlarge the HP gauge?

Thank you in advance ^^
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
First Language
Indonesian
Primarily Uses
RMVXA
Can you just remove the HP terms in Database --> Terms tab?
 

CuddleFox

Furry
Veteran
Joined
Feb 18, 2017
Messages
116
Reaction score
40
First Language
French
Primarily Uses
RMVXA
I've already tried that. This does not change the size of the area on which the text is written.
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,248
Reaction score
1,250
First Language
Spanish
Primarily Uses
RMVXA
main status window or battle status?
 

CuddleFox

Furry
Veteran
Joined
Feb 18, 2017
Messages
116
Reaction score
40
First Language
French
Primarily Uses
RMVXA
All right, thank you. I got what I wanted.

In case others have this display problem. I edited Window_BattleStatus, lines 107-109
Code:
  def draw_gauge_area_without_tp(rect, actor)
    draw_actor_hp(actor, rect.x + 0, rect.y, 150)
    draw_actor_mp(actor, rect.x + 160,  rect.y, 60)
And Window_Base lines 481-501
Code:
  def draw_current_and_max_values(x, y, width, current, max, color1, color2)
    change_color(color1)
    xr = x + width
    if width < 96
      draw_text(xr - 40, y, 42, line_height, current, 2)
    else
      draw_text(xr - 121, y, 60, line_height, current, 2)
      change_color(color2)
      draw_text(xr - 64, y, 12, line_height, "/", 2)
      draw_text(xr - 57, y, 60, line_height, max, 2)
    end
  end
  #--------------------------------------------------------------------------
  # * Draw HP
  #--------------------------------------------------------------------------
  def draw_actor_hp(actor, x, y, width = 142)
    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)
Thank you for your help and suggestions ^^

This is the rendering I was looking for :
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top