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.
SusanTheCat
Miko-Class Veteran
Posts: 952 Joined: Mon Dec 13, 2010 9:30 am
Location: New Brunswick, Canada
Contact:
#1
Post
by SusanTheCat » Sat Feb 28, 2015 9:31 pm
I am making a dynamic list of files.
Unfortunately, when the buttons are in a vbox, only the corners show up:
screenshot0001.png (6.67 KiB) Viewed 688 times
The first Hello button is NOT in the vbox, the second uses the same code but IS in the vbox.
Code: Select all
screen filelist(files):
side "t c r":
area (200, 100, 400, 400)
textbutton _("HELLLO") xalign 0.5 action Return("helllo")
viewport id "vp":
vbox:
textbutton _("HELLLO") xalign 0.5 action Return("helllo")
for fn in song_files:
textbutton fn xalign 0.5 action Return(fn)
vbar value YScrollValue("vp")
Any ideas?
Susan
" It's not at all important to get it right the first time. It's vitally important to get it right the last time. "
— Andrew Hunt and David Thomas
nyaatrap
Crawling Chaos
Posts: 1824 Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:
#2
Post
by nyaatrap » Sun Mar 01, 2015 12:07 am
Does the tutorial game show textbuttons correctly?
It's likely a video card driver issue.
PyTom
Ren'Py Creator
Posts: 16096 Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:
#3
Post
by PyTom » Sun Mar 01, 2015 2:33 am
You may also want to try setting child_size on the viewport - I think it may be offering the children too small a size.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama •
https://www.patreon.com/renpytom
SusanTheCat
Miko-Class Veteran
Posts: 952 Joined: Mon Dec 13, 2010 9:30 am
Location: New Brunswick, Canada
Contact:
#4
Post
by SusanTheCat » Sun Mar 01, 2015 3:47 pm
It was the video card. I updated Direct X and forced it to use Direct X and it is now working.
Susan
" It's not at all important to get it right the first time. It's vitally important to get it right the last time. "
— Andrew Hunt and David Thomas
Users browsing this forum: No registered users