I'm currently trying to make some kind of file records screen where the player can click on a file name and read the information in it.
I've made a vbox containing the information text, but I can't seem to change the position of the scrollbar.
Here's what it currently looks like (the scrollbar is very close to the text)
And there's what I want it to look like (the scrollbar has distance with the text)
I've tried changing the xminimum/xmaximum, area etc but it only change the size of the overall vbox.
Here's what my code looks like:
Code: Select all
frame:
style_prefix "records"
background None
area (913,165,600,750)
if book == "book1":
vpgrid:
yinitial 0.0
cols 1
mousewheel True
draggable True
scrollbars "vertical"
vbox:
text "This is book1."
elif book == "book2":
vpgrid:
yinitial 0.0
cols 1
mousewheel True
draggable True
scrollbars "vertical"
vbox:
text "This is book 2."