Through some earlier questions I have found this:
I have found the following snippet that allows me to show a choice as disabled:
Code: Select all
screen choice(items):
style_prefix "choice"
vbox:
for i in items:
$ disabled = i.kwargs.get("disabled", False)
textbutton i.caption action i.action sensitive not disabled
This is my code:
Code: Select all
label test_choice:
menu:
"SET confidence to 3":
$ confidence = 3
"SET confidence to 1":
$ confidence = 1
$ little_confident = False
if confidence > 2:
$ little_confident = True
menu:
"Option 1: I understand, Luca.":
"Placeholder."
"Option 2: You don't have to be a douche about it. Here's your money!" if little_confident:
"Placeholder"
"Option 3: Screw you, Luca! You get out of my bar right now or I'll fucking shoot you! (confidence > 5)" (disabled=True):
"Placeholder"
return