Textbutton backgrounds not showing up

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.
Post Reply
Message
Author
User avatar
SusanTheCat
Miko-Class Veteran
Posts: 952
Joined: Mon Dec 13, 2010 9:30 am
Location: New Brunswick, Canada
Contact:

Textbutton backgrounds not showing up

#1 Post by SusanTheCat »

I am making a dynamic list of files.
Unfortunately, when the buttons are in a vbox, only the corners show up:
screenshot0001.png
screenshot0001.png (6.67 KiB) Viewed 687 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

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Textbutton backgrounds not showing up

#2 Post by nyaatrap »

Does the tutorial game show textbuttons correctly?
It's likely a video card driver issue.

User avatar
PyTom
Ren'Py Creator
Posts: 16093
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:

Re: Textbutton backgrounds not showing up

#3 Post by PyTom »

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

User avatar
SusanTheCat
Miko-Class Veteran
Posts: 952
Joined: Mon Dec 13, 2010 9:30 am
Location: New Brunswick, Canada
Contact:

Re: Textbutton backgrounds not showing up

#4 Post by SusanTheCat »

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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot]