Screen language action to hide imagebutton

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
searchwindows
Regular
Posts: 86
Joined: Wed Dec 15, 2021 6:17 pm
Contact:

Screen language action to hide imagebutton

#1 Post by searchwindows »

Is there a way to hide an imagebutton on a screen with screen Actions?
I'd like hide a single imagebutton with action If(x in seen_labels, #Hide( an imagebutton)#)
Is this something possible?

User avatar
emz911
Regular
Posts: 103
Joined: Fri Jun 23, 2017 2:23 pm
Contact:

Re: Screen language action to hide imagebutton

#2 Post by emz911 »

Give the imagebutton a condition:

Code: Select all

screen whatever():

     if some_variable == True:
          imagebutton ""...
Then the image button will only show up according to the variable condition, and you can set variable with Action

Post Reply

Who is online

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