Page 1 of 1

Make specific choices grayed out and unclickable?

Posted: Thu Jun 21, 2018 11:12 pm
by renpyhelp
Hi, looking for a little help. If it's possible, I'd like to be able to have specific choices be all shown at once, but some grayed out and not clickable (essentially to show that some choices can be shown in the future, but unavailable at this time.) Can that be done? Here is the simple menu code below. Would just like Choice2's opacity be cut in half, and not be able to be highlighted when mouse'd over. Thanks.

Code: Select all

    menu:       

        "Choice 1":
            jump choice_1
        "Choice2":
            jump choice_2

Re: Make specific choices grayed out and unclickable?

Posted: Thu Jun 21, 2018 11:23 pm
by trooper6
See this link: viewtopic.php?f=8&t=49233&p=483862&hili ... le#p483862
Searching for "unclickable" brings up a lot of things.

Re: Make specific choices grayed out and unclickable?

Posted: Fri Jun 22, 2018 12:24 am
by renpyhelp
I looked through a good amount of those, but one of those posts I didn't see had exactly what I needed. thank you!

Re: Make specific choices grayed out and unclickable?

Posted: Fri Jun 22, 2018 6:52 am
by xavimat
I'd suggest another approach, without changing the screen. See if you like it:

Code: Select all

default done = 0
label start:
    menu PUT_A_NAME_IN_THE_MENU:
        "Option 1" if done == 0:
            "Route 1"
            $ done = 1
        "{color=#777}Option 1{/color}" if done != 0:
            jump PUT_A_NAME_IN_THE_MENU
        "Option 2" if done == 1:
            "Route 2"
            $ done = 2
        "{color=#777}Option 2{/color}" if done != 1:
            jump PUT_A_NAME_IN_THE_MENU
    jump start
- Put a name on the menu, and jump to it as if it were a label.
- Non available options are grey because of the "color" tag. But when hovered they highlight (I know in your first post you say don't want that, sorry).
- Grey options are not actually blocked, but they send immediately to the same menu, so it seems they are doing nothing.