[SOLVED] Textbutton won't display on screen

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
nemlei
Newbie
Posts: 13
Joined: Tue Mar 05, 2019 9:31 am

[SOLVED] Textbutton won't display on screen

#1 Post by nemlei » Thu Jul 18, 2019 2:08 am

Hello!

Using Ren'Py 7.3.2.

This is a bit tricky, because it's an issue a player has reported, however I haven't been able to recreate it even once.
Apparently the textbutton "Back" doesn't appear on their screen. It appears fine on mine and the few other players screens I've seen.

I have a custom screen with a textbutton that takes you back to a previous screen.

Code: Select all

screen custom():

    tag menu

    key "K_ESCAPE" action ShowMenu('othercustom')

    add "images/image.jpg"

    vbox:
        xalign 0.9
        yalign 0.9
        textbutton "Back" action ShowMenu('othercustom')
Any ideas what's happening?
Last edited by nemlei on Fri Jul 19, 2019 1:18 pm, edited 1 time in total.

User avatar
hell_oh_world
Miko-Class Veteran
Posts: 777
Joined: Fri Jul 12, 2019 5:21 am
Projects: The Button Man
Organization: NILA
Github: hell-oh-world
Location: Philippines
Contact:

Re: Textbutton won't display on screen

#2 Post by hell_oh_world » Thu Jul 18, 2019 5:41 am

Maybe because you aligned the vbox on the very bottom right of the screen?

Try setting the align (0.5, 0.5)... and see if it will appear on the center
I'm not sure though... I'm also new :)

If you want the button to appear on the very bottom right... First you might wanna set the anchor (1.0, 1.0) then the pos (0.9, 0.9)... But in the documentation it says that align() is equal to setting the anchor and pos on same values... I don't know though :D

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Textbutton won't display on screen

#3 Post by Alex » Thu Jul 18, 2019 11:58 am

nemlei wrote:
Thu Jul 18, 2019 2:08 am
... This is a bit tricky, because it's an issue a player has reported, however I haven't been able to recreate it even once.
Apparently the textbutton "Back" doesn't appear on their screen. It appears fine on mine and the few other players screens I've seen. ...
This might be an issue with video card... Let them try to hold shift while running exe-file of a game and choose different renderers to see if that solves the issue.

nemlei
Newbie
Posts: 13
Joined: Tue Mar 05, 2019 9:31 am

Re: Textbutton won't display on screen

#4 Post by nemlei » Fri Jul 19, 2019 1:17 pm

Alex wrote:
Thu Jul 18, 2019 11:58 am
This might be an issue with video card... Let them try to hold shift while running exe-file of a game and choose different renderers to see if that solves the issue.
Thank you! The issue has been solved!

Post Reply

Who is online

Users browsing this forum: Google [Bot], _ticlock_