variables working with vpgrids??
Posted: Mon Oct 30, 2023 5:20 pm
i am trying to make an endings screen for my renpy game. i want the endings screen to be like the lily's day off endings screen where you can click on an ending you got and it will jump to that ending so you can replay it. i am currently trying to get this to work with a vpgrid.
any help is appreciated!
any help is appreciated!
Code: Select all
default persistent.endings = ["Ending 1", "Ending 2"]
## dont disable this, it will cause glitches
define config.allow_underfull_grids = True
screen endings():
tag menu
vpgrid:
xalign 0.5
yalign 0.5
cols 1
spacing 10
mousewheel True
for t in persistent.endings:
# here is supposed to be code that makes a new button for every item in the persistent.endings list
textbutton _("Return"):
yalign 1.0
xalign 0.0
action Return()