Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Hello! I'm creating an inventory screen and setting up the layout first. I'm trying to get my vertical scrollbar to keep within the height of my vpgrid, but no matter what I try it just won't change the height of the scrollbar. It'll change the vpgrid's height instead of the scrollbar, even when changing settings in the style applied to the scrollbar.
oatnoodles wrote: ↑Fri Dec 29, 2023 12:04 am
Here's my code:
Not sure this is the issue, but can you format your code properly? Style definitions have to be set outside of screens etc. Also, why do you have two ymaximum properties inside the vpgrid? One from the ymaximum and one from the style.
Sorry, I'm still pretty new to coding in general and for this project I've just been working with a "reorganized boilerplate code" from a previous programmer. That's how he organized things -- with the style definitions in the same file as the screen they're for. I have two ymaximums because it wasn't working no matter what I tried and it's just there from my attempts to get it to work.
Edit: The style settings aren't actually within the screen code, but they are on the same document.
Ren'py amateur looking to learn as much as possible! Please be patient with me.
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers