How do I make a greyed-out choice button in the new Ren'Py?

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
Heisenraptor
Newbie
Posts: 9
Joined: Sun Jul 03, 2016 9:34 am
Contact:

How do I make a greyed-out choice button in the new Ren'Py?

#1 Post by Heisenraptor »

So I decided to finally move to the new Ren'Py but a lot of things seem to have changed, one thing that was very useful was being able to make unclickable choice buttons by adding "(disabled)" in the caption, THIS is what I've used.
But that doesn't work anymore in the newest version (6.99.14.3), does anyone know how to do it?
Thank you.

kivik
Miko-Class Veteran
Posts: 786
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Re: How do I make a greyed-out choice button in the new Ren'Py?

#2 Post by kivik »

Seems to work for me, can you show us your code and explain what's not working about it?

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: How do I make a greyed-out choice button in the new Ren'Py?

#3 Post by IrinaLazareva »


Heisenraptor
Newbie
Posts: 9
Joined: Sun Jul 03, 2016 9:34 am
Contact:

Re: How do I make a greyed-out choice button in the new Ren'Py?

#4 Post by Heisenraptor »

Thank you Irina, that works! Do you know how I could tell Ren'Py to use a grey style/image for disabled buttons?

kivik
Miko-Class Veteran
Posts: 786
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Re: How do I make a greyed-out choice button in the new Ren'Py?

#5 Post by kivik »

If I'm not mistaken, as per the example in the link you provided - a style is defined and applied to it. The example didn't show the style created - you just need to create your own.

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: How do I make a greyed-out choice button in the new Ren'Py?

#6 Post by IrinaLazareva »

Heisenraptor wrote: Tue Apr 17, 2018 1:46 am Thank you Irina, that works! Do you know how I could tell Ren'Py to use a grey style/image for disabled buttons?
Screen choice() is standard. Settings of choice style are below in the screens.rpy file and gui.rpy.
https://renpy.org/doc/html/screen_special.html#choice

By the way, In GUI, image-sample for menu's background is located in "base/game/gui/button/..." of project.
As one of options, you can copy file 'choice_hover_background.png', change it, and rename to 'choice_insensitive_background.png'.

Also you can change or create own style of button.
https://renpy.org/doc/html/style_properties.html
https://renpy.org/doc/html/style.html

Post Reply

Who is online

Users browsing this forum: No registered users