- Joined
- Oct 17, 2012
- Messages
- 394
- Reaction score
- 98
- First Language
- Español
- Primarily Uses
- RMVXA
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
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
Last edited by a moderator:

