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.
vbox:
for i in items:
if " (disabled)" in i.caption:
$ newcaption = i.caption.replace(" (disabled)", "")
textbutton newcaption action None
else:
textbutton i.caption action i.action
menu:
"test (disabled)" if location == "outside":
pass
"crimescene" if location == "outside"
$location = "crimescene"
scene bg_crimescene
The Option "test" will be unclickable since it is marked as disabled. However the styling looks different from normal menu option. The fontcolor is a darkgrey, while others are a lightgrey. How would I change text color of only this button (or all disabled buttons)?
Thank you in advance
Last edited by Mangescom on Thu Oct 26, 2017 1:56 am, edited 1 time in total.
vbox:
for i in items:
if " (disabled)" in i.caption:
$ newcaption = i.caption.replace(" (disabled)", "")
textbutton "{color=#606060}[newcaption]{/color}" action None
else:
textbutton i.caption action i.action