Update: Simpler Syntax


I’ve simplified the required code!

You can now use sensitive= to disable a choice (grey it out), and condition= to remove a choice entirely when its condition isn’t met. And you no longer need to use strings for this! If you're using the older version, no worries — it still works just fine, it’s just a bit more verbose.

I also made a slight change to the screen code to ensure the text_color for sensitive choices (when requirements aren't met) will use gui.choice_button_text_insensitive_color as intended, even if they have a custom color or hover when clickable. This was a slight Ren'Py pet peeve of mine while developing my own project, so I hope it will be useful for others!

Files

dynamic_menu_choices.rpy 1.6 kB
1 day ago

Get Dynamic Menu Choices for Ren'Py

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.