(Solved) Regards vpgrid with indefinite children sizes
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: 27
- Joined: Mon Jan 25, 2021 5:35 pm
- Contact:
(Solved) Regards vpgrid with indefinite children sizes
How to create vpgrid which consists of children of different dimensions/sizes ?
Last edited by andriodmactemporary on Tue Apr 06, 2021 9:20 am, edited 1 time in total.
Re: Regards vpgrid with indefinite children sizes
Could you draw how it should looks like?
-
- Regular
- Posts: 27
- Joined: Mon Jan 25, 2021 5:35 pm
- Contact:
Re: Regards vpgrid with indefinite children sizes
Here every message is of the same size, but when I insert an image (for ex, dimension of 128x128) in this vpgrid, that image is being overlapped on the messages.
- Ocelot
- Lemma-Class Veteran
- Posts: 2406
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: Regards vpgrid with indefinite children sizes
Why vpgrid? Why not viewport and vbox?
< < insert Rick Cook quote here > >
-
- Regular
- Posts: 27
- Joined: Mon Jan 25, 2021 5:35 pm
- Contact:
- Ocelot
- Lemma-Class Veteran
- Posts: 2406
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: Regards vpgrid with indefinite children sizes
You can place viewport anywhere with any size, including in the corner of the screen. Internally vpgrid is literally a viewport, if you couldn't do something with viewport, you wouldn't be able to do this with vpgrid. And if you add vbox with all messages (dynamically filled) it will have scrollbars natively.
Proof of concept using viewport and vbox
Proof of concept using viewport and vbox
- Attachments
-
- TEST61809.zip
- (890.31 KiB) Downloaded 16 times
< < insert Rick Cook quote here > >
-
- Regular
- Posts: 27
- Joined: Mon Jan 25, 2021 5:35 pm
- Contact:
Re: Regards vpgrid with indefinite children sizes
Thanks, your logic has solved my problem (it has solved with "has vbox" syntax).Ocelot wrote: ↑Mon Apr 05, 2021 5:49 pm You can place viewport anywhere with any size, including in the corner of the screen. Internally vpgrid is literally a viewport, if you couldn't do something with viewport, you wouldn't be able to do this with vpgrid. And if you add vbox with all messages (dynamically filled) it will have scrollbars natively.
Proof of concept using viewport and vbox
- Ocelot
- Lemma-Class Veteran
- Posts: 2406
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: (Solved) Regards vpgrid with indefinite children sizes
has vbox is just a shorthand for writing vbox: and indenting everything below one level. Also I was bored and made message window autoscroll to the bottom when new message is added. Post if you need it.
< < insert Rick Cook quote here > >
-
- Regular
- Posts: 27
- Joined: Mon Jan 25, 2021 5:35 pm
- Contact:
Re: (Solved) Regards vpgrid with indefinite children sizes
Thanks a lot for the clarification, also, I have logic for auto-scrolling so, thanks.
Who is online
Users browsing this forum: LegsWild