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.
How do I make a greyed-out choice button in the new Ren'Py?
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.
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.
-
- 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?
Seems to work for me, can you show us your code and explain what's not working about it?
- IrinaLazareva
- Veteran
- Posts: 399
- Joined: Wed Jun 08, 2016 1:49 pm
- Projects: Legacy
- Organization: SunShI
- Location: St.Petersburg, Russia
- Contact:
-
- 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?
Thank you Irina, that works! Do you know how I could tell Ren'Py to use a grey style/image for disabled buttons?
Re: How do I make a greyed-out choice button in the new Ren'Py?
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.
- 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?
Screen choice() is standard. Settings of choice style are below in the screens.rpy file and gui.rpy.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?
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
Who is online
Users browsing this forum: No registered users