Ren'Py How to resize the textbox according to the words amount?

Ikatikei

Newbie
Aug 1, 2018
91
47
For example: If the dialogue inside of the textbox is "...", the textbox will appear small (with an minimum size, of course). But if it has a bigger dialogue, the textbox will appear in a bigger size.
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,968
16,222
For example: If the dialogue inside of the textbox is "...", the textbox will appear small (with an minimum size, of course). But if it has a bigger dialogue, the textbox will appear in a bigger size.
By using the xminimum/xmaximum and yminimum/ymaximum in the "say_dialogue" style.

Please, don't do that. I know that a small text in a big dialog box can feel weird, but a dialog box that would constantly change its size would quickly become annoying for most players.
 
  • Like
Reactions: Ikatikei

Ikatikei

Newbie
Aug 1, 2018
91
47
By using the xminimum/xmaximum and yminimum/ymaximum in the "say_dialogue" style.

Please, don't do that. I know that a small text in a big dialog box can feel weird, but a dialog box that would constantly change its size would quickly become annoying for most players.
Really? It seemed so praticall, I did not know that most of players find it annoying. Well, thanks anyway.
 

moskyx

Forum Fanatic
Jun 17, 2019
4,223
13,983
I'd say most players don't want a textbox at all, unless it's something really creative that fits the game's flair. The transparent textbox mod is probably one of the most demanded ones on the whole site. I don't think I've ever seen an adaptative textbox like the one you suggest, though, but I can imagine it being annoying after a while.