Update: Simpler Syntax
Choice Kwargs Tutorial For Ren’py » Devlog
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!
Get Choice Kwargs Tutorial For Ren’py
Download NowName your own price
Choice Kwargs Tutorial For Ren’py
Easily customize the display of Ren'Py choices!
Status | Released |
Category | Assets |
Author | aurawave |
Genre | Interactive Fiction, Visual Novel |
Tags | 2D, Asset Pack, Dating Sim, Meaningful Choices, Narrative, Ren'Py, Singleplayer, Story Rich |
More posts
- Update 3: Improved Item CountingApr 25, 2025
- Update 2: Tooltip Functionality and Background CustomizationApr 23, 2025
Comments
Log in with itch.io to leave a comment.
Do you happen to know how to strikethrough a disabled choice? I have it greyed out with config.include_disabled_choice=True, but having a strikethrough would look better. It’s been a long time since I did this and I can’t remember how it was done.
I figured it out, it's actually pretty simple. There's just one line you need to add and one you need to change in the existing code. Let me know if this works for you!
This is good enough for me to tinker with, thank you!