Hello,
I'm trying to tweak my textbook so that it automatically change sizes depending on how much text there is, basically exactly how the namebox works
But I have not a single clue about where to even start.
For instance:
Does anyone knows what code I could use to make the textbox's frame change according to the "what"'s size?
Make textbox change size according to the dialogue
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
- Regular
- Posts: 26
- Joined: Fri Sep 08, 2017 8:18 am
- Contact:
- Ocelot
- Lemma-Class Veteran
- Posts: 2438
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: Make textbox change size according to the dialogue
Frame ( https://www.renpy.org/doc/html/screens.html#frame ) contains cacground which is stretched (or tiled) to match size of containing children.
Even more information about Frame:
https://www.renpy.org/doc/html/displayables.html#Frame
https://www.renpy.org/doc/html/gui.html#borders
Even more information about Frame:
https://www.renpy.org/doc/html/displayables.html#Frame
https://www.renpy.org/doc/html/gui.html#borders
< < insert Rick Cook quote here > >
-
- Regular
- Posts: 26
- Joined: Fri Sep 08, 2017 8:18 am
- Contact:
Re: Make textbox change size according to the dialogue
Thank you !
I try using Frame like for the namebox but it's size don't change according to the what. It stick to xminimum and yminimum... é.è
I don't understand why the namebox size change according to the who but not the window according to the what.
I try using Frame like for the namebox but it's size don't change according to the what. It stick to xminimum and yminimum... é.è
Code: Select all
style window:
background Frame ("gui/textbox.png", 20,20,20,20, xalign=0.5, yalign=1.0)
Last edited by WillandBran on Thu May 06, 2021 10:47 am, edited 2 times in total.
- Ocelot
- Lemma-Class Veteran
- Posts: 2438
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: Make textbox change size according to the dialogue
Are you sure that window style is applied to the what window and that nothing overwrites it?
Check the styles in the style inspector (Shift+I on the displayable you want to check).
Check the styles in the style inspector (Shift+I on the displayable you want to check).
< < insert Rick Cook quote here > >
-
- Regular
- Posts: 26
- Joined: Fri Sep 08, 2017 8:18 am
- Contact:
Re: Make textbox change size according to the dialogue
I found the problem ! I have define incorrectly xmaximum and ymaximum !
Thank you a lot !!
Thank you a lot !!
Who is online
Users browsing this forum: No registered users