RPG Maker Forums

Hello everybody, I have a trouble with Yanfly's message system, I'm trying to make a name window, just like this script says it can make, it works normally if I use the regular fonts, but I added a new font to the game and I tried to make a window name with this command



Here comes the trouble, when I try to test it, the program shows the next error



#--------------------------------------------------------------------------

  # set_width

  #--------------------------------------------------------------------------

  def set_width

    text = @text.clone

    dw = standard_padding * 2 + text_size(text).width

    dw += YEA::MESSAGE::NAME_WINDOW_PADDING * 2

    dw += calculate_size(text.slice!(0, 1), text) until text.empty?

    self.width = dw

  end

 

The line 588 is this one

 

dw += calculate_size(text.slice!(0, 1), text) until text.empty?

 

I actually could fix this problem... Well Kind of, adding an extra \ to the tag in the window name, but it shows the name of this way...

 



 

I don't like the fact the window name looks really disproportionate considering the text's length... Is there a way to fix that? thanks by the help

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,540
Members
137,834
Latest member
EverNoir
Top