Page 1 of 1
I want Choice Disabled
Posted: Wed May 24, 2023 12:20 am
by swang
hi Tony Li I need you help.
I am using SMS Dialogue. The next time the player selects the option they want to show, I want it to be disabled.
![image](
https://github.com/kaYeonTan/Sort/asset ... f1b6c2b555)
If you write condition, the choice disappears.
I want the options to be visible (only disabled).
![image](
https://github.com/kaYeonTan/Sort/asset ... 4e1c755ebf)
Re: I want Choice Disabled
Posted: Wed May 24, 2023 3:01 am
by swang
![image](
https://github.com/kaYeonTan/Sort/asset ... cffa541154)
And I want to output two portraits of the actor (different sprites). Is there a way?
Re: I want Choice Disabled
Posted: Wed May 24, 2023 8:14 am
by Tony Li
Hi,
> If you write condition, the choice disappears.
> I want the options to be visible (only disabled).
Inspect the Dialogue Manager GameObject. Tick Display Settings > Input Settings > Include Invalid Entries. Then you can set the [em#] Tag For Invalid Entries. This will apply emphasis settings to choices whose Conditions are false. You can configure the appearance of emphasis settings on the Dialogue Editor's Database tab.
> And I want to output two portraits of the actor (different sprites). Is there a way?
In the Dialogue Editor's Actors tab, assign portrait sprites to the actor. Then use the [pic=#]
markup tag.
Re: I want Choice Disabled
Posted: Thu May 25, 2023 12:43 am
by swang
thank you! The button issue has been fixed.
Just the actor's sprite didn't solve the problem.
I want to control different images at the same time (same actor).
What if I want to output two images of the same actor?
The way you told me didn't work.
![image](
https://github.com/kaYeonTan/Sort/asset ... e44f8725dd)
Re: I want Choice Disabled
Posted: Thu May 25, 2023 8:07 am
by Tony Li
Hi,
> What if I want to output two images of the same actor?
Make a subclass of SMSDialogueUI, if that is what you are using for the dialogue UI.
1. Add an Image variable.
2. Override the Open() method to show the NPC's portrait sprite in the Image variable.